Anyone know how to tell what mode an GWT 2.0 app is currently running at?
The idea is that i could do something like:
if(GWT.whatIsYourmode() == 'dev')
//run some code
else
//run some different code
Anyone know how to tell what mode an GWT 2.0 app is currently running at?
The idea is that i could do something like:
if(GWT.whatIsYourmode() == 'dev')
//run some code
else
//run some different code
I think what you're looking for is GWT.isClient(), GWT.isProdMode() or GWT.isScript(). You can find the Javadoc here.