确定Eclipse / WindowBuilder中的设计时间(Determine designtime in Eclipse / WindowBuilder)
我正在创建与WindowBuilder Pro一起使用的WindowBuilder Pro 。 是否有可能在Eclipse检测设计模式?
举例说明我想在我的控制中做什么:
if(designmode) { loadDummyValues(); }else{ loadRealComplexRuntimeValues(); }在Netbeans中,它的确定如下:
java.beans.Beans.isDesignTime()所以我希望Eclipse也有可能。
I'm creating controlls to use with WindowBuilder Pro. Is there a possibility to detect design mode in Eclipse?
Example what i want to do in my control:
if(designmode) { loadDummyValues(); }else{ loadRealComplexRuntimeValues(); }In Netbeans its determined like this:
java.beans.Beans.isDesignTime()So i hope there is also a possibility for Eclipse.
最满意答案
Eclipse本身没有设计时的概念,也没有对基于JavaBeans的开发提供任何特殊支持。 也许Eclipse Visual Editor可以。
在这里试试这个链接
Ok, i found it myself, @Ahmed Ekri pointed me in the right direction, to look specifically for a notion for WindowBuilder:
if (Beans.isDesignTime()) { //Designtime [...] } else { //Runtime [...] }More details can be read here.
更多推荐
发布评论