@Override public boolean canRedo() { if (triggeringOperation != null) { return triggeringOperation.canRedo(); } return false; }
@Override public boolean canRedo() { if (triggeringOperation != null) { return triggeringOperation.canRedo(); } return false; }
@Override public boolean canRedo() { if (triggeringOperation != null) { return triggeringOperation.canRedo(); } return false; }
public boolean canRedo() { for (final Iterator it = _stepOperations.iterator(); it.hasNext();) { IUndoableOperation op = (IUndoableOperation) it.next(); // fail fast if (!op.canRedo()) { return false; } } return true; }
@Override public boolean canRedo(IUndoContext context) { // null context is allowed and passed through IUndoableOperation operation = getRedoOperation(context); return (operation != null && operation.canRedo()); }
@Override public boolean canRedo(IUndoContext context) { // null context is allowed and passed through IUndoableOperation operation = getRedoOperation(context); return (operation != null && operation.canRedo()); }
@Override public boolean canRedo(IUndoContext context) { // null context is allowed and passed through IUndoableOperation operation = getRedoOperation(context); return (operation != null && operation.canRedo()); }
@Override public IStatus redoOperation(IUndoableOperation operation, IProgressMonitor monitor, IAdaptable info) throws ExecutionException { Assert.isNotNull(operation); IStatus status; if (operation.canRedo()) { status = doRedo(monitor, info, operation); } else { if (DEBUG_OPERATION_HISTORY_UNEXPECTED) { Tracing.printTrace("OPERATIONHISTORY", "Redo operation not valid - " + operation); //$NON-NLS-1$ //$NON-NLS-2$ } status = IOperationHistory.OPERATION_INVALID_STATUS; } return status; }
@Override public IStatus redoOperation(IUndoableOperation operation, IProgressMonitor monitor, IAdaptable info) throws ExecutionException { Assert.isNotNull(operation); IStatus status; if (operation.canRedo()) { status = doRedo(monitor, info, operation); } else { if (DEBUG_OPERATION_HISTORY_UNEXPECTED) { Tracing.printTrace("OPERATIONHISTORY", "Redo operation not valid - " + operation); //$NON-NLS-1$ //$NON-NLS-2$ } status = IOperationHistory.OPERATION_INVALID_STATUS; } return status; }
@Override public IStatus redoOperation(IUndoableOperation operation, IProgressMonitor monitor, IAdaptable info) throws ExecutionException { Assert.isNotNull(operation); IStatus status; if (operation.canRedo()) { status = doRedo(monitor, info, operation); } else { if (DEBUG_OPERATION_HISTORY_UNEXPECTED) { Tracing.printTrace("OPERATIONHISTORY", "Redo operation not valid - " + operation); //$NON-NLS-1$ //$NON-NLS-2$ } status = IOperationHistory.OPERATION_INVALID_STATUS; } return status; }
@Override public IStatus redo(IUndoContext context, IProgressMonitor monitor, IAdaptable info) throws ExecutionException { Assert.isNotNull(context); IUndoableOperation operation = getRedoOperation(context); // info if there is no operation if (operation == null) { return IOperationHistory.NOTHING_TO_REDO_STATUS; } // error if operation is invalid if (!operation.canRedo()) { if (DEBUG_OPERATION_HISTORY_UNEXPECTED) { Tracing.printTrace("OPERATIONHISTORY", "Redo operation not valid - " + operation); //$NON-NLS-1$//$NON-NLS-2$ } return IOperationHistory.OPERATION_INVALID_STATUS; } return doRedo(monitor, info, operation); }
@Override public IStatus redo(IUndoContext context, IProgressMonitor monitor, IAdaptable info) throws ExecutionException { Assert.isNotNull(context); IUndoableOperation operation = getRedoOperation(context); // info if there is no operation if (operation == null) { return IOperationHistory.NOTHING_TO_REDO_STATUS; } // error if operation is invalid if (!operation.canRedo()) { if (DEBUG_OPERATION_HISTORY_UNEXPECTED) { Tracing.printTrace("OPERATIONHISTORY", "Redo operation not valid - " + operation); //$NON-NLS-1$//$NON-NLS-2$ } return IOperationHistory.OPERATION_INVALID_STATUS; } return doRedo(monitor, info, operation); }
@Override public IStatus redo(IUndoContext context, IProgressMonitor monitor, IAdaptable info) throws ExecutionException { Assert.isNotNull(context); IUndoableOperation operation = getRedoOperation(context); // info if there is no operation if (operation == null) { return IOperationHistory.NOTHING_TO_REDO_STATUS; } // error if operation is invalid if (!operation.canRedo()) { if (DEBUG_OPERATION_HISTORY_UNEXPECTED) { Tracing.printTrace("OPERATIONHISTORY", "Redo operation not valid - " + operation); //$NON-NLS-1$//$NON-NLS-2$ } return IOperationHistory.OPERATION_INVALID_STATUS; } return doRedo(monitor, info, operation); }