Discussion:
Is there a better way to detect when in SDM mode?
Michael Joyner
7 years ago
Permalink
Currently we are using the following to detect when in "SDM" mode:

private static Boolean isSdm = null;
    public static boolean isSdm() {
        if (isSdm==null) {
            isSdm=false;
            GWT.log("SDM MODE: "+(isSdm=true)); // only compiles and
runs when SDM is active
        }
        return isSdm;
    }

Is there a better way?
--
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+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Lars
7 years ago
Permalink
I guess the best solution is this:

System.getProperty("superdevmode").equals("on")

(copied from https://gitter.im/gwtproject/gwt?at=5afb220db84be71db90bf92a)

but here are other solutions as well https://stackoverflow.com/questions/26917060/detecting-super-dev-mode-from-within-gwt-app
--
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+***@googlegroups.com.
To post to this group, send email to google-web-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Loading...