org.mockcentral.editor.nodes.operations
Class OperationsManager

java.lang.Object
  extended by org.mockcentral.editor.nodes.operations.OperationsManager
All Implemented Interfaces:
org.eclipse.core.commands.operations.IOperationHistoryListener

public class OperationsManager
extends java.lang.Object
implements org.eclipse.core.commands.operations.IOperationHistoryListener

The class used to manage the operation history for the IUndoableOperation instances in this package.

Author:
David Hutchinson

Constructor Summary
OperationsManager(MockCentralPluginEditor editor)
          Creates a new instance.
 
Method Summary
 org.eclipse.core.commands.operations.IOperationHistory getOperationHistory()
          Returns the IOperationHistory.
 org.eclipse.jface.action.IAction getRedoAction()
          Returns the redo IAction.
 org.eclipse.jface.action.IAction getUndoAction()
          Returns the undo IAction.
 org.eclipse.core.commands.operations.IUndoContext getUndoContext()
          Returns the IUndoContext.
 void historyNotification(org.eclipse.core.commands.operations.OperationHistoryEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationsManager

public OperationsManager(MockCentralPluginEditor editor)
Creates a new instance.

Parameters:
editor - the active editor.
Method Detail

getUndoContext

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

Returns:
the IUndoContext.

getUndoAction

public org.eclipse.jface.action.IAction getUndoAction()
Returns the undo IAction.

Returns:
the undo IAction.

getRedoAction

public org.eclipse.jface.action.IAction getRedoAction()
Returns the redo IAction.

Returns:
the redo IAction.

getOperationHistory

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

Returns:
the IOperationHistory.

historyNotification

public void historyNotification(org.eclipse.core.commands.operations.OperationHistoryEvent event)
Specified by:
historyNotification in interface org.eclipse.core.commands.operations.IOperationHistoryListener