SWT Designer for Stand Alone Apps

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 Designer for Stand Alone Apps

Postby ndixit » Thu Jun 17, 2004 1:58 pm

Swt designer needs Eclipse. Privided that we download Eclipse environments.
1) Can we use Designer to create a sand alone appliaction that can be loaded by webstart?
2) Can we add our derived java widgets (like sortable table etc) into the desinger and use it to build the screens?
3) We already have some SWT standalone apps that we load through webstart. Could we reverseenginner the app? The events handle, uses JMS related stuff, tux related services etc. What happens to the references to those, do they remain untoched?
4) Instead of spagatting the code after the screen generation is there anyway to layer it with controller objects? i.e. once the event is generated is it safe to direct it to some controller object to handle it? Would it come in the way if we want to reload the generated screen code into the Desinger and make changes to it?

Sorry a lot of questions, but i want to use this tool where we already have an SWT application. But the future developement can be done using this tool or not I don't know. And these are the valid questions....raised.
Nimesh Dixit
ndixit
 
Posts: 1
Joined: Thu Jun 17, 2004 1:45 pm

Re: SWT Designer for Stand Alone Apps

Postby Eric Clayberg » Thu Jun 17, 2004 4:50 pm

ndixit wrote:1) Can we use Designer to create a sand alone application that can be loaded by webstart?

Yes. You can use Designer to build plugins for Eclipse or standalone SWT (or Swing) applications.

ndixit wrote:2) Can we add our derived java widgets (like sortable table etc) into the designer and use it to build the screens?

Yes. You can access them individually via the "Choose Bean" command on the palette, or you can add them permanently to the "Custom Controls" palette group via the "Designer > SWT > Custom Controls" pref page.

ndixit wrote:3) We already have some SWT standalone apps that we load through webstart. Could we reverseenginner the app? The events handle, uses JMS related stuff, tux related services etc. What happens to the references to those, do they remain untouched?

Yes and yes. Most GUI builders in the world will only read and write the code that they themselves create. Designer is an exception to that rule. It can read and write not only the code it creates, but also a great deal of code generated by other GUI builders or by hand (probably better than 80%). You can also hand modify or refactor the generated code any way you like, and Designer generally won't care.

ndixit wrote:4) Instead of spagatting the code after the screen generation is there anyway to layer it with controller objects? i.e. once the event is generated is it safe to direct it to some controller object to handle it? Would it come in the way if we want to reload the generated screen code into the Designer and make changes to it?

In general, I would think that would be fine. I would want to see an example of exactly what you had in mind before giving a definitive answer. As I said above, Designer is very resilient in the face of refactorings. You can take the generated code and rename the methods, split them into smaller methods, change the order of the statements, insert your own in-line program logic, etc. It doesn't lock you into a particular style or force you into an "insert-user-changes-here" kind of mode.
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