Thanks. That works great.
________________________________
From: Peter Haub <
[hidden email]>
To:
[hidden email]
Sent: Tuesday, August 30, 2011 2:40 AM
Subject: Re: Plugin Command To Close Window Without "Save Changes?" Dialog
Hi Colin,
here is an example code:
//*************************************************
// This plugin closes all the image windows without saving
import ij.*;
import ij.plugin.PlugIn;
public class Window_Closer implements PlugIn {
public void run(String arg) {
ImagePlus img;
while (null != WindowManager.getCurrentImage()) {
img = WindowManager.getCurrentImage();
img.changes = false;
img.close();
}
}
}
//***********************************************
Regards,
Peter
On 30.08.2011 02:14, ColinWhite wrote: