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
()
| 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) { |
no test coverage detected