|
|
Re: Wizard questions [message #335030 is a reply to message #335022] |
Tue, 17 March 2009 13:14 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
On 3/16/2009 9:15 PM, Amit Mookerjee wrote:
> I am developing a wizard with two pages. The layout of page 2 depends on
> the selection(s) made in page 1. If the user goes back to page 1 and
> changes his selection, I want page 2 to be regenerated - essentially
> invoke the 'createControl' method of page 2. What is the recommended way
> of doing this?
One way would be to use a org.eclipse.swt.custom.StackLayout on the
second page to contain the two different Composites. That way you can
easily change the topControl based on the first page's state.
The Javadoc for StackLayout has a code example that demonstrates its usage.
Hope this helps,
Eric
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03809 seconds