Tuesday, May 29, 2018

Is there a better way to detect when in SDM mode?

Currently we are using the following to detect when in "SDM" mode:

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

Is there a better way?

No comments:

Post a Comment