Fixed bug 188651: [jface] Error on disposal of TrayDialog
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TrayDialog.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TrayDialog.java
index d5d8308..0a63339 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TrayDialog.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TrayDialog.java
@@ -208,9 +208,9 @@
}
/* (non-Javadoc)
- * @see org.eclipse.jface.dialogs.Dialog#close()
+ * @see org.eclipse.jface.window.Window#handleShellCloseEvent()
*/
- public boolean close() {
+ protected void handleShellCloseEvent() {
/*
* Close the tray to ensure that those dialogs that remember their
* size do not store the tray size.
@@ -218,7 +218,8 @@
if (getTray() != null) {
closeTray();
}
- return super.close();
+
+ super.handleShellCloseEvent();
}
/* (non-Javadoc)