|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.operations.LinearUndoViolationDetector
org.eclipse.core.commands.operations.LinearUndoEnforcer
An operation approver that enforces a strict linear undo. It does not allow the undo or redo of any operation that is not the latest available operation in all of its undo contexts. This class may be instantiated by clients.
Constructor Summary | |
---|---|
LinearUndoEnforcer()
Create an instance of LinearUndoEnforcer. |
Method Summary | |
---|---|
protected IStatus |
allowLinearRedoViolation(IUndoableOperation operation,
IUndoContext context,
IOperationHistory history,
IAdaptable uiInfo)
Return a status indicating whether a linear redo violation is allowable. |
protected IStatus |
allowLinearUndoViolation(IUndoableOperation operation,
IUndoContext context,
IOperationHistory history,
IAdaptable uiInfo)
Return a status indicating whether a linear undo violation is allowable. |
Methods inherited from class org.eclipse.core.commands.operations.LinearUndoViolationDetector |
---|
proceedRedoing, proceedUndoing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LinearUndoEnforcer()
Method Detail |
protected IStatus allowLinearRedoViolation(IUndoableOperation operation, IUndoContext context, IOperationHistory history, IAdaptable uiInfo)
LinearUndoViolationDetector
allowLinearRedoViolation
in class LinearUndoViolationDetector
operation
- the operation for which a linear redo violation has been
detected.context
- the undo context in which the linear redo violation existshistory
- the operation history containing the operationuiInfo
- the IAdaptable (or null
) provided by the
caller in order to supply UI information for prompting the
user if necessary. When this parameter is not
null
, it should minimally contain an adapter
for the org.eclipse.swt.widgets.Shell.class.
OK
, and the caller requesting the redo will be
returned the status that caused the rejection. Specific status
severities will not be interpreted by the history.protected IStatus allowLinearUndoViolation(IUndoableOperation operation, IUndoContext context, IOperationHistory history, IAdaptable uiInfo)
LinearUndoViolationDetector
allowLinearUndoViolation
in class LinearUndoViolationDetector
operation
- the operation for which a linear undo violation has been
detected.context
- the undo context in which the linear undo violation existshistory
- the operation history containing the operationuiInfo
- the IAdaptable (or null
) provided by the
caller in order to supply UI information for prompting the
user if necessary. When this parameter is not
null
, it should minimally contain an adapter
for the org.eclipse.swt.widgets.Shell.class.
OK
, and the caller requesting the undo will be
returned the status that caused the rejection. Specific status
severities will not be interpreted by the history.
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.