Saturday, June 10, 2017

How to determine whether you're in SuperDevMode inside (custom) linker code

Inside the linker code, I can only use, so I can't call APIs such as GWT.getModuleBaseForStaticFiles() or GWT.getModuleBaseURL() (which people have used to detect SDM) and while GWT.create() is doc'd in, it doesn't work and throws a runtime exception saying I can only use in "client code" (which I guess excludes the linker).  So the trick involving the superdevmode property and deferred binding also doesn't work.

So how can I detected SDM inside the linker?

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment