This is wizard is made up of primary pages, and secondary pages. A primary page is an @see org.eclipse.jface.wizard.IWizardPage that the wizard declares it will contain. A secondarypage is a page which is dynamically contributed to the wizard via a primary page, or another secondary page.
Sublcasses declare the ordered set of primary pages with the getPrimaryPages() method. Secondary pages are contributed dynamically by returning them from a call to @see org.eclipse.jface.wizard.IWizardPage#getNextPage().
Secondary page processing will continue, until a page returns null from getNextPage(). Processing then continues at the next primary page. If no more primary pages exist, the wizard finishes.
If using an IDataWizard outside of the workbench wizard framework, it is up to client code to call @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench,org.eclipse.jface.viewers.IStructuredSelection) immediatly after instantiating the wizard.
The following are requirements on the pages of the wizard.
Example: public IWizardPage getNextPage() { if (returnNewPage) { WizardPage newPage = new WizardPage(....); IDataWizard wizard = (IDataWizard)getWizard(); wizard.init(page); return page; } return super.getNextPage(); }
This wizard creates dialog settings for pages upon creation.
@author Justin Deoliveira,Refractions Research Inc.,jdeolive@refractions.net
|
|