确定Eclipse / WindowBuilder中的设计时间(Determine designtime in Eclipse / WindowBuilder)

编程入门 行业动态 更新时间:2024-10-23 13:32:58
确定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.

更多推荐

本文发布于:2023-08-02 18:56:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1380675.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:时间   WindowBuilder   Eclipse   Determine   designtime

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!