MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / run

Method run

ij/src/main/java/ij/plugin/Compiler.java:40–51  ·  view source on GitHub ↗
(String arg)

Source from the content-addressed store, hash-verified

38 private static int target = (int)Prefs.get(TARGET_KEY, 8);
39
40 public void run(String arg) {
41 if (arg.equals("edit"))
42 edit();
43 else if (arg.equals("options"))
44 showDialog();
45 else {
46 if (arg!=null && arg.length()>0 && !arg.endsWith(".java"))
47 IJ.error("Compiler", "File name must end with \".java\"");
48 else
49 compileAndRun(arg);
50 }
51 }
52
53 void edit() {
54 if (open("", "Open macro or plugin")) {

Callers

nothing calls this directly

Calls 6

editMethod · 0.95
showDialogMethod · 0.95
errorMethod · 0.95
compileAndRunMethod · 0.95
lengthMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected