Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Add Pages dynamically in a Wizard
Add Pages dynamically in a Wizard [message #289205] Tue, 02 August 2005 07:36 Go to next message
Eclipse UserFriend
Originally posted by: guillaume.india.gmail.com

Hello

I have a method A which asks parameters to the user during his
execution... Instead of sending a new DialogBox at each I need it, I would
like to use a Wizard. The thing is that at first I do not know the pages
and their number. Is it possible to create only the first page of the
wizard and create a Thread in getNextPage() which calls the method A and
returns a new page? Or maybe the wizard is built staticly and we cannot
increase the number of pages on the fly?

thanks for your help

guillaume
Re: Add Pages dynamically in a Wizard [message #289235 is a reply to message #289205] Tue, 02 August 2005 13:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark_melvin.amis.com

guillaume wrote:
> Hello
>
> I have a method A which asks parameters to the user during his
> execution... Instead of sending a new DialogBox at each I need it, I
> would like to use a Wizard. The thing is that at first I do not know the
> pages and their number. Is it possible to create only the first page of
> the wizard and create a Thread in getNextPage() which calls the method A
> and returns a new page? Or maybe the wizard is built staticly and we
> cannot increase the number of pages on the fly?
>
> thanks for your help
>
> guillaume
>
>

Check out org.eclipse.jface.wizard.WizardSelectionPage, and anything
that uses it (check out the type hierarchy). You can do what you are
looking for with IWizardNode's, but at first glance it looks a little
complicated.

HTH.
Mark.
Re: Add Pages dynamically in a Wizard [message #289429 is a reply to message #289205] Thu, 04 August 2005 12:05 Go to previous message
Eclipse UserFriend
Originally posted by: busch.roguewave.com

I have a similar requirement and I'm wondering if the WizardSelectionPage +
IWizardNode is appropriate:

My plugin's wizard needs to be user extensible. In other words, I need users
to have the ability to add wizard pages to my deployed plugin's wizard. It
seems like this might be possible if the WizardSelectionPage reads a list of
IWizardNodes from plugin.properties. Users could then add to that list when
they need to insert a new wizard page, then they would get an IWizardNode
representing their page.

The only problem with this is I don't know how to hook up the IWizardNode to
the user's page... Any ideas? Or is there a better way to do this?

Thanks!

"guillaume" <guillaume.india@gmail.com> wrote in message
news:3408a46b0d4c7273226f702207623804$1@www.eclipse.org...
> Hello
>
> I have a method A which asks parameters to the user during his
> execution... Instead of sending a new DialogBox at each I need it, I would
> like to use a Wizard. The thing is that at first I do not know the pages
> and their number. Is it possible to create only the first page of the
> wizard and create a Thread in getNextPage() which calls the method A and
> returns a new page? Or maybe the wizard is built staticly and we cannot
> increase the number of pages on the fly?
>
> thanks for your help
>
> guillaume
>
>
Previous Topic:Problem with ActionSets
Next Topic:ActionDelegate cannot reset the action icon
Goto Forum:
  


Current Time: Wed Jul 23 18:17:38 EDT 2025

Powered by FUDForum. Page generated in 0.04716 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top