Dynamic pages to the wizard

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

Dynamic pages to the wizard

Postby avier5 » Sun Sep 19, 2004 2:37 am

Hi All,

Is it possiable to add dynamicly pages to the wizard?

HBC.
avier5
 
Posts: 41
Joined: Thu Jul 22, 2004 12:12 am

Re: Dynamic pages to the wizard

Postby Eric Clayberg » Sun Sep 19, 2004 4:48 am

avier5 wrote:Is it possiable to add dynamicly pages to the wizard?

Pages are added using the addPage(IWizardPage) method.

The sequence of pages is determined by the getNextPage(IWizardPage) method (the default is to use the order in which pages are added to the wizard).
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

Re: Dynamic pages to the wizard

Postby avier5 » Sun Sep 19, 2004 4:56 am

Hi Eric,
When I tried to add a page using addPage(WizardPage) method in the getNextPage() method it didn't work . I debugged it and I noticed that the createControl() method wasn't called.

What could be the problem?

Thanks,
HBC
avier5
 
Posts: 41
Joined: Thu Jul 22, 2004 12:12 am

Re: Dynamic pages to the wizard

Postby Eric Clayberg » Sun Sep 19, 2004 8:08 am

avier5 wrote:When I tried to add a page using addPage(WizardPage) method in the getNextPage() method it didn't work . I debugged it and I noticed that the createControl() method wasn't called. What could be the problem?

I believe that you need to add the pages from within the addPages() method. The getNextPage() method is used to specify the next page to appear. It isn't intended to be the place that they are created. In general, you need to define all of the pages when the wizard is created. If you want to add them dynamically, then it is up to you to make sure that they are created properly by calling createControl(), etc.).
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