我正在创建用于 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
关于java - 在 Eclipse/WindowBuilder 中确定设计时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20351761/