Saturday, June 10, 2017

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

Inside the linker code, I can only use com.google.gwt.core.shared.GWT, 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 com.google.gwt.core.shared.GWT, 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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment