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

Method abort

ij/src/main/java/ij/Macro.java:67–74  ·  view source on GitHub ↗

Aborts the currently running macro or any plugin using IJ.run().

()

Source from the content-addressed store, hash-verified

65
66 /** Aborts the currently running macro or any plugin using IJ.run(). */
67 public static void abort() {
68 //IJ.log("Abort: "+Thread.currentThread().getName());
69 abort = true;
70 if (Thread.currentThread().getName().endsWith("Macro$")) {
71 table.remove(Thread.currentThread());
72 throw new RuntimeException(MACRO_CANCELED);
73 }
74 }
75
76 /** If a command started using run(name, options) is running,
77 and the current thread is the same thread,

Callers 15

outOfMemoryMethod · 0.95
errorMethod · 0.95
getDirectoryMethod · 0.95
abortPluginOrMacroMethod · 0.95
convertMethod · 0.95
errorMethod · 0.95
analyzeMethod · 0.95
getRedirectImageMethod · 0.95
jSaveDispatchThreadMethod · 0.95
runMethod · 0.95
saveMethod · 0.95
jOpenDispatchThreadMethod · 0.95

Calls 2

getNameMethod · 0.65
removeMethod · 0.45

Tested by

no test coverage detected