Project: Eclipse_Platform_UI
Bug 81164 restoreDefaults for ViewsPreferencePage referring to wrong preference store
Reported: 2004-12-15 10:13:08 | Status: verified fixed

20041214 The restore defaults for perspective bar location refers to the workbench preference store but should refer to the API preference store. As a result restore defaults leaves the position unchecked. Here is a patch Index: ViewsPreferencePage.java =================================================================== RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ViewsPreferencePage.java,v retrieving revision 1.40 diff -u -r1.40 ViewsPreferencePage.java --- ViewsPreferencePage.java 27 Sep 2004 15:08:42 -0000 1.40 +++ ViewsPreferencePage.java 15 Dec 2004 15:11:46 -0000 @@ -715,7 +715,7 @@ viewBottomButton.setSelection(viewTopValue == SWT.BOTTOM); viewAlignment = viewTopValue; - perspBarLocation = store + perspBarLocation = apiStore .getDefaultString (IWorkbenchPreferenceConstants.DOCK_PERSPECTIVE_BAR); perspLeftButton.setSelection(IWorkbenchPreferenceConstants.LEFT .equals(perspBarLocation));

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ViewsPreferencePage.java