1 11 package org.eclipse.ltk.core.refactoring; 12 13 import org.eclipse.core.runtime.CoreException; 14 import org.eclipse.core.runtime.IProgressMonitor; 15 16 import org.eclipse.ltk.core.refactoring.history.IRefactoringHistoryService; 17 18 40 public interface IUndoManager { 41 42 48 public void addListener(IUndoManagerListener listener); 49 50 56 public void removeListener(IUndoManagerListener listener); 57 58 75 public void aboutToPerformChange(Change change); 76 77 84 public void changePerformed(Change change); 85 86 95 public void changePerformed(Change change, boolean successful); 96 97 104 public void addUndo(String name, Change change); 105 106 113 public boolean anythingToUndo(); 114 115 121 public String peekUndoName(); 122 123 135 public void performUndo(IValidationCheckResultQuery query, IProgressMonitor pm) throws CoreException; 136 137 144 public boolean anythingToRedo(); 145 146 152 public String peekRedoName(); 153 154 166 public void performRedo(IValidationCheckResultQuery query, IProgressMonitor pm) throws CoreException; 167 168 171 public void flush(); 172 173 176 public void shutdown(); 177 } 178 | Popular Tags |