Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以检测 ui binder 模板是由 GWT Designer 在 eclipse 中生成还是在运行时模式下生成?
我想创建一个 ui 来显示数据对象,因此需要能够在 eclipse 中运行时生成一个。
您可以使用Beans.isDesignTime().
Beans.isDesignTime()
请参阅http://code.google.com/webtoolkit/tools/gwtdesigner/faq.html和http://code.google.com/webtoolkit/tools/gwtdesigner/features/gwt/enhanced_compilation.html
功能:
if(GWT.isProdMode()){... }
Java文档:
GWT.isProdMode() 在生产模式下运行时返回 true。在开发模式下运行或在普通 JVM 中运行时返回 false。
问候,斯特凡