public void close() { super.close(); instance = null; location = getLocation(); }
public void close() { super.close(); instance = null; location = getLocation(); }
/** Overrides close() in PlugInDialog. */ public void close() { super.close(); instance = null; done = true; Prefs.saveLocation(LOC_KEY, getLocation()); synchronized(this) { notify(); } }
/** Overrides close() in PlugInDialog. */ public void close() { super.close(); instance = null; done = true; Prefs.saveLocation(LOC_KEY, getLocation()); synchronized(this) { notify(); } }
public void windowClosing(WindowEvent e) { if (e.getSource()==this) { close(); if (Recorder.record) Recorder.record("run", "Close"); } }
public void windowClosing(WindowEvent e) { if (e.getSource()==this) { close(); if (Recorder.record) Recorder.record("run", "Close"); } }
public void close() { super.close(); instance = null; Prefs.saveLocation(LOC_KEY, getLocation()); IJ.notifyEventListeners(IJEventListener.COLOR_PICKER_CLOSED); }
public void close() { super.close(); instance = null; Prefs.saveLocation(LOC_KEY, getLocation()); IJ.notifyEventListeners(IJEventListener.COLOR_PICKER_CLOSED); }
/** Overrides close() in PlugInFrame. */ public void close() { super.close(); instance = null; done = true; Prefs.saveLocation(LOC_KEY, getLocation()); Prefs.set(MODE_KEY, mode); Prefs.set(DARK_BACKGROUND, darkBackground.getState()); Prefs.set(NO_RESET, noResetButton.getState()); synchronized(this) { notify(); } }
/** Overrides close() in PlugInFrame. */ public void close() { super.close(); instance = null; done = true; Prefs.saveLocation(LOC_KEY, getLocation()); Prefs.set(MODE_KEY, mode); Prefs.set(DARK_BACKGROUND, darkBackground.getState()); Prefs.set(NO_RESET, noResetButton.getState()); synchronized(this) { notify(); } }
void close() { ImagePlus imp = WindowManager.getCurrentImage(); Window win = WindowManager.getActiveWindow(); if (win==null || (Interpreter.isBatchMode() && win instanceof ImageWindow)) closeImage(imp); else if (win instanceof PlugInFrame) ((PlugInFrame)win).close(); else if (win instanceof PlugInDialog) ((PlugInDialog)win).close(); else if (win instanceof TextWindow) ((TextWindow)win).close(); else closeImage(imp); }
void close() { ImagePlus imp = WindowManager.getCurrentImage(); Window win = WindowManager.getActiveWindow(); if (win==null || (Interpreter.isBatchMode() && win instanceof ImageWindow)) closeImage(imp); else if (win instanceof PlugInFrame) ((PlugInFrame)win).close(); else if (win instanceof PlugInDialog) ((PlugInDialog)win).close(); else if (win instanceof TextWindow) ((TextWindow)win).close(); else closeImage(imp); }