문제

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.

도움이 되었습니까?

해결책 2

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.

다른 팁

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.

try this link here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top