@Override
 protected void configureShell(final Shell shell) {
   super.configureShell(shell);
   shell.addDisposeListener(
       new DisposeListener() {
         @Override
         public void widgetDisposed(final DisposeEvent e) {
           handleClose();
         }
       });
 }
 /*
  * Overridden to call the old framework method.
  *
  * @see org.eclipse.jface.dialogs.PopupDialog#fillDialogMenu(IMenuManager)
  * @since 3.2
  */
 protected void fillDialogMenu(IMenuManager dialogMenu) {
   super.fillDialogMenu(dialogMenu);
   fillViewMenu(dialogMenu);
 }
Beispiel #3
0
 @Override
 protected void handleShellCloseEvent() {
   super.handleShellCloseEvent();
   toolkit.dispose();
 }