1 19 20 package ca.mcgill.sable.soot.interaction; 21 22 import org.eclipse.jface.action.IAction; 23 import org.eclipse.jface.viewers.ISelection; 24 import org.eclipse.ui.IWorkbenchWindow; 25 import org.eclipse.ui.IWorkbenchWindowActionDelegate; 26 import soot.toolkits.graph.interaction.*; 27 import ca.mcgill.sable.soot.*; 28 29 public class InteractionContinuer implements IWorkbenchWindowActionDelegate { 30 31 public InteractionContinuer() { 32 super(); 33 } 34 35 38 public void dispose() { 39 } 40 41 44 public void init(IWorkbenchWindow window) { 45 } 46 47 50 public synchronized void run(IAction action) { 51 if (SootPlugin.getDefault().getDataKeeper().inMiddle()){ 52 SootPlugin.getDefault().getDataKeeper().stepForward(); 53 } 54 else { 55 InteractionHandler.v().setInteractionCon(); 56 } 57 } 58 59 62 public void selectionChanged(IAction action, ISelection selection) { 63 } 64 65 } 66 | Popular Tags |