| author | Remy Suen | 2011-01-31 09:51:33 (EST) |
|---|---|---|
| committer | Remy Suen | 2011-10-06 11:31:49 (EDT) |
| commit | e06dd5f99103007d896b25a77accbefceac258f1 (patch) (side-by-side diff) | |
| tree | 6456b5f3ab456d10003868215958875b068f65bf | |
| parent | 30d5d63ca3b2556d0e0c9ce86f89da3851a81867 (diff) | |
| download | eclipse.platform.ui-e06dd5f99103007d896b25a77accbefceac258f1.zip eclipse.platform.ui-e06dd5f99103007d896b25a77accbefceac258f1.tar.gz eclipse.platform.ui-e06dd5f99103007d896b25a77accbefceac258f1.tar.bz2 | |
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.java | 7 |
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 5e95035..71ed94a 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. */ |

