org.mockcentral.editor.nodes.expectation_group
Class EditExpectationGroupPage

java.lang.Object
  extended by org.mockcentral.editor.components.MockCentralPluginNodeView
      extended by org.mockcentral.editor.components.MockCentralPluginNodeGroupView
          extended by org.mockcentral.editor.nodes.expectation_group.EditExpectationGroupPage
All Implemented Interfaces:
org.eclipse.jface.viewers.IDoubleClickListener, org.mockcentral.editor.nodes.IMockCentralGroupNodeModelObserver, org.mockcentral.editor.nodes.IMockCentralNodeView, org.mockcentral.editor.nodes.problem.INodeProblemListener, org.mockcentral.editor.viewers.IMockCentralNodeGroupViewer

public class EditExpectationGroupPage
extends MockCentralPluginNodeGroupView

The MockCentralPluginNodeGroupView used for editing the list of method expectations for a Mock Object.

Author:
David Hutchinson

Field Summary
 
Fields inherited from class org.mockcentral.editor.components.MockCentralPluginNodeGroupView
allChildrenSectionTitleKey, newButtonTipTextKey, pageTitleKey, sortButtonTipTextKey, tableViewerAdapter
 
Fields inherited from class org.mockcentral.editor.components.MockCentralPluginNodeView
imagesMap, page, toolkit
 
Constructor Summary
EditExpectationGroupPage(org.eclipse.ui.forms.widgets.FormToolkit toolkit, org.eclipse.swt.widgets.Composite page)
          Creates a new instance.
 
Method Summary
 java.lang.String getInputDescription()
           
protected  void setEditActions(IEditExpectationGroupActions editActions)
          Sets the EditExpectationGroupActions.
 void setNodeModel(org.mockcentral.editor.nodes.MockCentralNodeModel nodeModel)
           
 void showCreateNewChildDialog()
          Displays a Dialog for creating a new entry for the group of MockCentralNode instances.
 void updateNodeProblems(java.util.List<org.mockcentral.editor.nodes.problem.NodeProblem> arg0)
           
 
Methods inherited from class org.mockcentral.editor.components.MockCentralPluginNodeGroupView
addNewChildren, childrenChanged, createPageContent, dispose, doubleClick, fillContextMenu, getClipboard, getNodeGroupModel, getSelectedNode, getSelectedNodeIndex, getTableViewerAdapter
 
Methods inherited from class org.mockcentral.editor.components.MockCentralPluginNodeView
createButton, createLabel, getImagesMap, getOperationHistory, getUndoContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditExpectationGroupPage

public EditExpectationGroupPage(org.eclipse.ui.forms.widgets.FormToolkit toolkit,
                                org.eclipse.swt.widgets.Composite page)
Creates a new instance.

Parameters:
toolkit - the FormToolkit.
page - the enclosing Composite.
Method Detail

getInputDescription

public java.lang.String getInputDescription()
Specified by:
getInputDescription in interface org.mockcentral.editor.nodes.IMockCentralNodeView
Overrides:
getInputDescription in class MockCentralPluginNodeGroupView

setNodeModel

public void setNodeModel(org.mockcentral.editor.nodes.MockCentralNodeModel nodeModel)
Specified by:
setNodeModel in interface org.mockcentral.editor.nodes.IMockCentralNodeView
Overrides:
setNodeModel in class MockCentralPluginNodeGroupView

showCreateNewChildDialog

public void showCreateNewChildDialog()
Description copied from class: MockCentralPluginNodeGroupView
Displays a Dialog for creating a new entry for the group of MockCentralNode instances.

Specified by:
showCreateNewChildDialog in interface org.mockcentral.editor.viewers.IMockCentralNodeGroupViewer
Specified by:
showCreateNewChildDialog in class MockCentralPluginNodeGroupView

updateNodeProblems

public void updateNodeProblems(java.util.List<org.mockcentral.editor.nodes.problem.NodeProblem> arg0)

setEditActions

protected void setEditActions(IEditExpectationGroupActions editActions)
Sets the EditExpectationGroupActions.

Parameters:
editActions - the EditExpectationGroupActions to set.