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

Method allowedWithLockedImage

ij/src/main/java/ij/Executer.java:207–213  ·  view source on GitHub ↗

If the foreground image is locked during a filter operation with NonBlockingGenericDialog, the following plugins are allowed

(String className)

Source from the content-addressed store, hash-verified

205 /** If the foreground image is locked during a filter operation with NonBlockingGenericDialog,
206 * the following plugins are allowed */
207 boolean allowedWithLockedImage(String className) {
208 return className.equals("ij.plugin.Zoom") ||
209 className.equals("ij.plugin.frame.ContrastAdjuster") ||
210 className.equals("ij.plugin.SimpleCommands") || //includes Plugins>Utiltites>Reset (needed to reset a locked image)
211 className.equals("ij.plugin.WindowOrganizer") ||
212 className.equals("ij.plugin.URLOpener");
213 }
214
215 /** Opens a .lut file from the ImageJ/luts directory and returns 'true' if successful. */
216 public static boolean loadLut(String name) {

Callers 1

runCommandMethod · 0.95

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected