1 11 package org.eclipse.pde.internal.ui.editor; 12 13 import org.eclipse.jface.action.IAction; 14 import org.eclipse.pde.core.IModelChangeProvider; 15 16 public class NullUndoManager implements IModelUndoManager { 17 18 21 public void connect(IModelChangeProvider provider) { 22 } 23 24 27 public void disconnect(IModelChangeProvider provider) { 28 } 29 30 33 public boolean isUndoable() { 34 return false; 35 } 36 37 40 public boolean isRedoable() { 41 return false; 42 } 43 44 47 public void undo() { 48 } 49 50 53 public void redo() { 54 } 55 56 59 public void setUndoLevelLimit(int limit) { 60 } 61 62 65 public void setIgnoreChanges(boolean ignore) { 66 } 67 68 public void setActions(IAction undoAction, IAction redoAction) { 69 if (undoAction!=null) undoAction.setEnabled(false); 70 if (redoAction!=null) redoAction.setEnabled(false); 71 } 72 } 73 | Popular Tags |