/** * Notifies that the window's close button was pressed, the close menu was * selected, or the ESCAPE key pressed. * <p> * The default implementation of this framework method sets the window's * return code to <code>CANCEL</code> and closes the window using * <code>close</code>. Subclasses may extend or reimplement. * </p> */ protected void handleShellCloseEvent() { setReturnCode(CANCEL); close(); }
/** * Notifies that the window's close button was pressed, the close menu was * selected, or the ESCAPE key pressed. * <p> * The default implementation of this framework method sets the window's * return code to <code>CANCEL</code> and closes the window using * <code>close</code>. Subclasses may extend or reimplement. * </p> */ protected void handleShellCloseEvent() { setReturnCode(CANCEL); close(); }
/** * Notifies that the window's close button was pressed, the close menu was * selected, or the ESCAPE key pressed. * <p> * The default implementation of this framework method sets the window's * return code to <code>CANCEL</code> and closes the window using * <code>close</code>. Subclasses may extend or reimplement. * </p> */ protected void handleShellCloseEvent() { setReturnCode(CANCEL); close(); }
/** * Attempts to close all windows managed by this window manager, * as well as windows managed by any descendent window managers. * * @return <code>true</code> if all windows were sucessfully closed, * and <code>false</code> if any window refused to close */ public boolean close() { List<Window> t = new ArrayList<>(windows); // make iteration robust Iterator<Window> e = t.iterator(); while (e.hasNext()) { Window window = e.next(); boolean closed = window.close(); if (!closed) { return false; } } if (subManagers != null) { Iterator<WindowManager> i = subManagers.iterator(); while (i.hasNext()) { WindowManager wm = i.next(); boolean closed = wm.close(); if (!closed) { return false; } } } return true; }
/** * Attempts to close all windows managed by this window manager, * as well as windows managed by any descendent window managers. * * @return <code>true</code> if all windows were sucessfully closed, * and <code>false</code> if any window refused to close */ public boolean close() { List<Window> t = new ArrayList<>(windows); // make iteration robust Iterator<Window> e = t.iterator(); while (e.hasNext()) { Window window = e.next(); boolean closed = window.close(); if (!closed) { return false; } } if (subManagers != null) { Iterator<WindowManager> i = subManagers.iterator(); while (i.hasNext()) { WindowManager wm = i.next(); boolean closed = wm.close(); if (!closed) { return false; } } } return true; }
/** * Attempts to close all windows managed by this window manager, * as well as windows managed by any descendent window managers. * * @return <code>true</code> if all windows were sucessfully closed, * and <code>false</code> if any window refused to close */ public boolean close() { List t = (List) windows.clone(); // make iteration robust Iterator e = t.iterator(); while (e.hasNext()) { Window window = (Window) e.next(); boolean closed = window.close(); if (!closed) { return false; } } if (subManagers != null) { e = subManagers.iterator(); while (e.hasNext()) { WindowManager wm = (WindowManager) e.next(); boolean closed = wm.close(); if (!closed) { return false; } } } return true; }
/** * @see org.eclipse.jface.window.Window#close() */ public boolean close() { if (getShell() != null && !getShell().isDisposed()) { saveDialogBounds(getShell()); } boolean returnValue = super.close(); if (returnValue) { buttons = new HashMap(); buttonBar = null; dialogArea = null; } return returnValue; }
/** * @see org.eclipse.jface.window.Window#close() */ @Override public boolean close() { if (getShell() != null && !getShell().isDisposed()) { saveDialogBounds(getShell()); } boolean returnValue = super.close(); if (returnValue) { buttons = new HashMap<>(); buttonBar = null; dialogArea = null; } return returnValue; }
/** * @see org.eclipse.jface.window.Window#close() */ @Override public boolean close() { if (getShell() != null && !getShell().isDisposed()) { saveDialogBounds(getShell()); } boolean returnValue = super.close(); if (returnValue) { buttons = new HashMap<>(); buttonBar = null; dialogArea = null; } return returnValue; }
return super.close();
return super.close();
return super.close();
if (super.close()) { if (menuBarManager != null) { menuBarManager.dispose();
if (super.close()) { if (menuBarManager != null) { menuBarManager.dispose();
if (super.close()) { if (menuBarManager != null) { menuBarManager.dispose();
dialog.close(); dialog = null;