com.ibm.jdg2e.wizards.newwizards
Class DynamicPageWizard

java.lang.Object
  extended byorg.eclipse.jface.wizard.Wizard
      extended bycom.ibm.jdg2e.wizards.newwizards.DynamicPageWizard
All Implemented Interfaces:
org.eclipse.ui.INewWizard, org.eclipse.jface.wizard.IWizard, org.eclipse.ui.IWorkbenchWizard

public class DynamicPageWizard
extends org.eclipse.jface.wizard.Wizard
implements org.eclipse.ui.INewWizard

Wizard that adds a single page (PageChain) in the addPages() method; added page is able to deterimine if subsequent pages are required.

See Also:
Wizard, PageChain

Field Summary
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
DynamicPageWizard()
          Constructor.
 
Method Summary
 void addPages()
          Adds one PageChain wizard page to the wizard as dynamic page.
 void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
          Initialization step is used to set title.
 boolean performFinish()
          Does nothing, this wizard is only demonstrating page control logic.
 
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
 

Constructor Detail

DynamicPageWizard

public DynamicPageWizard()
Constructor.

Method Detail

addPages

public void addPages()
Adds one PageChain wizard page to the wizard as dynamic page. The dynamic page has the option of adding subsequent pages in the PageChain.getNextPage() method based on user input.

Specified by:
addPages in interface org.eclipse.jface.wizard.IWizard
See Also:
IWizard.addPages(), PageChain.getNextPage()

init

public void init(org.eclipse.ui.IWorkbench workbench,
                 org.eclipse.jface.viewers.IStructuredSelection selection)
Initialization step is used to set title.

Specified by:
init in interface org.eclipse.ui.IWorkbenchWizard
See Also:
IWorkbenchWizard.init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)

performFinish

public boolean performFinish()
Does nothing, this wizard is only demonstrating page control logic.

Specified by:
performFinish in interface org.eclipse.jface.wizard.IWizard
Returns:
boolean - True indicates wizard can close.
See Also:
Wizard.performFinish()