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

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

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

A WizardPage used to select a specific Constructor and SignaturePartBeanCreationStrategy for use in creating the list of SignaturePartBean instances modeling the Constructor arguments for an Instance value type.

Author:
David Hutchinson

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
ChooseConstructorPage(AddConstructorArgsWizard wizard, org.mockcentral.server.SignaturePartBean bean)
          Creates a new instance.
 
Method Summary
protected  void assignStrategy(java.lang.String strategyString)
          Assigns the SignaturePartElementCreationStrategy determining how Constructor arguments will be created.
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
 java.lang.reflect.Constructor<?> getSelectedConstructor()
          Returns the Constructor selected by the user.
 org.mockcentral.editor.nodes.expectation.part.SignaturePartElementCreationStrategy getStrategy()
          Returns the SignaturePartBeanCreationStrategy selected by the user.
 void setVisible(boolean visible)
           
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, 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

ChooseConstructorPage

public ChooseConstructorPage(AddConstructorArgsWizard wizard,
                             org.mockcentral.server.SignaturePartBean bean)
Creates a new instance.

Parameters:
wizard - the AddConstructorArgsWizard.
bean - the SignaturePartBean.
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

assignStrategy

protected void assignStrategy(java.lang.String strategyString)
Assigns the SignaturePartElementCreationStrategy determining how Constructor arguments will be created.

Parameters:
strategyString - the label for the SignaturePartElementCreationStrategy to be used.

getSelectedConstructor

public java.lang.reflect.Constructor<?> getSelectedConstructor()
Returns the Constructor selected by the user.

Returns:
the Constructor selected by the user.

getStrategy

public org.mockcentral.editor.nodes.expectation.part.SignaturePartElementCreationStrategy getStrategy()
Returns the SignaturePartBeanCreationStrategy selected by the user.

Returns:
the SignaturePartBeanCreationStrategy selected by the user.

createControl

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