Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » WizardPage depend of previous WizardPages
WizardPage depend of previous WizardPages [message #902507] Sat, 18 August 2012 01:37 Go to next message
first last is currently offline first lastFriend
Messages: 2
Registered: August 2012
Junior Member
Hi,

I need a wizard which last page depends on the previous pages selections and input, previous pages ask for some information the user can enter, and the last one is showing the user choices for him so he can either validate or click previous to update informations.

JFace's wizard pages contents are created by the createControl() method, this method is called when the wizard is open, not when the page is displayed.

I didn't find yet any solution ..

How you can update a wizard page when it's displayed ? How do you manage to solve this in your wizards ? is there any clean solution for this ?
Re: WizardPage depend of previous WizardPages [message #902717 is a reply to message #902507] Mon, 20 August 2012 06:15 Go to previous messageGo to next message
Marco Maccaferri is currently offline Marco MaccaferriFriend
Messages: 147
Registered: July 2009
Senior Member
On 18/08/2012 03:37 first last ha scritto:

> I need a wizard which last page depends on the
> previous pages selections and input, previous pages
> ask for some information the user can enter, and
> the last one is showing the user choices for him so
> he can either validate or click previous to update informations.
>
> JFace's wizard pages contents are created by the
> createControl() method, this method is called when
> the wizard is open, not when the page is displayed.
>
> I didn't find yet any solution ..
>
> How you can update a wizard page when it's displayed ?
> How do you manage to solve this in your wizards ? is
> there any clean solution for this ?


Use a model object to store the wizard data: all pages store the data in
the model object immediately upon typing, the last page listen to
changes to the model and adjust its controls accordingly. You can use
databinding or a simple Observable for that.

Regards,
Marco.
Re: WizardPage depend of previous WizardPages [message #903080 is a reply to message #902717] Tue, 21 August 2012 20:49 Go to previous message
Thorsten Schlathölter is currently offline Thorsten SchlathölterFriend
Messages: 312
Registered: February 2012
Location: Düsseldorf
Senior Member
You can overload the setVisible() method of DialoPage. It's called when your page (e.g. the last page) becomes visible.

Regards,
Thorsten
Previous Topic:FieldEditorPreferencePage/Fieldeditor usage.
Next Topic:How can I update status message in JFace ApplicationWindow?
Goto Forum:
  


Current Time: Thu Mar 28 15:25:11 GMT 2024

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

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

Back to the top