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

Method run

ij/src/main/java/ij/macro/StartupRunner.java:11–19  ·  view source on GitHub ↗

Runs the RunAtStartup and AutoRun macros, on the current thread if 'batchMode' true, otherwise on a separate thread.

(boolean batchMode)

Source from the content-addressed store, hash-verified

9 /** Runs the RunAtStartup and AutoRun macros, on the current thread
10 if 'batchMode' true, otherwise on a separate thread. */
11 public void run(boolean batchMode) {
12 if (IJ.debugMode) IJ.log("StartupRunner: "+batchMode);
13 if (batchMode)
14 run();
15 else {
16 Thread thread = new Thread(this, "StartupRunner");
17 thread.start();
18 }
19 }
20
21 public void run() {
22 String macro = (new Startup()).getStartupMacro();

Callers

nothing calls this directly

Calls 8

logMethod · 0.95
waitMethod · 0.95
runMacroMethod · 0.95
autoRunMethod · 0.95
getStartupMacroMethod · 0.80
lengthMethod · 0.65
startMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected