| 1 19 20 package ca.mcgill.sable.soot.callgraph; 21 22 import org.eclipse.gef.ui.actions.EditorPartAction; 23 import org.eclipse.ui.IEditorPart; 24 import org.eclipse.jface.resource.*; 25 import org.eclipse.ui.*; 26 import org.eclipse.jface.action.*; 27 import org.eclipse.jface.viewers.*; 28 29 import org.eclipse.swt.printing.*; 30 31 import soot.toolkits.graph.interaction.InteractionHandler; 32 33 34 public class CGDoneAction implements IEditorActionDelegate { 35 36 public static final String DONE = "done"; 37 40 public CGDoneAction() { 41 } 42 43 public void setActiveEditor(IAction action, IEditorPart editor){ 44 45 } 46 47 50 protected boolean calculateEnabled() { 51 return true; 52 } 53 54 60 public void run(IAction action){ 61 InteractionHandler.v().cgDone(true); 62 InteractionHandler.v().setInteractionCon(); 63 } 64 65 public void selectionChanged(IAction action, ISelection sel){ 66 } 67 68 } 69 | Popular Tags |