1 19 20 package ca.mcgill.sable.soot.launching; 21 22 import java.util.ArrayList ; 23 24 import ca.mcgill.sable.soot.ui.PhaseOptionsDialog; 25 26 30 public class SootDefaultCommands { 31 32 private PhaseOptionsDialog dialog; 33 34 37 public SootDefaultCommands(PhaseOptionsDialog dialog) { 38 setDialog(dialog); 39 } 40 41 public void setSootClassPath(String val) { 42 getDialog().addToEclipseDefList(LaunchCommands.SOOT_CLASSPATH, val); 43 } 44 45 public void setProcessPath(String val) { 46 ArrayList list = new ArrayList (); 47 list.add(val); 48 getDialog().addToEclipseDefList(LaunchCommands.PROCESS_PATH, list); 49 } 50 public void setProcessPath(ArrayList list){ 51 getDialog().addToEclipseDefList(LaunchCommands.PROCESS_PATH, list); 52 } 53 public void setOutputDir(String val) { 54 getDialog().addToEclipseDefList(LaunchCommands.OUTPUT_DIR, val); 55 } 56 57 public void setKeepLineNum() { 58 getDialog().addToEclipseDefList(LaunchCommands.KEEP_LINE_NUMBER, new Boolean (true)); 59 } 60 61 public void setPrintTags() { 62 getDialog().addToEclipseDefList(LaunchCommands.XML_ATTRIBUTES, new Boolean (true)); 63 } 64 65 public void setSrcPrec(String val) { 66 getDialog().addToEclipseDefList(LaunchCommands.SRC_PREC, val); 67 } 68 69 public void setSootMainClass(){ 70 getDialog().addToEclipseDefList("sootMainClass", "soot.Main"); 71 } 72 73 74 75 76 77 81 public PhaseOptionsDialog getDialog() { 82 return dialog; 83 } 84 85 89 public void setDialog(PhaseOptionsDialog dialog) { 90 this.dialog = dialog; 91 } 92 93 } 94 | Popular Tags |