1 11 package org.eclipse.core.commands.operations; 12 13 import org.eclipse.core.commands.ExecutionException; 14 import org.eclipse.core.runtime.IAdaptable; 15 import org.eclipse.core.runtime.IProgressMonitor; 16 import org.eclipse.core.runtime.IStatus; 17 18 34 public interface IUndoableOperation { 35 36 48 void addContext(IUndoContext context); 49 50 66 boolean canExecute(); 67 68 85 boolean canRedo(); 86 87 104 boolean canUndo(); 105 106 112 void dispose(); 113 114 135 IStatus execute(IProgressMonitor monitor, IAdaptable info) 136 throws ExecutionException; 137 138 151 IUndoContext[] getContexts(); 152 153 160 String getLabel(); 161 162 181 boolean hasContext(IUndoContext context); 182 183 203 204 IStatus redo(IProgressMonitor monitor, IAdaptable info) 205 throws ExecutionException; 206 207 217 void removeContext(IUndoContext context); 218 219 239 IStatus undo(IProgressMonitor monitor, IAdaptable info) 240 throws ExecutionException; 241 242 } 243 | Popular Tags |