a populate method?

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 populate method?

Postby peterday » Wed Sep 27, 2006 8:09 am

is it possible to configure SWT designer to generate code in which widgets are placed (in terms of layout) in the createPartControl method, but the widgets are populated in a seperate (public) method - so they can be populated with values from a passed object or refresh from a database etc...

If so, is it also posible to generate individual populate methods for different composites.

Hope this makes sense......
peterday
 
Posts: 1
Joined: Wed Sep 27, 2006 8:01 am

Re: a populate method?

Postby Eric Clayberg » Thu Sep 28, 2006 6:59 pm

peterday wrote:is it possible to configure SWT designer to generate code in which widgets are placed (in terms of layout) in the createPartControl method, but the widgets are populated in a seperate (public) method - so they can be populated with values from a passed object or refresh from a database etc...

I'm not entire sure what you are asking. A code example would be helpful.

In general, you can refactor the generated code almost any way that you like.

You can also specify (via preferences) what method Designer generates code into.
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