| java.lang.Object org.eclipse.ui.internal.operations.AdvancedValidationUserApprover
AdvancedValidationUserApprover | public class AdvancedValidationUserApprover implements IOperationApprover,IOperationApprover2(Code) | |
An operation approver that rechecks the validity of a proposed undo or redo
operation using
IAdvancedUndoableOperation.computeUndoableStatus(IProgressMonitor) or
IAdvancedUndoableOperation.computeRedoableStatus(IProgressMonitor) .
Some complex operations do not compute their validity in canUndo() or
canRedo() because it is too time-consuming. To save time on complex
validations, the true validity is not determined until it is time to perform
the operation.
Since 3.3, this operation approver also checks the validity of a proposed
execute by determining whether the redo is viable.
since: 3.1 |
Field Summary | |
public static boolean | AUTOMATED_MODE Static to prevent opening of error dialogs for automated testing. |
Constructor Summary | |
public | AdvancedValidationUserApprover(IUndoContext context) Create an AdvancedValidationUserApprover that performs advanced
validations on proposed undo and redo operations for a given undo
context. |
Method Summary | |
Shell | getShell(IAdaptable uiInfo) | public IStatus | proceedExecuting(IUndoableOperation operation, IOperationHistory history, IAdaptable uiInfo) | public IStatus | proceedRedoing(IUndoableOperation operation, IOperationHistory history, IAdaptable uiInfo) | public IStatus | proceedUndoing(IUndoableOperation operation, IOperationHistory history, IAdaptable uiInfo) |
AUTOMATED_MODE | public static boolean AUTOMATED_MODE(Code) | | Static to prevent opening of error dialogs for automated testing.
since: 3.3 |
AdvancedValidationUserApprover | public AdvancedValidationUserApprover(IUndoContext context)(Code) | | Create an AdvancedValidationUserApprover that performs advanced
validations on proposed undo and redo operations for a given undo
context.
Parameters: context - -the undo context of operations in question. |
getShell | Shell getShell(IAdaptable uiInfo)(Code) | | |
proceedExecuting | public IStatus proceedExecuting(IUndoableOperation operation, IOperationHistory history, IAdaptable uiInfo)(Code) | | |
proceedRedoing | public IStatus proceedRedoing(IUndoableOperation operation, IOperationHistory history, IAdaptable uiInfo)(Code) | | |
proceedUndoing | public IStatus proceedUndoing(IUndoableOperation operation, IOperationHistory history, IAdaptable uiInfo)(Code) | | |
|
|