java.lang.Object
ij.macro.MacroRunner
- All Implemented Interfaces:
Runnable
This class runs macros in a separate thread.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a MacroRunner.MacroRunner(Program pgm, int address, String name) Runs a tokenized macro in a separate thread.MacroRunner(Program pgm, int address, String name, Editor editor) Runs a tokenized macro in debug mode if 'editor' is not null.MacroRunner(Program pgm, int address, String name, String argument) Runs a tokenized macro in a separate thread, passing a string argument.MacroRunner(File file) Interprets a macro file in a separate thread.MacroRunner(String macro) Create a new object that interprets macro source in a separate thread.MacroRunner(String macro, String argument) Interprets macro source in a separate thread, passing a string argument. -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()Used to run the macro code in 'macro' on a separate thread.voidRuns a tokenized macro on the current thread.voidRuns the specified macro code.voidrunShortcut(Program pgm, int address, String name) Runs tokenized macro on current thread if pgm.queueCommands is true.voidUse the specified Editor to run the macro in debug mode.
-
Constructor Details
-
MacroRunner
public MacroRunner()Create a MacroRunner. -
MacroRunner
Create a new object that interprets macro source in a separate thread. -
MacroRunner
Interprets macro source in a separate thread, passing a string argument. -
MacroRunner
Interprets a macro file in a separate thread. -
MacroRunner
Runs a tokenized macro in a separate thread. -
MacroRunner
Runs a tokenized macro in a separate thread, passing a string argument. -
MacroRunner
Runs a tokenized macro in debug mode if 'editor' is not null.
-
-
Method Details
-
run
Runs the specified macro code. -
runShortcut
Runs tokenized macro on current thread if pgm.queueCommands is true. -
run
Runs a tokenized macro on the current thread. -
getThread
-
setEditor
Use the specified Editor to run the macro in debug mode. -
run
public void run()Used to run the macro code in 'macro' on a separate thread.
-