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:

  1. Define your wizard pages using one of the following methods:
    1. Create a new page that inherits from the IlrFileGeneratorWizardPage class:
      1. 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.

      2. Manage your page.

    2. 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.

  2. Declare a wizard class:
    1. Inherit from the IlrFileGeneratorWizard class.
    2. Redefine the addPages method.
    3. Redefine the performFinish method.