Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemy Suen2011-01-31 14:51:33 +0000
committerRemy Suen2011-10-06 15:31:49 +0000
commite06dd5f99103007d896b25a77accbefceac258f1 (patch)
tree6456b5f3ab456d10003868215958875b068f65bf
parent30d5d63ca3b2556d0e0c9ce86f89da3851a81867 (diff)
downloadeclipse.platform.ui-e06dd5f99103007d896b25a77accbefceac258f1.tar.gz
eclipse.platform.ui-e06dd5f99103007d896b25a77accbefceac258f1.tar.xz
eclipse.platform.ui-e06dd5f99103007d896b25a77accbefceac258f1.zip
Bug 196856 [EditorMgmt] 'Switch to Editor' dialog should persist dialog bounds even if the dialog has been closed regularly
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchEditorsDialog.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchEditorsDialog.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchEditorsDialog.java
index 5e95035cf46..71ed94a45f1 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchEditorsDialog.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchEditorsDialog.java
@@ -617,8 +617,6 @@ public class WorkbenchEditorsDialog extends SelectionDialog {
return;
}
- saveDialogSettings();
-
Adapter selection = (Adapter) items[0].getData();
//It would be better to activate before closing the
//dialog but it does not work when the editor is in other
@@ -627,6 +625,11 @@ public class WorkbenchEditorsDialog extends SelectionDialog {
selection.activate();
}
+ public boolean close() {
+ saveDialogSettings();
+ return super.close();
+ }
+
/**
* Saves the dialog settings.
*/

Back to the top