org.mockcentral.editor.nodes.actions
Class AbstractNodeEditingActions

java.lang.Object
  extended by org.mockcentral.editor.nodes.actions.AbstractNodeEditingActions
Direct Known Subclasses:
EditExpectationPartActions, EditFixtureActions, EditMockObjectActions

public abstract class AbstractNodeEditingActions
extends java.lang.Object

Base class for the various classes that create and run IActions instances related to editing configuration file contents. Provides convenience access to the IOperationHistory and IUndoContext.

Author:
David Hutchinson

Field Summary
protected  org.eclipse.core.commands.operations.IOperationHistory operationHistory
          the IOperationHistory.
protected  org.eclipse.core.commands.operations.IUndoContext undoContext
          the IUndoContext.
 
Constructor Summary
AbstractNodeEditingActions()
           
 
Method Summary
protected  org.eclipse.core.commands.operations.IOperationHistory getOperationHistory()
          Returns the IOperationHistory of the current editor.
protected  org.eclipse.core.commands.operations.IUndoContext getUndoContext()
          Returns the IUndoContext of the current editor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

operationHistory

protected org.eclipse.core.commands.operations.IOperationHistory operationHistory
the IOperationHistory.


undoContext

protected org.eclipse.core.commands.operations.IUndoContext undoContext
the IUndoContext.

Constructor Detail

AbstractNodeEditingActions

public AbstractNodeEditingActions()
Method Detail

getOperationHistory

protected org.eclipse.core.commands.operations.IOperationHistory getOperationHistory()
Returns the IOperationHistory of the current editor.

Returns:
the IOperationHistory of the current editor.

getUndoContext

protected org.eclipse.core.commands.operations.IUndoContext getUndoContext()
Returns the IUndoContext of the current editor.

Returns:
the IUndoContext of the current editor.