Writing a new nested wizard
You can write a new nested wizard from the provided generator wizard page API.
Procedure
To write your own nested wizard:
- Define your wizard pages using one of the following methods:
- Create a new page that inherits from the IlrFileGeneratorWizardPage class:
Define the addContent(Composite) method: this method is called by the createControl(Composite) method, redefined as a final method in the class. The createControl creates a new composite, sets the context sensitive help using the getHelpContextId method, calls the addContent method and calls setPageComplete using the result of the isPageCompleteAtCreation method.
Manage your page.
- Reuse one or more pages provided in the template:
IlrRulesetParameterWizardPage: calls getGenerator.setSignatures (myRulesetParameterWizardPage.getSignatures()) in the performFinish method of the wizard to set the values in the page.
IlrTraceFilterWizardPage: calls myTraceFilterWizardPage.saveProperties (getGenerator()) in the performFinish method of the wizard to set the values in the page.
- Create a new page that inherits from the IlrFileGeneratorWizardPage class:
- Declare a wizard class:
- Inherit from the IlrFileGeneratorWizard class.
- Redefine the addPages method.
- Redefine the performFinish method.