com.ibm.jdg2e.wizards.newwizards
Class DefinedPageWizard

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

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

Wizard that adds a three pages (PageChain) in the addPages() method; each page is told that it is static; meaning unable to add subsequent pages.

See Also:
Wizard, PageChain

Field Summary
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
DefinedPageWizard()
          Constructor.
 
Method Summary
 void addPages()
          Adds three PageChain wizard pages to the wizard as static (non-dynamic) pages.
 void createPageControls(org.eclipse.swt.widgets.Composite pageContainer)
          If this method sends super then all pages have their UI created up front (createControl() is called).
 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, 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, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
 

Constructor Detail

DefinedPageWizard

public DefinedPageWizard()
Constructor.

Method Detail

addPages

public void addPages()
Adds three PageChain wizard pages to the wizard as static (non-dynamic) pages.

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

createPageControls

public void createPageControls(org.eclipse.swt.widgets.Composite pageContainer)
If this method sends super then all pages have their UI created up front (createControl() is called).

If the call to super is commented out the page UI is created just before it is entered. For predefined pages, this means the second and third page can actually read the input field and use it in their page UI create logic.

Specified by:
createPageControls in interface org.eclipse.jface.wizard.IWizard
See Also:
IWizard.createPageControls(org.eclipse.swt.widgets.Composite)

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()