Eclipse Platform
Release 3.1

Uses of Interface
org.eclipse.core.commands.operations.IUndoContext

Packages that use IUndoContext
org.eclipse.core.commands.operations Classes for the creation of undoable operations which can be added to an operations history and later be undone and redone.  
org.eclipse.jface.text Provides a framework for creating and manipulating text documents. 
org.eclipse.ui.operations Classes that provide the basic workbench UI support for undo and redo of operations.  
org.eclipse.ui.texteditor Provides a framework for text editors obeying to the desktop rules.  
 

Uses of IUndoContext in org.eclipse.core.commands.operations
 

Classes in org.eclipse.core.commands.operations that implement IUndoContext
 class ObjectUndoContext
           An undo context that can be used to represent any given object.
 class UndoContext
           A simple, lightweight undo context that can be used to tag any operation.
 

Fields in org.eclipse.core.commands.operations declared as IUndoContext
static IUndoContext IOperationHistory.GLOBAL_UNDO_CONTEXT
          An undo context that can be used to refer to the global undo history.
 

Methods in org.eclipse.core.commands.operations that return IUndoContext
 IUndoContext[] IUndoableOperation.getContexts()
           Returns the array of contexts that have been assigned to the operation.
 IUndoContext[] AbstractOperation.getContexts()
           
 

Methods in org.eclipse.core.commands.operations with parameters of type IUndoContext
 boolean UndoContext.matches(IUndoContext context)
           Return whether the specified context is considered a match for the receiving context.
 void TriggeredOperations.removeContext(IUndoContext context)
          Remove the specified context from the receiver.
 void ObjectUndoContext.addMatch(IUndoContext context)
          Add the specified context as a match of this context.
 void ObjectUndoContext.removeMatch(IUndoContext context)
          Remove the specified context as a match of this context.
 boolean ObjectUndoContext.matches(IUndoContext context)
           
protected abstract  IStatus LinearUndoViolationDetector.allowLinearRedoViolation(IUndoableOperation operation, IUndoContext context, IOperationHistory history, IAdaptable info)
          Return a status indicating whether a linear redo violation is allowable.
protected abstract  IStatus LinearUndoViolationDetector.allowLinearUndoViolation(IUndoableOperation operation, IUndoContext context, IOperationHistory history, IAdaptable info)
          Return a status indicating whether a linear undo violation is allowable.
protected  IStatus LinearUndoEnforcer.allowLinearRedoViolation(IUndoableOperation operation, IUndoContext context, IOperationHistory history, IAdaptable uiInfo)
           
protected  IStatus LinearUndoEnforcer.allowLinearUndoViolation(IUndoableOperation operation, IUndoContext context, IOperationHistory history, IAdaptable uiInfo)
           
 void IUndoableOperation.addContext(IUndoContext context)
           Add the specified context to the operation.
 boolean IUndoableOperation.hasContext(IUndoContext context)
           Returns whether the operation has a matching context for the specified context.
 void IUndoableOperation.removeContext(IUndoContext context)
          Remove the specified context from the operation.
 boolean IUndoContext.matches(IUndoContext context)
          Return whether the specified context is considered a match for the receiving context.
 boolean IOperationHistory.canRedo(IUndoContext context)
           Return whether there is a valid redoable operation available in the given context.
 boolean IOperationHistory.canUndo(IUndoContext context)
           Return whether there is a valid undoable operation available in the given context
 void IOperationHistory.dispose(IUndoContext context, boolean flushUndo, boolean flushRedo, boolean flushContext)
           Dispose of the specified context in the history.
 int IOperationHistory.getLimit(IUndoContext context)
           Return the limit on the undo and redo history for a particular context.
 IUndoableOperation[] IOperationHistory.getRedoHistory(IUndoContext context)
           Get the array of operations in the redo history for a the specified undo context.
 IUndoableOperation IOperationHistory.getRedoOperation(IUndoContext context)
           Get the operation that will next be redone in the given undo context.
 IUndoableOperation[] IOperationHistory.getUndoHistory(IUndoContext context)
           Get the array of operations in the undo history for the specified undo context.
 IUndoableOperation IOperationHistory.getUndoOperation(IUndoContext context)
           Get the operation that will next be undone in the given undo context.
 IStatus IOperationHistory.redo(IUndoContext context, IProgressMonitor monitor, IAdaptable info)
           Redo the most recently undone operation in the given context
 void IOperationHistory.setLimit(IUndoContext context, int limit)
           Set the limit on the undo and redo history for a particular context.
 IStatus IOperationHistory.undo(IUndoContext context, IProgressMonitor monitor, IAdaptable info)
           Undo the most recently executed operation in the given context
 boolean DefaultOperationHistory.canRedo(IUndoContext context)
           
 boolean DefaultOperationHistory.canUndo(IUndoContext context)
           
 void DefaultOperationHistory.dispose(IUndoContext context, boolean flushUndo, boolean flushRedo, boolean flushContext)
           
 int DefaultOperationHistory.getLimit(IUndoContext context)
           
 IUndoableOperation[] DefaultOperationHistory.getRedoHistory(IUndoContext context)
           
 IUndoableOperation DefaultOperationHistory.getRedoOperation(IUndoContext context)
           
 IUndoableOperation[] DefaultOperationHistory.getUndoHistory(IUndoContext context)
           
 IUndoableOperation DefaultOperationHistory.getUndoOperation(IUndoContext context)
           
 IStatus DefaultOperationHistory.redo(IUndoContext context, IProgressMonitor monitor, IAdaptable info)
           
 void DefaultOperationHistory.setLimit(IUndoContext context, int limit)
           
 IStatus DefaultOperationHistory.undo(IUndoContext context, IProgressMonitor monitor, IAdaptable info)
           
 void AbstractOperation.addContext(IUndoContext context)
           
 boolean AbstractOperation.hasContext(IUndoContext context)
           
 void AbstractOperation.removeContext(IUndoContext context)
           
 

