Reputation: 15
I have a jface Wizard, I have a link on the bottom of the wizard and when I click the link the wizard should start a fresh from the start and all the previous selections must go ,It should work as if i'm opening a new wizard again with no selections remaining from current selections.
I've tried opening the first page on the widget selection but it doesn't seem to work, I'm unable to hit the next button
Upvotes: 0
Views: 41
Reputation: 111142
In a WizardPage
you could do something like:
IWizard wizard = getWizard();
IWizardPage page = wizard.getPage("page name");
IWizardContainer container = wizard.getContainer();
container.showPage(page);
"page name"
is the name of the wizard page you specified in its Constructor.
This will show the particular page, you will need to clear the contents in the setVisible
method.
Upvotes: 1