|
|
|
Re: Check if opened in design mode [message #725777 is a reply to message #725269] |
Thu, 15 September 2011 14:22  |
Eclipse User |
|
|
|
In addition to allowing you to provide design-time specific rendering, Beans.isDesignTime() is also very useful for suppressing other runtime behavior that won't work at design time. From the WB FAQ...
Quote:A component may rely on some runtime behavior that is not possible at design time (such as accessing an application database or some other file). Runtime specific behavior should be isolated (and stubbed out as necessary) by wrappering the runtime specific code with a call to Beans.isDesignTime() which will answer true when the component is loaded within WindowBuilder and false at runtime.
|
|
|
Powered by
FUDForum. Page generated in 0.08087 seconds