The Wizard implementation of this IWizard method uses all page controls using DialogPage.dispose.
Subclasses should propagate this method if the wizard instance supports an additional SWT resource that must be removed.
(Javadoc)
So, when you install the dialog, the pages after the current page are not visible (I think) and load, so Wizard.close() matters (the same for Wizard.getShell().close() , I think). The executeCancel method must be implemented by MyWizard to determine what should be done after the user clicks cancel, but is not specified in the Wizard. It is called by the master after the user click is canceled. For instance:
void close(){ dosmthng performCancel(); dispose(); }
In fact, this is the equivalent for the performFinish () function, but with the button canceled. I hope I get it.
Maybe setVisible(false) should work.
source share