You can look for the "superdevmode" property value out of the LinkerContext.
The tricks you mention are for client-side code, at runtime; not at compile-time.
As for GWT.create(), have a look at ServerGWTBridge to see how that could be used outside of GWT client code. Though I'd discourage that use, that's not future-proof.
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 email@example.com.
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.