org.mockcentral.editor.nodes.mockobject.wizard
Class SetMethodDetailsPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.mockcentral.editor.nodes.mockobject.wizard.SetMethodDetailsPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class SetMethodDetailsPage
extends org.eclipse.jface.wizard.WizardPage

Author:
David Hutchinson

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
SetMethodDetailsPage(EditMockObjectWizard wizard, boolean isNewMockObject)
          Creates a new instance.
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
protected  void openFilteredTypesSelectionDialog()
          Opens a SelectTypeDialog to choose the class name
 void setErrorMessage(java.lang.String newMessage)
           
 void setVisible(boolean visible)
           
protected  void updateAnyParams(boolean anyParams)
          Updates the value for whether any parameters will be accepted by the mocked methods.
protected  void updateMockMethodType(int selectionIndex)
          Updates the MockMethodType when the user selects a new value.
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp
 

Constructor Detail

SetMethodDetailsPage

public SetMethodDetailsPage(EditMockObjectWizard wizard,
                            boolean isNewMockObject)
Creates a new instance.

Parameters:
wizard - the EditMockObjectWizard.
isNewMockObject - whether the Mock Object being edited was newly created or not.
Method Detail

setVisible

public void setVisible(boolean visible)
Specified by:
setVisible in interface org.eclipse.jface.dialogs.IDialogPage
Overrides:
setVisible in class org.eclipse.jface.dialogs.DialogPage

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)

setErrorMessage

public void setErrorMessage(java.lang.String newMessage)
Overrides:
setErrorMessage in class org.eclipse.jface.wizard.WizardPage

openFilteredTypesSelectionDialog

protected void openFilteredTypesSelectionDialog()
Opens a SelectTypeDialog to choose the class name


updateMockMethodType

protected void updateMockMethodType(int selectionIndex)
Updates the MockMethodType when the user selects a new value.

Parameters:
selectionIndex - the index of the new type within the MockMethodType.values() Array.

updateAnyParams

protected void updateAnyParams(boolean anyParams)
Updates the value for whether any parameters will be accepted by the mocked methods.

Parameters:
anyParams - the new value.