@Override public IStatus redo(IProgressMonitor monitor, IAdaptable uiInfo) { resetProcessChangeSate(); int size= fCommands.size(); if (size > 0) { TextCommand c; for (int i= 0; i < size -1; ++i) { c= fCommands.get(i); c.redoTextChange(); } c= fCommands.get(size -1); c.redo(monitor, uiInfo); } return Status.OK_STATUS; }
@Override public IStatus redo(IProgressMonitor monitor, IAdaptable uiInfo) { resetProcessChangeSate(); int size= fCommands.size(); if (size > 0) { TextCommand c; for (int i= 0; i < size -1; ++i) { c= fCommands.get(i); c.redoTextChange(); } c= fCommands.get(size -1); c.redo(monitor, uiInfo); } return Status.OK_STATUS; }
/** * Re-applies the change described by this command that previously been * rolled back. Also selects and reveals the change. * * @param monitor the progress monitor to use if necessary * @param uiInfo an adaptable that can provide UI info if needed * @return the status */ @Override public IStatus redo(IProgressMonitor monitor, IAdaptable uiInfo) { if (isValid()) { redoTextChange(); resetProcessChangeSate(); selectAndReveal(fStart, fText == null ? 0 : fText.length()); return Status.OK_STATUS; } return IOperationHistory.OPERATION_INVALID_STATUS; }
/** * Re-applies the change described by this command that previously been * rolled back. Also selects and reveals the change. * * @param monitor the progress monitor to use if necessary * @param uiInfo an adaptable that can provide UI info if needed * @return the status */ @Override public IStatus redo(IProgressMonitor monitor, IAdaptable uiInfo) { if (isValid()) { redoTextChange(); resetProcessChangeSate(); selectAndReveal(fStart, fText == null ? 0 : fText.length()); return Status.OK_STATUS; } return IOperationHistory.OPERATION_INVALID_STATUS; }