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

Method getOptions

ij/src/main/java/ij/Macro.java:82–90  ·  view source on GitHub ↗

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. @see ij.gui.GenericDialog @see ij.io.OpenDialog

()

Source from the content-addressed store, hash-verified

80 @see ij.io.OpenDialog
81 */
82 public static String getOptions() {
83 String threadName = Thread.currentThread().getName();
84 //IJ.log("getOptions: "+threadName+" "+Thread.currentThread().hashCode()); //ts
85 if (threadName.startsWith("Run$_")||threadName.startsWith("RMI TCP")) {
86 Object options = table.get(Thread.currentThread());
87 return options==null?null:options+" ";
88 } else
89 return null;
90 }
91
92 /** Define a set of Macro options for the current Thread. */
93 public static void setOptions(String options) {

Callers 15

setupDialogMethod · 0.95
runMethod · 0.95
convertImagesToStackMethod · 0.95
mergeStacksMethod · 0.95
runMethod · 0.95
showDialogMethod · 0.95
showDialogMethod · 0.95
showDialogMethod · 0.95
runMethod · 0.95
runMethod · 0.95
runMethod · 0.95
rotateMethod · 0.95

Calls 3

startsWithMethod · 0.80
getNameMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected