@Override public IStatus undo(IProgressMonitor monitor, IAdaptable uiInfo) { resetProcessChangeSate(); int size= fCommands.size(); if (size > 0) { TextCommand c; for (int i= size -1; i > 0; --i) { c= fCommands.get(i); c.undoTextChange(); } c= fCommands.get(0); c.undo(monitor, uiInfo); } return Status.OK_STATUS; }
@Override public IStatus undo(IProgressMonitor monitor, IAdaptable uiInfo) { resetProcessChangeSate(); int size= fCommands.size(); if (size > 0) { TextCommand c; for (int i= size -1; i > 0; --i) { c= fCommands.get(i); c.undoTextChange(); } c= fCommands.get(0); c.undo(monitor, uiInfo); } return Status.OK_STATUS; }