编程语言
首页 > 编程语言> > java-在Eclipse / WindowBuilder中确定设计时

java-在Eclipse / WindowBuilder中确定设计时

作者:互联网

我正在创建要与WindowBuilder Pro一起使用的控件.是否有可能在Eclipse中检测设计模式?

我想在控件中执行的示例:

if(designmode) {
   loadDummyValues();
}else{
   loadRealComplexRuntimeValues();
}

在Netbeans中,其确定如下:

java.beans.Beans.isDesignTime()

因此,我希望Eclipse也有可能.

解决方法:

Eclipse itself does not have a notion of design time nor has it any
special support for JavaBeans-based development. Maybe the Eclipse
Visual Editor does.

试试这个链接here

标签:windowbuilder,eclipse,java
来源: https://codeday.me/bug/20191030/1965499.html