Monday, June 20, 2011

Finding GWT debug mode URL (dev mode) programatically

Hi,

In development with or without debug - Both "GWT.isProdMode()" and
"GWT.isScriptMode()" - are returning false.

I want to find if the program is running is running debug mode or in
non-debug mode within "dev mode" - gwt in eclipse plug in.

Is there a convenient method just above two methods, like
"GWT.isDebugMode()" or " ?

I am assigning the home url, login destination URL in prod mode it is
just "/" - working fine, but in debug

it is "http://127.0.0.1:8888/SchoolDistrict.html?
gwt.codesvr=127.0.0.1:9997
".

Without hard coding how can My program switch between these two ?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate