Package | Description |
---|---|
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.debug.ui |
Provides a generic debugger user interface that clients may customize via standard
workbench extension points.
|
org.eclipse.jface.text |
Provides a framework for creating and manipulating text documents.
|
org.eclipse.text.undo |
Provides undo and redo support for a document.
|
org.eclipse.ui.ide.undo |
APIs that provide undo and redo behavior for operations that manipulate
the workspace.
|
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.
|
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
static IUndoContext |
IOperationHistory.GLOBAL_UNDO_CONTEXT
An undo context that can be used to refer to the global undo history.
|
Modifier and Type | Method and Description |
---|---|
IUndoContext[] |
IUndoableOperation.getContexts()
Returns the array of contexts that have been assigned to the operation.
|
IUndoContext[] |
AbstractOperation.getContexts() |
Modifier and Type | Method and Description |
---|---|
void |
IUndoableOperation.addContext(IUndoContext context)
Add the specified context to the operation.
|
void |
TriggeredOperations.addContext(IUndoContext context)
Add the specified context to the operation.
|
void |
AbstractOperation.addContext(IUndoContext context) |
void |
ObjectUndoContext.addMatch(IUndoContext context)
Add the specified context as a match of this 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 IStatus |
LinearUndoEnforcer.allowLinearRedoViolation(IUndoableOperation operation,
IUndoContext context,
IOperationHistory history,
IAdaptable uiInfo) |
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.allowLinearUndoViolation(IUndoableOperation operation,
IUndoContext context,
IOperationHistory history,
IAdaptable uiInfo) |
boolean |
IOperationHistory.canRedo(IUndoContext context)
Return whether there is a valid redoable operation available in the given
context.
|
boolean |
DefaultOperationHistory.canRedo(IUndoContext context) |
boolean |
IOperationHistory.canUndo(IUndoContext context)
Return whether there is a valid undoable operation available in the given
context
|
boolean |
DefaultOperationHistory.canUndo(IUndoContext context) |
void |
IOperationHistory.dispose(IUndoContext context,
boolean flushUndo,
boolean flushRedo,
boolean flushContext)
Dispose of the specified context in the history.
|
void |
DefaultOperationHistory.dispose(IUndoContext context,
boolean flushUndo,
boolean flushRedo,
boolean flushContext) |
int |
IOperationHistory.getLimit(IUndoContext context)
Return the limit on the undo and redo history for a particular context.
|
int |
DefaultOperationHistory.getLimit(IUndoContext context) |
IUndoableOperation[] |
IOperationHistory.getRedoHistory(IUndoContext context)
Get the array of operations in the redo history for a the specified undo
context.
|
IUndoableOperation[] |
DefaultOperationHistory.getRedoHistory(IUndoContext context) |
IUndoableOperation |
IOperationHistory.getRedoOperation(IUndoContext context)
Get the operation that will next be redone in the given undo context.
|
IUndoableOperation |
DefaultOperationHistory.getRedoOperation(IUndoContext context) |
IUndoableOperation[] |
IOperationHistory.getUndoHistory(IUndoContext context)
Get the array of operations in the undo history for the specified undo
context.
|
IUndoableOperation[] |
DefaultOperationHistory.getUndoHistory(IUndoContext context) |
IUndoableOperation |
IOperationHistory.getUndoOperation(IUndoContext context)
Get the operation that will next be undone in the given undo context.
|
IUndoableOperation |
DefaultOperationHistory.getUndoOperation(IUndoContext context) |
boolean |
IUndoableOperation.hasContext(IUndoContext context)
Returns whether the operation has a matching context for the specified
context.
|
boolean |
AbstractOperation.hasContext(IUndoContext context) |
boolean |
ObjectUndoContext.matches(IUndoContext context) |
boolean |
UndoContext.matches(IUndoContext context)
Return whether the specified context is considered a match for the
receiving context.
|
boolean |
IUndoContext.matches(IUndoContext context)
Return whether the specified context is considered a match for the
receiving context.
|
IStatus |
IOperationHistory.redo(IUndoContext context,
IProgressMonitor monitor,
IAdaptable info)
Redo the most recently undone operation in the given context.
|
IStatus |
DefaultOperationHistory.redo(IUndoContext context,
IProgressMonitor monitor,
IAdaptable info) |
void |
IUndoableOperation.removeContext(IUndoContext context)
Remove the specified context from the operation.
|
void |
TriggeredOperations.removeContext(IUndoContext context)
Remove the specified context from the receiver.
|
void |
AbstractOperation.removeContext(IUndoContext context) |
void |
ObjectUndoContext.removeMatch(IUndoContext context)
Remove the specified context as a match of this context.
|
void |
IContextReplacingOperation.replaceContext(IUndoContext original,
IUndoContext replacement)
Replace the undo context of the receiver with the provided replacement
undo context.
|
void |
TriggeredOperations.replaceContext(IUndoContext original,
IUndoContext replacement)
Replace the undo context of the receiver with the provided replacement
undo context.
|
void |
IOperationHistory.setLimit(IUndoContext context,
int limit)
Set the limit on the undo and redo history for a particular context.
|
void |
DefaultOperationHistory.setLimit(IUndoContext context,
int limit) |
IStatus |
IOperationHistory.undo(IUndoContext context,
IProgressMonitor monitor,
IAdaptable info)
Undo the most recently executed operation in the given context.
|
IStatus |
DefaultOperationHistory.undo(IUndoContext context,
IProgressMonitor monitor,
IAdaptable info) |
Modifier and Type | Method and Description |
---|---|
static IUndoContext |
DebugUITools.getBreakpointsUndoContext()
Return the undo context that should be used for operations involving breakpoints.
|
Modifier and Type | Method and Description |
---|---|
IUndoContext |
TextViewerUndoManager.getUndoContext() |
IUndoContext |
DefaultUndoManager.getUndoContext()
Deprecated.
|
IUndoContext |
IUndoManagerExtension.getUndoContext()
Returns this undo manager's undo context.
|
Modifier and Type | Method and Description |
---|---|
IUndoContext |
IDocumentUndoManager.getUndoContext()
Returns the undo context registered for this document
|
IUndoContext |
DocumentUndoManager.getUndoContext() |
Modifier and Type | Method and Description |
---|---|
static IUndoContext |
WorkspaceUndoUtil.getBookmarksUndoContext()
Return the undo context that should be used for operations involving
bookmarks.
|
static IUndoContext |
WorkspaceUndoUtil.getProblemsUndoContext()
Return the undo context that should be used for operations involving
problems.
|
static IUndoContext |
WorkspaceUndoUtil.getTasksUndoContext()
Return the undo context that should be used for operations involving
tasks.
|
static IUndoContext |
WorkspaceUndoUtil.getWorkspaceUndoContext()
Return the undo context that should be used for workspace-wide operations
|
Modifier and Type | Method and Description |
---|---|
IUndoContext |
IWorkbenchOperationSupport.getUndoContext()
Returns the undo context for workbench-wide operations.
|
Modifier and Type | Method and Description |
---|---|
protected IStatus |
LinearUndoViolationUserApprover.allowLinearRedoViolation(IUndoableOperation operation,
IUndoContext context,
IOperationHistory history,
IAdaptable uiInfo) |
protected IStatus |
LinearUndoViolationUserApprover.allowLinearUndoViolation(IUndoableOperation operation,
IUndoContext context,
IOperationHistory history,
IAdaptable uiInfo) |
void |
OperationHistoryActionHandler.setContext(IUndoContext context)
Set the context shown by the handler.
|
Constructor and Description |
---|
LinearUndoViolationUserApprover(IUndoContext context,
IWorkbenchPart part)
Create a LinearUndoViolationUserApprover associated with the specified
workbench part.
|
NonLocalUndoUserApprover(IUndoContext context,
IEditorPart part,
Object[] affectedObjects,
Class preferredComparisonClass)
Create a NonLocalUndoUserApprover associated with the specified editor
and 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.
|
UndoActionHandler(IWorkbenchPartSite site,
IUndoContext context)
Construct an action handler that handles the labelling and enabling of
the undo action for the specified undo context.
|
UndoRedoActionGroup(IWorkbenchPartSite site,
IUndoContext undoContext,
boolean pruneHistory)
Construct an undo redo action group for the specified workbench part
site, using the specified undo context.
|
Modifier and Type | Method and Description |
---|---|
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) |
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.