org.mockcentral.editor.nodes.expectation.part.wizard
Class EditSignaturePartWizard

java.lang.Object
  extended by org.eclipse.jface.wizard.Wizard
      extended by org.mockcentral.editor.nodes.expectation.part.wizard.EditSignaturePartWizard
All Implemented Interfaces:
org.eclipse.jface.wizard.IWizard
Direct Known Subclasses:
AddConstructorArgsWizard, EditSimpleJNDIBoundObjectWizard

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

The Wizard class used for editing SignaturePartBean data.

Author:
David Hutchinson

Field Summary
protected  org.mockcentral.server.SignaturePartBean bean
          The SignaturePartBean modeling the data under edit.
protected  boolean canFinish
          The value for whether the wizard can finish.
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
EditSignaturePartWizard(java.lang.String operation, java.lang.String description, org.mockcentral.editor.nodes.fixture.FixtureNode fixtureNode, org.mockcentral.server.SignaturePartBean bean, boolean loadSettings, boolean allowRefs)
          Creates a new instance.
 
Method Summary
 void addPages()
           
 boolean canFinish()
           
protected  java.lang.String getDescription()
          Returns the description of the Object being edited, which will be a method parameter, expected result or simple (non-Mock) JNDI-bound Object.
protected  EditSignaturePartWizardDialog getDialog()
          Returns the EditSignaturePartWizardDialog.
protected  EditSignaturepartWizardDialogSettingsManager getDialogSettingsManager()
          Returns the EditSignaturepartWizardDialogSettingsManager used to store and retrieve dialog settings.
protected  org.mockcentral.editor.nodes.fixture.FixtureNode getFixtureNode()
          Returns the enclosing FixtureNode.
protected  boolean isAllowRefs()
          Returns whether the user can select ValueType.MOCK_OBJECT to set the value type.
 boolean performFinish()
           
protected  void setCanFinish(boolean canFinish)
          Sets the value for whether the wizard can finish, updates the button bar.
protected  void setDialog(EditSignaturePartWizardDialog dialog)
          Sets the EditSignaturePartWizardDialog.
 
Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, 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
 

Field Detail

bean

protected org.mockcentral.server.SignaturePartBean bean
The SignaturePartBean modeling the data under edit.


canFinish

protected boolean canFinish
The value for whether the wizard can finish.

Constructor Detail

EditSignaturePartWizard

public EditSignaturePartWizard(java.lang.String operation,
                               java.lang.String description,
                               org.mockcentral.editor.nodes.fixture.FixtureNode fixtureNode,
                               org.mockcentral.server.SignaturePartBean bean,
                               boolean loadSettings,
                               boolean allowRefs)
Creates a new instance.

Parameters:
operation - the operation for the Wizard (indicating whether the user is editing or creating new data).
description - the description of the Object being edited. This will be a method parameter, expected result or simple (non-Mock) JNDI-bound Object.
fixtureNode - the enclosing FixtureNode.
bean - the SignaturePartBean modeling the data.
loadSettings - whether to load stored settings into the bean.
allowRefs - whether the user can select ValueType.MOCK_OBJECT to set the value type.
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

canFinish

public boolean canFinish()
Specified by:
canFinish in interface org.eclipse.jface.wizard.IWizard
Overrides:
canFinish 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

getFixtureNode

protected org.mockcentral.editor.nodes.fixture.FixtureNode getFixtureNode()
Returns the enclosing FixtureNode.

Returns:
the enclosing FixtureNode.

isAllowRefs

protected boolean isAllowRefs()
Returns whether the user can select ValueType.MOCK_OBJECT to set the value type.

Returns:
whether the user can select ValueType.MOCK_OBJECT to set the value type.

getDialogSettingsManager

protected EditSignaturepartWizardDialogSettingsManager getDialogSettingsManager()
Returns the EditSignaturepartWizardDialogSettingsManager used to store and retrieve dialog settings.

Returns:
the EditSignaturepartWizardDialogSettingsManager used to store and retrieve dialog settings.

setCanFinish

protected void setCanFinish(boolean canFinish)
Sets the value for whether the wizard can finish, updates the button bar.

Parameters:
canFinish - whether the wizard can finish.

getDescription

protected java.lang.String getDescription()
Returns the description of the Object being edited, which will be a method parameter, expected result or simple (non-Mock) JNDI-bound Object.

Returns:
the description of the Object being edited.

setDialog

protected void setDialog(EditSignaturePartWizardDialog dialog)
Sets the EditSignaturePartWizardDialog.

Parameters:
dialog - the EditSignaturePartWizardDialog.

getDialog

protected EditSignaturePartWizardDialog getDialog()
Returns the EditSignaturePartWizardDialog.

Returns:
the EditSignaturePartWizardDialog.