org.mockcentral.editor.nodes.actions
Class MockCentralPluginAction

java.lang.Object
  extended by org.eclipse.jface.action.Action
      extended by org.mockcentral.editor.nodes.actions.MockCentralPluginAction
All Implemented Interfaces:
org.eclipse.jface.action.IAction
Direct Known Subclasses:
CopyNodeAction, CutNodeAction, DeleteNodeAction, PasteNodeAction, SortNodesAction

public class MockCentralPluginAction
extends org.eclipse.jface.action.Action

Base class for the Action classes used in the Mock Central Plug-in, providing convenience methods for accessing the MockCentralEditor's operation history and undo context.

Author:
David Hutchinson

Field Summary
 
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
 
Constructor Summary
MockCentralPluginAction()
           
 
Method Summary
 org.eclipse.core.commands.operations.IOperationHistory getOperationHistory()
          Returns the editor's IOperationHistory.
 org.eclipse.core.commands.operations.IUndoContext getUndoContext()
          Returns the editor's IUndoContext.
 
Methods inherited from class org.eclipse.jface.action.Action
addPropertyChangeListener, convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, firePropertyChange, firePropertyChange, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, removePropertyChangeListener, run, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockCentralPluginAction

public MockCentralPluginAction()
Method Detail

getOperationHistory

public org.eclipse.core.commands.operations.IOperationHistory getOperationHistory()
Returns the editor's IOperationHistory.

Returns:
the editor's IOperationHistory.

getUndoContext

public org.eclipse.core.commands.operations.IUndoContext getUndoContext()
Returns the editor's IUndoContext.

Returns:
the editor's IUndoContext.