diff options
| author | Julian Honnen | 2020-01-09 12:11:26 +0000 |
|---|---|---|
| committer | Julian Honnen | 2020-01-13 07:19:26 +0000 |
| commit | c76d81f79c132de76cc78956c7eabaf1cc4e04b4 (patch) | |
| tree | d159323981501f0813c9d506f276bf661f3b7d5a | |
| parent | ab039f8850ad233ced5620af276f9dbe17455459 (diff) | |
| download | eclipse.platform.ui-c76d81f79c132de76cc78956c7eabaf1cc4e04b4.tar.gz eclipse.platform.ui-c76d81f79c132de76cc78956c7eabaf1cc4e04b4.tar.xz eclipse.platform.ui-c76d81f79c132de76cc78956c7eabaf1cc4e04b4.zip | |
Bug 558960 - Preference dialog should be centered
Removed location persistence for consistency with other modal dialogs.
Change-Id: I7d0226b59ecd90ccc57feb20df2ca07237ab9d53
Signed-off-by: Julian Honnen <julian.honnen@vector.com>
| -rw-r--r-- | bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchPreferenceDialog.java | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchPreferenceDialog.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchPreferenceDialog.java index 19f08c91f9a..fe913285f58 100644 --- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchPreferenceDialog.java +++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchPreferenceDialog.java @@ -14,7 +14,6 @@ package org.eclipse.ui.internal.dialogs; import org.eclipse.core.runtime.Assert; -import org.eclipse.jface.dialogs.IDialogSettings; import org.eclipse.jface.preference.IPreferenceNode; import org.eclipse.jface.preference.PreferenceManager; import org.eclipse.swt.widgets.Shell; @@ -23,7 +22,6 @@ import org.eclipse.ui.IWorkbenchWindow; import org.eclipse.ui.PlatformUI; import org.eclipse.ui.activities.WorkbenchActivityHelper; import org.eclipse.ui.internal.IWorkbenchHelpContextIds; -import org.eclipse.ui.internal.WorkbenchPlugin; /** * Prefence dialog for the workbench including the ability to load/save @@ -40,16 +38,6 @@ public class WorkbenchPreferenceDialog extends FilteredPreferenceDialog { private static WorkbenchPreferenceDialog instance = null; /** - * The bounds of this dialog will be persisted in the dialog settings. This is - * defined at the most concrete level of the hierarchy so that different - * concrete implementations don't necessarily store their bounds in the same - * settings. - * - * @since 3.2 - */ - private static final String DIALOG_SETTINGS_SECTION = "WorkbenchPreferenceDialogSettings"; //$NON-NLS-1$ - - /** * Creates a workbench preference dialog to a particular preference page. It is * the responsibility of the caller to then call <code>open()</code>. The call * to <code>open()</code> will not return until the dialog closes, so this is @@ -153,25 +141,4 @@ public class WorkbenchPreferenceDialog extends FilteredPreferenceDialog { return node; } - @Override - protected IDialogSettings getDialogBoundsSettings() { - IDialogSettings settings = WorkbenchPlugin.getDefault().getDialogSettings(); - IDialogSettings section = settings.getSection(DIALOG_SETTINGS_SECTION); - if (section == null) { - section = settings.addNewSection(DIALOG_SETTINGS_SECTION); - } - return section; - } - - /** - * Overridden to persist only the location, not the size, since the current page - * dictates the most appropriate size for the dialog. - * - * @since 3.2 - */ - @Override - protected int getDialogBoundsStrategy() { - return DIALOG_PERSISTLOCATION; - } - } |
