1 17 package org.eclipse.emf.common.command; 18 19 20 import java.util.Collection ; 21 22 23 38 public interface Command 39 { 40 46 boolean canExecute(); 47 48 53 void execute(); 54 55 63 boolean canUndo(); 64 65 70 void undo(); 71 72 78 void redo(); 79 80 85 Collection getResult(); 86 87 95 Collection getAffectedObjects(); 96 97 101 String getLabel(); 102 103 107 String getDescription(); 108 109 113 void dispose(); 114 115 137 Command chain(Command command); 138 } 139 | Popular Tags |