public String peekRedoName() { IUndoableOperation op= fOperationHistroy.getRedoOperation(RefactoringCorePlugin.getUndoContext()); if (op == null) return null; return op.getLabel(); }
@Override public String peekRedoName() { IUndoableOperation op= fOperationHistory.getRedoOperation(RefactoringCorePlugin.getUndoContext()); if (op == null) return null; return op.getLabel(); }
@Override public String peekRedoName() { IUndoableOperation op= fOperationHistory.getRedoOperation(RefactoringCorePlugin.getUndoContext()); if (op == null) return null; return op.getLabel(); }
@Override IUndoableOperation getOperation() { return getHistory().getRedoOperation(getUndoContext()); }
@Override public final IStatus proceedRedoing(IUndoableOperation operation, IOperationHistory history, IAdaptable info) { IUndoContext[] contexts = operation.getContexts(); for (IUndoContext context : contexts) { if (history.getRedoOperation(context) != operation) { IStatus status = allowLinearRedoViolation(operation, context, history, info); if (!status.isOK()) { return status; } } } return Status.OK_STATUS; }
@Override public final IStatus proceedRedoing(IUndoableOperation operation, IOperationHistory history, IAdaptable info) { IUndoContext[] contexts = operation.getContexts(); for (int i = 0; i < contexts.length; i++) { IUndoContext context = contexts[i]; if (history.getRedoOperation(context) != operation) { IStatus status = allowLinearRedoViolation(operation, context, history, info); if (!status.isOK()) { return status; } } } return Status.OK_STATUS; }
@Override public final IStatus proceedRedoing(IUndoableOperation operation, IOperationHistory history, IAdaptable info) { IUndoContext[] contexts = operation.getContexts(); for (int i = 0; i < contexts.length; i++) { IUndoContext context = contexts[i]; if (history.getRedoOperation(context) != operation) { IStatus status = allowLinearRedoViolation(operation, context, history, info); if (!status.isOK()) { return status; } } } return Status.OK_STATUS; }
@Override public void performRedo(IValidationCheckResultQuery query, IProgressMonitor pm) throws CoreException { IUndoableOperation redo= fOperationHistory.getRedoOperation(RefactoringCorePlugin.getUndoContext()); UndoableOperation2ChangeAdapter changeOperation= getUnwrappedOperation(redo); if (changeOperation == null) throw new CoreException(new Status(IStatus.ERROR, RefactoringCorePlugin.getPluginId(), IStatus.ERROR, RefactoringCoreMessages.UndoManager2_no_change, null)); if (query == null) query= new NullQuery(); try { fOperationHistory.redoOperation(redo, pm, new QueryAdapter(query)); } catch (ExecutionException e) { handleException(e); } }
public void performRedo(IValidationCheckResultQuery query, IProgressMonitor pm) throws CoreException { IUndoableOperation redo= fOperationHistroy.getRedoOperation(RefactoringCorePlugin.getUndoContext()); UndoableOperation2ChangeAdapter changeOperation= getUnwrappedOperation(redo); if (changeOperation == null) throw new CoreException(new Status(IStatus.ERROR, RefactoringCorePlugin.getPluginId(), IStatus.ERROR, RefactoringCoreMessages.UndoManager2_no_change, null)); if (query == null) query= new NullQuery(); try { fOperationHistroy.redoOperation(redo, pm, new QueryAdapter(query)); } catch (ExecutionException e) { handleException(e); } }
@Override public void performRedo(IValidationCheckResultQuery query, IProgressMonitor pm) throws CoreException { IUndoableOperation redo= fOperationHistory.getRedoOperation(RefactoringCorePlugin.getUndoContext()); UndoableOperation2ChangeAdapter changeOperation= getUnwrappedOperation(redo); if (changeOperation == null) throw new CoreException(new Status(IStatus.ERROR, RefactoringCorePlugin.getPluginId(), IStatus.ERROR, RefactoringCoreMessages.UndoManager2_no_change, null)); if (query == null) query= new NullQuery(); try { fOperationHistory.redoOperation(redo, pm, new QueryAdapter(query)); } catch (ExecutionException e) { handleException(e); } }
while (operation != history.getRedoOperation(context)) { try { IStatus status = history.redo(context, null, uiInfo);