SWT Application VS JFace Application Window

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 Application VS JFace Application Window

Postby pjchristopher » Wed Feb 04, 2004 9:59 am

What is the difference between these 2 Windows and the pros/cons with working with either one.
pjchristopher
 
Posts: 3
Joined: Wed Feb 04, 2004 9:34 am

Postby admin » Wed Feb 04, 2004 8:20 pm

SWT Application is very basic template with empty Shell, where you can add controls, like viewers, main menu, toolbat, etc. But you have to manage all items in menu and toolbar by hands.
In JFace ApplicationWindow you can also design content of window, but you can also swtich to "actions" tab in Designer, create set of actions and add them to MenuManager and ToolbarManager. So, your logic will be bound to actions that are place in menu and toolbar, and you can handle it selection and enable/disable them in single point - in your action.
We have good demo for ApplicationWindow:
http://www.instantiations.com/swt-designer/demos/AppWindow.html
admin
Moderator
 
Posts: 166
Joined: Thu Jul 24, 2003 12:25 am

Postby pjchristopher » Thu Feb 05, 2004 8:58 am

Thanks :D
pjchristopher
 
Posts: 3
Joined: Wed Feb 04, 2004 9:34 am


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest