/* * @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(); }
/* * @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; } }
@Override public void dispose() { resourceManager.dispose(); }