org.mockcentral.editor.nodes.fixture.wizard
Class EditFixtureWizard

java.lang.Object
  extended by org.eclipse.jface.wizard.Wizard
      extended by org.mockcentral.editor.nodes.fixture.wizard.EditFixtureWizard
All Implemented Interfaces:
org.eclipse.jface.wizard.IWizard

public class EditFixtureWizard
extends org.eclipse.jface.wizard.Wizard

A Wizard used to edit data for a Mock Object fixture. This wizard and the other classes in the package are used to set the fixture name, description and list of imported instances for new, edited and copied/pasted fixtures.

Author:
David Hutchinson

Field Summary
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
EditFixtureWizard(org.mockcentral.editor.nodes.fixture.FixtureDataBean bean, org.mockcentral.editor.nodes.fixture_group.FixtureNameValidator validator, org.mockcentral.editor.viewers.MockCentralTableModel<org.mockcentral.editor.nodes.MockCentralNode> importableFixturesModel, EditFixtureWizardType wizardType)
          Creates a new instance.
 
Method Summary
 void addPages()
           
protected  void createSettings(org.eclipse.jface.wizard.WizardDialog dialog)
          Creates the dialog settings manager.
protected  WizardDialogSettingsManager getDialogSettingsManager()
          Returns the WizardDialogSettingsManager.
 boolean performFinish()
           
 
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
 

Constructor Detail

EditFixtureWizard

public EditFixtureWizard(org.mockcentral.editor.nodes.fixture.FixtureDataBean bean,
                         org.mockcentral.editor.nodes.fixture_group.FixtureNameValidator validator,
                         org.mockcentral.editor.viewers.MockCentralTableModel<org.mockcentral.editor.nodes.MockCentralNode> importableFixturesModel,
                         EditFixtureWizardType wizardType)
Creates a new instance.

Parameters:
bean - the FixtureDataBean storing the data.
validator - the FixtureNameValidator used to check the fixture name.
importableFixturesModel - the MockCentralTableModel modeling the list of importable fixtures.
wizardType - the EditFixtureWizardType indicating whether the fixure is newly created, copied and pasted or already existed and is being modified.
Method Detail

addPages

public void addPages()
Specified by:
addPages in interface org.eclipse.jface.wizard.IWizard
Overrides:
addPages in class org.eclipse.jface.wizard.Wizard

performFinish

public boolean performFinish()
Specified by:
performFinish in interface org.eclipse.jface.wizard.IWizard
Specified by:
performFinish in class org.eclipse.jface.wizard.Wizard

createSettings

protected void createSettings(org.eclipse.jface.wizard.WizardDialog dialog)
Creates the dialog settings manager.

Parameters:
dialog - the WizardDialog.

getDialogSettingsManager

protected WizardDialogSettingsManager getDialogSettingsManager()
Returns the WizardDialogSettingsManager.

Returns:
the WizardDialogSettingsManager.