1 2 20 21 package ca.mcgill.sable.soot.launching; 22 23 import org.eclipse.jface.action.*; 24 25 28 public class SootFolderLauncher extends SootLauncher { 29 30 private String processPath; 31 private String classpathAppend = null; 32 33 public void run(IAction action) { 34 super.run(action); 35 classpathAppend = null; 36 37 if (getSootSelection().getType() == SootSelection.PACKAGEROOT_SELECTED_TYPE){ 38 addJars(); 39 if (getSootSelection().getPackageFragmentRoot().getResource() != null){ 40 setProcessPath(platform_location+getSootSelection().getPackageFragmentRoot().getPath().toOSString()); 41 } 42 else { 43 setProcessPath(getSootSelection().getPackageFragmentRoot().getPath().toOSString()); 44 } 45 } 46 } 47 48 52 public void setClasspathAppend(String ca) { 53 if (this.classpathAppend == null){ 54 this.classpathAppend = ca; 55 } 56 else { 57 this.classpathAppend = this.classpathAppend+getSootClasspath().getSeparator()+ca; 58 } 59 } 60 61 62 66 public String getProcessPath() { 67 return processPath; 68 } 69 70 71 75 public void setProcessPath(String processPath) { 76 this.processPath = processPath; 77 } 78 79 82 public String getClasspathAppend() { 83 return classpathAppend; 84 } 85 86 } 87 | Popular Tags |