public boolean close() { if (!super.close()) return false; synchronized(this) { done = true; notify(); } return true; }
public boolean close() { if (!super.close()) return false; synchronized(this) { done = true; notify(); } return true; }
public void closeSourceImages( ) { if( ! keepSourceImages ) { for( int i = 0; i < sourceImages.length; ++i ) { ImageWindow window = sourceImages[i].getWindow(); if( window != null ) window.close(); } } }
public static void closeAllWithoutConfirmation() { int[] wList = WindowManager.getIDList(); if (wList==null) { return; } for (int i=0; i<wList.length; i++) { ImagePlus imp = WindowManager.getImage(wList[i]); imp.changes=false; imp.getWindow().close(); } }
/** Closes the window, if any, that is displaying this image. */ public void hide() { if (win==null) { Interpreter.removeBatchModeImage(this); return; } boolean unlocked = lockSilently(); Overlay overlay2 = getOverlay(); changes = false; win.close(); win = null; setOverlay(overlay2); if (unlocked) unlock(); }
/** Closes this image and sets the ImageProcessor to null. To avoid the "Save changes?" dialog, first set the public 'changes' variable to false. */ public void close() { ImageWindow win = getWindow(); if (win!=null) win.close(); else { if (WindowManager.getCurrentImage()==this) WindowManager.setTempCurrentImage(null); deleteRoi(); //save any ROI so it can be restored later Interpreter.removeBatchModeImage(this); } }
/** Closes this image and sets the ImageProcessor to null. To avoid the "Save changes?" dialog, first set the public 'changes' variable to false. */ public void close() { ImageWindow win = getWindow(); if (win!=null) win.close(); else { if (WindowManager.getCurrentImage()==this) WindowManager.setTempCurrentImage(null); deleteRoi(); //save any ROI so it can be restored later Interpreter.removeBatchModeImage(this); } }
/** Closes the window, if any, that is displaying this image. */ public void hide() { if (win==null) { Interpreter.removeBatchModeImage(this); return; } boolean unlocked = lockSilently(); Overlay overlay2 = getOverlay(); changes = false; win.close(); win = null; setOverlay(overlay2); if (unlocked) unlock(); }
Prefs.closingAll = true; while (imageList.size()>0) { if (!((ImageWindow)imageList.get(0)).close()) { Prefs.closingAll = false; return false;
Prefs.closingAll = true; while (imageList.size()>0) { if (!((ImageWindow)imageList.get(0)).close()) { Prefs.closingAll = false; return false;
if (!keep) { inputImage.changes = false; inputImage.getWindow().close();
ImageWindow win = imp.getWindow(); if (win!=null) win.close(); else if (Interpreter.isBatchMode()) Interpreter.removeBatchModeImage(imp);
boolean changes = imp.changes; imp.changes = false; previousWindow.close(); imp.changes = changes; if (unlocked)
ImageWindow win = imp.getWindow(); if (win!=null) win.close(); else if (Interpreter.isBatchMode()) Interpreter.removeBatchModeImage(imp);
boolean changes = imp.changes; imp.changes = false; previousWindow.close(); imp.changes = changes; if (unlocked)
newImage.show(); currentImage.getWindow().close();
imp.getWindow().close();
if (imp.getWindow() != null) imp.getWindow().close();