java.lang.Object | +--org.eclipse.jface.wizard.Wizard | +--com.ibm.lab.soln.dialogs.MyBasicWizard
Demonstration of a simple multi-page wizard that supports controlled paging and file creation. Three pages are added in the addPages() method. File creation is supported through a custom page that inherits container selection and file name validation. Additional pages support testing of the page complete status using values passed to the wizard page constructors.
Wizard
,
INewWizard
Field Summary | |
org.eclipse.jface.viewers.IStructuredSelection |
selection
|
Fields inherited from class org.eclipse.jface.wizard.Wizard |
DEFAULT_IMAGE |
Constructor Summary | |
MyBasicWizard()
The constructor. |
Method Summary | |
void |
addPages()
Add predetermined pages that are required in the wizard. |
void |
init(org.eclipse.ui.IWorkbench workbench,
org.eclipse.jface.viewers.IStructuredSelection selection)
Initialize processing saves local workbench and selection references and sets wizard title/image. |
boolean |
performFinish()
Passes the wizard finish request on to the new file page. |
Methods inherited from class org.eclipse.jface.wizard.Wizard |
addPage, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.wizard.IWizard |
canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer |
Field Detail |
public org.eclipse.jface.viewers.IStructuredSelection selection
Constructor Detail |
public MyBasicWizard()
Method Detail |
public void addPages()
addPages
in interface org.eclipse.jface.wizard.IWizard
addPages
in class org.eclipse.jface.wizard.Wizard
Wizard.addPages()
public void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
init
in interface org.eclipse.ui.IWorkbenchWizard
IWorkbenchWizard.init(IWorkbench, IStructuredSelection)
public boolean performFinish()
performFinish
in interface org.eclipse.jface.wizard.IWizard
performFinish
in class org.eclipse.jface.wizard.Wizard
IWizard.performFinish()