Uses of IUndoContext in org.eclipse.jface.text
 

Methods in org.eclipse.jface.text that return IUndoContext
 IUndoContext IUndoManagerExtension.getUndoContext()
          Returns this undo manager's undo context.
 IUndoContext DefaultUndoManager.getUndoContext()
           
 

Uses of IUndoContext in org.eclipse.ui.operations
 

Methods in org.eclipse.ui.operations that return IUndoContext
 IUndoContext IWorkbenchOperationSupport.getUndoContext()
          Returns the undo context for workbench-wide operations.
 

Methods in org.eclipse.ui.operations with parameters of type IUndoContext
 void OperationHistoryActionHandler.setContext(IUndoContext context)
          Set the context shown by the handler.
protected  IStatus LinearUndoViolationUserApprover.allowLinearRedoViolation(IUndoableOperation operation, IUndoContext context, IOperationHistory history, IAdaptable uiInfo)
           
protected  IStatus LinearUndoViolationUserApprover.allowLinearUndoViolation(IUndoableOperation operation, IUndoContext context, IOperationHistory history, IAdaptable uiInfo)
           
 

Constructors in org.eclipse.ui.operations with parameters of type IUndoContext
UndoRedoActionGroup(IWorkbenchPartSite site, IUndoContext undoContext, boolean pruneHistory)
          Construct an undo redo action group for the specified workbench part site, using the specified undo context.
UndoActionHandler(IWorkbenchPartSite site, IUndoContext context)
          Construct an action handler that handles the labelling and enabling of the undo action for the specified undo context.
RedoActionHandler(IWorkbenchPartSite site, IUndoContext context)
          Construct an action handler that handles the labelling and enabling of the redo action for the specified undo context.
NonLocalUndoUserApprover(IUndoContext context, IEditorPart part, Object[] affectedObjects, Class preferredComparisonClass)
          Create a NonLocalUndoUserApprover associated with the specified editor and undo context
LinearUndoViolationUserApprover(IUndoContext context, IWorkbenchPart part)
          Create a LinearUndoViolationUserApprover associated with the specified workbench part.
 

Uses of IUndoContext in org.eclipse.ui.texteditor
 

Methods in org.eclipse.ui.texteditor with parameters of type IUndoContext
protected  IOperationApprover AbstractTextEditor.getUndoRedoOperationApprover(IUndoContext undoContext)
          Return an IOperationApprover appropriate for approving the undo and redo of operations that have the specified undo context.
protected  IOperationApprover AbstractDecoratedTextEditor.getUndoRedoOperationApprover(IUndoContext undoContext)
           
 


Eclipse Platform
Release 3.1

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.