Runs tokenized macro on current thread if pgm.queueCommands is true.
(Program pgm, int address, String name)
| 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) { |
no test coverage detected