|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockcentral.editor.nodes.actions.AbstractNodeEditingActions
org.mockcentral.editor.nodes.expectation.EditExpectationPartActions
public class EditExpectationPartActions
A class used to create and run the editing actions for the
EditExpectationPage.
| Field Summary |
|---|
| Fields inherited from class org.mockcentral.editor.nodes.actions.AbstractNodeEditingActions |
|---|
operationHistory, undoContext |
| Constructor Summary | |
|---|---|
EditExpectationPartActions()
|
|
| Method Summary | |
|---|---|
void |
addParameter(org.mockcentral.server.SignaturePartBean bean)
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 |
protected TableViewerAdapter |
getParametersTableAdapter()
Returns the TableViewerAdapter for the parameters table. |
protected TableViewerAdapter |
getResultTableAdapter()
Returns the TableViewerAdapter for the result table. |
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. |
| Methods inherited from class org.mockcentral.editor.nodes.actions.AbstractNodeEditingActions |
|---|
getOperationHistory, getUndoContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EditExpectationPartActions()
| Method Detail |
|---|
public void init(org.mockcentral.editor.nodes.expectation.ExpectationModel nodeModel,
IEditExpectationPartManager manager)
IEditExpectationPartActionsExpectationModel.
init in interface IEditExpectationPartActionsnodeModel - the ExpectationModel.manager - the IEditExpectationPartManager that manages
action invocations.protected TableViewerAdapter getParametersTableAdapter()
TableViewerAdapter for the parameters table.
TableViewerAdapter for the parameters table.protected TableViewerAdapter getResultTableAdapter()
TableViewerAdapter for the result table.
TableViewerAdapter for the result table.public void editExpectationData()
IEditExpectationPartActionsMockMethodType.
editExpectationData in interface IEditExpectationPartActionspublic void setParametersTableAdapter(TableViewerAdapter parametersTableAdapter)
IEditExpectationPartActionsTableViewerAdapter for the parameters table.
setParametersTableAdapter in interface IEditExpectationPartActionsparametersTableAdapter - the TableViewerAdapter for the
parameters table.public void createParametersTableActions()
IEditExpectationPartActions
createParametersTableActions in interface IEditExpectationPartActions
public void showParametersMenu(org.eclipse.jface.action.IMenuManager manager,
java.lang.String selected,
int selectionIndex,
int itemCount)
IEditExpectationPartActions
showParametersMenu in interface IEditExpectationPartActionsmanager - 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.public void setAnyParameters()
IEditExpectationPartActions
setAnyParameters in interface IEditExpectationPartActionspublic void addParameter(org.mockcentral.server.SignaturePartBean bean)
IEditExpectationPartActions
addParameter in interface IEditExpectationPartActions
public void editParameter(org.mockcentral.server.SignaturePartBean partModel,
int index)
IEditExpectationPartActions
editParameter in interface IEditExpectationPartActionspublic void setResultAdapter(TableViewerAdapter resultTableAdapter)
IEditExpectationPartActionsTableViewerAdapter for the result table.
setResultAdapter in interface IEditExpectationPartActionsresultTableAdapter - the TableViewerAdapter for the
result table.public void createResultTableActions()
IEditExpectationPartActions
createResultTableActions in interface IEditExpectationPartActions
public void showResultMenu(org.eclipse.jface.action.IMenuManager manager,
java.lang.String selected)
IEditExpectationPartActions
showResultMenu in interface IEditExpectationPartActionsmanager - the IMenuManager for the menu.selected - a toString value for the (currently selected) result.public void editResult()
IEditExpectationPartActions
editResult in interface IEditExpectationPartActions
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||