Runs the RunAtStartup and AutoRun macros, on the current thread if 'batchMode' true, otherwise on a separate thread.
(boolean batchMode)
| 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(); |