I've been developing a Jython script using JetBrains IntelliJ. I've pointed IntelliJ to IJ.jar included with ImageJ 1.x for the development and running the script using IJ.jar (/Applications/ImageJ/ImageJ.app/Contents/Java/ij.jar) works fine. Likewise, I've tried using the IJ.jar (/Applications/Fiji.app/jars/ij-1.52f-SNAPSHOT.jar) included with Fiji when developing using the IDE with no issue.
However, when I load the script into Fiji.app by placing it in /Applications/Fiji.app/Scripts/My Script/ and run it, there are differences in how the script is executed. Specifically, when run through the IDE the script closes image windows without asking to "Save changes" where I am presented with the dialog when running through Fiji. I believe the issue may be related to my closing windows using
WindowManager.closeAllWindows()
Attached is a screenshot of the dialog in question.
Is there a way to close the windows an insure that no "Save changes" dialog is shown?
Thanks
Alex
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html