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

Method runShortcut

ij/src/main/java/ij/macro/MacroRunner.java:109–120  ·  view source on GitHub ↗

Runs tokenized macro on current thread if pgm.queueCommands is true.

(Program pgm, int address, String name)

Source from the content-addressed store, hash-verified

107
108 /** Runs tokenized macro on current thread if pgm.queueCommands is true. */
109 public void runShortcut(Program pgm, int address, String name) {
110 this.pgm = pgm;
111 this.address = address;
112 this.name = name;
113 if (pgm.queueCommands)
114 run();
115 else {
116 thread = new Thread(this, name+"_Macro$");
117 thread.setPriority(Math.max(thread.getPriority()-2, Thread.MIN_PRIORITY));
118 thread.start();
119 }
120 }
121
122 /** Runs a tokenized macro on the current thread. */
123 public void run(Program pgm, int address, String name) {

Callers 1

runMacroShortcutMethod · 0.80

Calls 3

runMethod · 0.95
maxMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected