Search code examples
gwtgwt-designer

detecting mode of gwt designer (design mode or runtime)


Is it possible to detect if a ui binder template is being generated in eclipse by the GWT Designer or being generated at runtime mode?

I would like to create a ui to display an data object and thus need to be able to generate one when running in eclipse.


Solution

  • You can use Beans.isDesignTime().

    See http://code.google.com/webtoolkit/tools/gwtdesigner/faq.html and http://code.google.com/webtoolkit/tools/gwtdesigner/features/gwt/enhanced_compilation.html