SWT Code Generation Problem

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

SWT Code Generation Problem

Postby neilmanf » Tue Jun 30, 2009 10:12 am

When using Swing Builder, the code is generated in separate methods. This is not true in SWT. It either just sequentially puts the code in the create method or, if the preference is set, within blocks. As the planning designer for our company, I use and love WBP. Most of my prototypes are checked out by the developers and implemention code is added. The problem is, due to the no method code generation of SWT builder, they go in and manually make seperate methods out of everything generated which now renders the class uneditable by WBP. As I find this a waste of time and makes updating the UI a totally manual process from then on, will there possibly be a new code generation option to create methods so this will no longer be a problem for us.

Posts: 4
Joined: Mon Aug 18, 2008 4:53 am

Re: SWT Code Generation Problem

Postby Eric Clayberg » Tue Jun 30, 2009 11:43 am

The "lazy" style of code gen is on our list for SWT and will probably be added in the next couple of months.

BTW, SWT Designer is very refactoring friendly so it is quite easy to split the generated code into separate method and still keep it editable.
Eric Clayberg
Software Engineering Manager

Author: "Eclipse Plug-ins"
Eric Clayberg
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: Google [Bot] and 2 guests