Posted by
Wayne Rasband-2 on
Jan 05, 2021; 6:18pm
URL: http://imagej.273.s1.nabble.com/Notification-of-File-Save-tp5024300p5024333.html
> On Dec 25, 2020, at 3:41 PM, Wayne Rasband <
[hidden email]> wrote:
>>
>> Is it possible to get notified or hook into when an image is saved?
>
> The ImageJ 1.53h17 daily build adds an imageSaved() method to the ImageListener interface. This method is defined using the "default” keyword (added in Java 8), so ImageJ now requires Java 8 or later. The Event Listener (Plugins>Utilities>Monitor Events) now reports image saved events.
The 1.53h25 and later daily builds are again built for Java 6 since the daily builds built for Java 8 caused Fiji to fail to launch.
For anyone willing to try to figure out why Fiji can’t work with an ij.jar built for Java 8, here is the exception:
Error while executing the main() method of class 'net.imagej.Main':
java.lang.NullPointerException
at net.imagej.legacy.ui.LegacyUI.ij1Helper(LegacyUI.java:119)
at net.imagej.legacy.ui.LegacyUI.show(LegacyUI.java:130)
at org.scijava.ui.DefaultUIService.showUI(DefaultUIService.java:158)
at org.scijava.ui.DefaultUIService.showUI(DefaultUIService.java:143)
at org.scijava.AbstractGateway.launch(AbstractGateway.java:110)
at net.imagej.Main.main(Main.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.imagej.launcher.ClassLauncher.launch(ClassLauncher.java:291)
at net.imagej.launcher.ClassLauncher.run(ClassLauncher.java:198)
at net.imagej.launcher.ClassLauncher.main(ClassLauncher.java:89)
-wayne
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html