Data init and too complicated expression [message #80122] |
Tue, 15 February 2005 11:30  |
Eclipse User |
|
|
|
Originally posted by: mr.smith.vous.etes.dans.la.matrice.com
Hello,
With VE, the constructor of a JFrame looks like:
public MainFrame() {
super();
initialize();
}
where can i add my data init function so that VE (1.0.2) don't show a yellow warning "Expression too complicated"? Is there a "standard way" to do it?
TIA
|
|
|
|
|
|
Re: Data init and too complicated expression [message #80521 is a reply to message #80269] |
Fri, 18 February 2005 06:13  |
Eclipse User |
|
|
|
Originally posted by: mr.smith.vous.etes.dans.la.matrice.com
On Wed, 16 Feb 2005 09:32:12 -0500
Peter Walker <walkerp@us.ibm.com> wrote:
> One of the ways to put code in that you want executed at runtime only (and not
> during the development of your class within VE) is to add the statement:
> if ( !java.beans.Beans.isDesignTime() ) {
> ...
> }
> Then add your own data init function in this block. The VE will ignore this.
Doesn't work for me.
|
|
|
Re: Data init and too complicated expression [message #605251 is a reply to message #80122] |
Tue, 15 February 2005 15:38  |
Eclipse User |
|
|
|
Mr Smith,
It should be fine to add other code to the constructor, but not within
the initialize() method. The VE ignores the class's constructor after
it adds the initialize() call in it.
Hopes this helps,
- Jeff
Mr Smith wrote:
> Hello,
>
> With VE, the constructor of a JFrame looks like:
>
> public MainFrame() {
> super();
> initialize();
> }
>
>
> where can i add my data init function so that VE (1.0.2) don't show a yellow warning "Expression too complicated"? Is there a "standard way" to do it?
>
>
> TIA
>
|
|
|
Re: Data init and too complicated expression [message #605269 is a reply to message #80138] |
Wed, 16 February 2005 05:19  |
Eclipse User |
|
|
|
Originally posted by: mr.smith.vous.etes.dans.la.matrice.com
On Tue, 15 Feb 2005 15:38:04 -0500
Jeff Myers <myersj@gmail.com> wrote:
> Mr Smith,
>
> It should be fine to add other code to the constructor, but not within > the initialize() method. The VE ignores the class's constructor after > it adds the initialize() call in it.
Thx
|
|
|
Re: Data init and too complicated expression [message #605284 is a reply to message #80122] |
Wed, 16 February 2005 09:32  |
Eclipse User |
|
|
|
One of the ways to put code in that you want executed at runtime only (and not
during the development of your class within VE) is to add the statement:
if ( !java.beans.Beans.isDesignTime() ) {
...
}
Then add your own data init function in this block. The VE will ignore this.
Regards...
Peter walker
Mr Smith wrote:
> Hello,
>
> With VE, the constructor of a JFrame looks like:
>
> public MainFrame() {
> super();
> initialize();
> }
>
>
> where can i add my data init function so that VE (1.0.2) don't show a yellow warning "Expression too complicated"? Is there a "standard way" to do it?
>
>
> TIA
>
|
|
|
Re: Data init and too complicated expression [message #605349 is a reply to message #80269] |
Fri, 18 February 2005 06:13  |
Eclipse User |
|
|
|
Originally posted by: mr.smith.vous.etes.dans.la.matrice.com
On Wed, 16 Feb 2005 09:32:12 -0500
Peter Walker <walkerp@us.ibm.com> wrote:
> One of the ways to put code in that you want executed at runtime only (and not
> during the development of your class within VE) is to add the statement:
> if ( !java.beans.Beans.isDesignTime() ) {
> ...
> }
> Then add your own data init function in this block. The VE will ignore this.
Doesn't work for me.
|
|
|
Powered by
FUDForum. Page generated in 0.31945 seconds