Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » why class attribute is not generated
why class attribute is not generated [message #908704] Wed, 05 September 2012 17:08 Go to next message
wws_ques wws_ques is currently offline wws_ques wws_ques
Messages: 64
Registered: July 2009
Member
I drag some elements such as JTextField onto the Frame. Sometimes, the generate code declares the textField as a class attribute. But, sometimes the textField becomes a local variable in method initialize(). How can I avoid the latter case? Thanks.
Re: why class attribute is not generated [message #908752 is a reply to message #908704] Wed, 05 September 2012 20:18 Go to previous message
Eric Clayberg is currently offline Eric Clayberg
Messages: 847
Registered: July 2009
Location: Boston, MA
Senior Member
That is entirely controlled by the code generation prefs you have in place and whether you converted any of the text fields into local variables or not. It only take one click to convert a widget from a field to a local and vice versa.
Previous Topic:why palette view is gone after re-import
Next Topic:Disambiguating wizards
Goto Forum:
  


Current Time: Tue Jul 29 00:40:21 EDT 2014

Powered by FUDForum. Page generated in 0.01859 seconds