1 11 package org.eclipse.text.undo; 12 13 import org.eclipse.core.commands.ExecutionException; 14 import org.eclipse.core.commands.operations.IUndoContext; 15 16 39 public interface IDocumentUndoManager { 40 41 58 void addDocumentUndoListener(IDocumentUndoListener listener); 59 60 68 void removeDocumentUndoListener(IDocumentUndoListener listener); 69 70 75 IUndoContext getUndoContext(); 76 77 80 void commit(); 81 82 89 void connect(Object client); 90 91 99 void disconnect(Object client); 100 101 105 void beginCompoundChange(); 106 107 112 void endCompoundChange(); 113 114 120 void setMaximalUndoLevel(int undoLimit); 121 122 126 void reset(); 127 128 133 boolean undoable(); 134 135 141 boolean redoable(); 142 143 148 void undo() throws ExecutionException; 149 150 155 void redo() throws ExecutionException; 156 157 168 public void transferUndoHistory(IDocumentUndoManager manager); 169 170 } 171 | Popular Tags |