a question

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

a question

Postby table686 » Sun Jun 19, 2005 4:14 am

How can I make widgets those are created by swt designer to be private member of class ,instead of being a member just in the createcontents() method?
table686
 
Posts: 5
Joined: Sun Jun 12, 2005 7:58 pm

Re: a question

Postby Eric Clayberg » Mon Jun 20, 2005 4:44 am

table686 wrote:How can I make widgets those are created by swt designer to be private member of class ,instead of being a member just in the createcontents() method?

You have several options:

1) You can convert any widget from a local variable to a field and vice versa using the Image Convert Local to Field button in the property pane:

Image

2) You can use the Designer > Code Generation > Type Specific preferences to specify which types of widgets should be created as fields by default:

Image

3) You can use the Designer > Code Generation preferences to Create every component as a field by default:

Image

4) Using the latest v4.0.1 build, you can rename and/or convert multiple widgets to fields at one time:

Image
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest