Project: Eclipse_Platform_UI
Bug 27602 [Perspectives] PlatformUIPreferenceListener should not use preference store
Reported: 2002-12-03 13:14:11 | Status: closed fixed

20021203 The PlatformUIPreferenceListener look up the new preference value in the AbstractUIPlugin preferenceStore. It should instead use newValue from the event. Here is the code in question: IWorkbench workbench = WorkbenchPlugin.getDefault().getWorkbench(); AbstractUIPlugin uiPlugin = (AbstractUIPlugin) Platform.getPlugin(PlatformUI.PLUGIN_ID); String newValue = uiPlugin.getPreferenceStore().getString( IWorkbenchPreferenceConstants.DEFAULT_PERSPECTIVE_ID); workbench.getPerspectiveRegistry().setDefaultPerspective(newValue);

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