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.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 | Interface and Description |
---|---|
interface |
IOperationApprover2
Extends
IOperationApprover to approve the execution of a particular
operation within an operation history. |
Modifier and Type | Class and Description |
---|---|
class |
LinearUndoEnforcer
An operation approver that enforces a strict linear undo.
|
class |
LinearUndoViolationDetector
An abstract class for detecting violations in a strict linear undo/redo
model.
|
Modifier and Type | Method and Description |
---|---|
void |
IOperationHistory.addOperationApprover(IOperationApprover approver)
Add the specified approver to the list of operation approvers consulted
by the operation history before an undo or redo is attempted.
|
void |
DefaultOperationHistory.addOperationApprover(IOperationApprover approver)
Add the specified approver to the list of operation approvers consulted
by the operation history before an undo or redo is allowed to proceed.
|
void |
IOperationHistory.removeOperationApprover(IOperationApprover approver)
Remove the specified operation approver from the list of operation
approvers that are consulted before an operation is undone or redone.
|
void |
DefaultOperationHistory.removeOperationApprover(IOperationApprover approver) |
Modifier and Type | Class and Description |
---|---|
class |
LinearUndoViolationUserApprover
An operation approver that prompts the user to see if linear undo violations
are permitted.
|
class |
NonLocalUndoUserApprover
An operation approver that prompts the user to see if a non-local undo should
proceed inside an editor.
|
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, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.