Composite swapping

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

Composite swapping

Postby jleotta » Tue Aug 03, 2004 9:53 am

Is there a way to build separate composite classes and swap them in and out of a running shell? In swing there are JPanels that can be used for this purpose but I have not figured out how to change the top level composite on an application window. Thanks in advance.
jleotta
 
Posts: 31
Joined: Tue Aug 03, 2004 9:46 am

Postby schtoo » Tue Aug 03, 2004 10:13 am

Look at StackLayout in org.eclipse.swt.custom.

I don't think SWTDesigner has great support for it yet. You'll have to code it mostly by hand.
schtoo
 
Posts: 2
Joined: Tue Aug 03, 2004 10:11 am

Postby Eric Clayberg » Tue Aug 03, 2004 11:23 am

schtoo wrote:Look at StackLayout in org.eclipse.swt.custom.
I don't think SWTDesigner has great support for it yet. You'll have to code it mostly by hand.

Actually, SWT Designer has very good support for StackLayout. You can create a Composite, assign StackLayout to it and then drop multiple additional composites on it. You can then switch between the active/visible child composites either by using the widget tree or the up/down arrows in the upper-right corner of the parent composite. Here is a link to the Designer StackLayout docs.
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

Postby schtoo » Tue Aug 03, 2004 11:30 am

Oh my bad. Guess I just wasn't paying attention to when support was added for it.
schtoo
 
Posts: 2
Joined: Tue Aug 03, 2004 10:11 am

Postby Eric Clayberg » Tue Aug 03, 2004 1:54 pm

schtoo wrote:Oh my bad. Guess I just wasn't paying attention to when support was added for it.

Support for StackLayout was added back in January (three version updates ago). ;-)
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

Postby allawy » Tue Aug 03, 2004 10:34 pm

Eric;

Is there a readme file where what's new or fixed is listed in? I can't find it.
allawy
 
Posts: 43
Joined: Wed Mar 10, 2004 7:28 pm

Postby Eric Clayberg » Wed Aug 04, 2004 3:24 am

allawy wrote:Is there a readme file where what's new or fixed is listed in? I can't find it.

Yes. In the product itself, you can look at the Changes.txt file. This should provide an exhaustive list of what was added (or fixed) in each release.

For an on-line version, see the Features page on the web site. It shows new features going back to v1.2.1.
Last edited by Eric Clayberg on Wed Aug 04, 2004 6:01 am, edited 1 time in total.
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

StackLayout works great!

Postby jleotta » Wed Aug 04, 2004 4:54 am

Thanks all! The stacklayout works great!
jleotta
 
Posts: 31
Joined: Tue Aug 03, 2004 9:46 am


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest