Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Data init and too complicated expression
Data init and too complicated expression [message #80122] Tue, 15 February 2005 16:30 Go to next message
Eclipse UserFriend
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 #80138 is a reply to message #80122] Tue, 15 February 2005 20:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: myersj.gmail.com

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 #80211 is a reply to message #80138] Wed, 16 February 2005 10:19 Go to previous messageGo to next message
Eclipse UserFriend
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 #80269 is a reply to message #80122] Wed, 16 February 2005 14:32 Go to previous messageGo to next message
Peter Walker is currently offline Peter WalkerFriend
Messages: 124
Registered: July 2009
Senior Member
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 #80521 is a reply to message #80269] Fri, 18 February 2005 11:13 Go to previous message
Eclipse UserFriend
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 20:38 Go to previous message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 396
Registered: July 2009
Senior Member
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 10:19 Go to previous message
Eclipse UserFriend
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 14:32 Go to previous message
Peter Walker is currently offline Peter WalkerFriend
Messages: 124
Registered: July 2009
Senior Member
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 11:13 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Using VE to layout a View?
Next Topic:VE not working :-(
Goto Forum:
  


Current Time: Sat Apr 27 03:42:15 GMT 2024

Powered by FUDForum. Page generated in 0.03576 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top