public class Macro extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MACRO_CANCELED |
Constructor and Description |
---|
Macro() |
Modifier and Type | Method and Description |
---|---|
static void |
abort()
Aborts the currently running macro or any plugin using IJ.run().
|
static String |
getDir(String path) |
static String |
getName(String path) |
static String |
getOptions()
If a command started using run(name, options) is running,
and the current thread is the same thread,
returns the options string, otherwise, returns null.
|
static String |
getValue(String options,
String key,
String defaultValue) |
static boolean |
open(String path) |
static boolean |
saveAs(String path) |
static void |
setOptions(String options)
Define a set of Macro options for the current Thread.
|
static void |
setOptions(Thread thread,
String options)
Define a set of Macro options for a Thread.
|
static String |
trimKey(String key) |
public static final String MACRO_CANCELED
public static boolean open(String path)
public static boolean saveAs(String path)
public static void abort()
public static String getOptions()
GenericDialog
,
OpenDialog
public static void setOptions(String options)
public static void setOptions(Thread thread, String options)