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

Method extraCommand

ij/src/main/java/ij/Executer.java:192–203  ·  view source on GitHub ↗
(String cmd)

Source from the content-addressed store, hash-verified

190 }
191
192 private boolean extraCommand(String cmd) {
193 if (cmd!=null && cmd.equals("Duplicate Image...")) {
194 ImagePlus imp = WindowManager.getCurrentImage();
195 if (imp!=null) {
196 Duplicator.ignoreNextSelection();
197 IJ.run(imp, "Duplicate...", "");
198 } else
199 IJ.noImage();
200 return true;
201 } else
202 return false;
203 }
204
205 /** If the foreground image is locked during a filter operation with NonBlockingGenericDialog,
206 * the following plugins are allowed */

Callers 1

runCommandMethod · 0.95

Calls 5

getCurrentImageMethod · 0.95
ignoreNextSelectionMethod · 0.95
runMethod · 0.95
noImageMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected