If the foreground image is locked during a filter operation with NonBlockingGenericDialog, the following plugins are allowed
(String className)
| 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) { |