org.mockcentral.editor.nodes.expectation
Interface IEditExpectationPartActions

All Known Implementing Classes:
EditExpectationPartActions

public interface IEditExpectationPartActions

Interface for the EditExpectationPartActions class.

Author:
David Hutchinson

Method Summary
 void addParameter(org.mockcentral.server.SignaturePartBean createNewModel)
          Shows a dialog for adding a parameter to the Mock Object method signature.
 void createParametersTableActions()
          Creates the actions for the parameters table.
 void createResultTableActions()
          Creates the actions for the expected result table.
 void editExpectationData()
          Shows a dialog for editing the Mock Object method name and MockMethodType.
 void editParameter(org.mockcentral.server.SignaturePartBean partModel, int index)
          Shows a dialog for editing a Mock Object method parameter.
 void editResult()
          Shows a dialog for adding or editing the Mock Object method result
 void init(org.mockcentral.editor.nodes.expectation.ExpectationModel nodeModel, IEditExpectationPartManager manager)
          Sets the ExpectationModel.
 void setAnyParameters()
          Sets the "anyParams" flag.
 void setParametersTableAdapter(TableViewerAdapter parametersTableAdapter)
          Assigns the TableViewerAdapter for the parameters table.
 void setResultAdapter(TableViewerAdapter resultTableAdapter)
          Assigns the TableViewerAdapter for the result table.
 void showParametersMenu(org.eclipse.jface.action.IMenuManager manager, java.lang.String selected, int selectionIndex, int itemCount)
          Shows the pop-up menu used for editing the parameters list.
 void showResultMenu(org.eclipse.jface.action.IMenuManager manager, java.lang.String selected)
          Shows the pop-up menu used for editing the expected method result.
 

Method Detail

init

void init(org.mockcentral.editor.nodes.expectation.ExpectationModel nodeModel,
          IEditExpectationPartManager manager)
Sets the ExpectationModel.

Parameters:
nodeModel - the ExpectationModel.
manager - the IEditExpectationPartManager that manages action invocations.

editExpectationData

void editExpectationData()
Shows a dialog for editing the Mock Object method name and MockMethodType.


createParametersTableActions

void createParametersTableActions()
Creates the actions for the parameters table.


setAnyParameters

void setAnyParameters()
Sets the "anyParams" flag. This will allow any parameters for the Mock Object method expectation.


addParameter

void addParameter(org.mockcentral.server.SignaturePartBean createNewModel)
Shows a dialog for adding a parameter to the Mock Object method signature.

Parameters:
createNewModel -

editParameter

void editParameter(org.mockcentral.server.SignaturePartBean partModel,
                   int index)
Shows a dialog for editing a Mock Object method parameter.


editResult

void editResult()
Shows a dialog for adding or editing the Mock Object method result


createResultTableActions

void createResultTableActions()
Creates the actions for the expected result table.


setParametersTableAdapter

void setParametersTableAdapter(TableViewerAdapter parametersTableAdapter)
Assigns the TableViewerAdapter for the parameters table.

Parameters:
parametersTableAdapter - the TableViewerAdapter for the parameters table.

setResultAdapter

void setResultAdapter(TableViewerAdapter resultTableAdapter)
Assigns the TableViewerAdapter for the result table.

Parameters:
resultTableAdapter - the TableViewerAdapter for the result table.

showParametersMenu

void showParametersMenu(org.eclipse.jface.action.IMenuManager manager,
                        java.lang.String selected,
                        int selectionIndex,
                        int itemCount)
Shows the pop-up menu used for editing the parameters list.

Parameters:
manager - the IMenuManager for the menu.
selected - a toString value for the currently selected parameter.
selectionIndex - the index of the currently selected parameter.
itemCount - the count of all the current parameters.

showResultMenu

void showResultMenu(org.eclipse.jface.action.IMenuManager manager,
                    java.lang.String selected)
Shows the pop-up menu used for editing the expected method result.

Parameters:
manager - the IMenuManager for the menu.
selected - a toString value for the (currently selected) result.