/*
  * @see org.eclipse.jface.dialogs.Dialog#close()
  */
 @Override
 public boolean close() {
   OwlUI.safeDispose(fAddMenu);
   fResources.dispose();
   if (!fOkPressed) {
     fPreferences.putIntegers(DefaultPreferences.TOOLBAR_ITEMS, fInitialToolBarItems);
     fPreferences.putInteger(DefaultPreferences.TOOLBAR_MODE, fInitialToolBarMode);
   }
   return super.close();
 }
 /** Dispose any images allocated for this menu */
 private void disposeOldImages() {
   if (imageManager != null) {
     imageManager.dispose();
     imageManager = null;
   }
 }
 @Override
 public boolean close() {
   fVisibleInstance = null;
   fResources.dispose();
   return super.close();
 }
Esempio n. 4
0
  /*
   * @see org.eclipse.jface.dialogs.TrayDialog#close()
   */
  @Override
  public boolean close() {
    fResources.dispose();

    return super.close();
  }
 private void disposeOldImages() {
   if (localResourceManager != null) {
     localResourceManager.dispose();
     localResourceManager = null;
   }
 }
Esempio n. 6
0
 @Override
 public void dispose() {
   resourceManager.dispose();
 }