Bug 80429 [Preferences] [Dialogs] FieldEditors should relax requirements to support DialogPages
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEPerspectivesPreferencePage.java
projectSwitchField.setPreferenceStore(getIDEPreferenceStore());
        projectSwitchField.setPreferencePage(this);
        projectSwitchField.load();
    }
    /**
     * Returns the IDE preference store.
     */
    protected IPreferenceStore getIDEPreferenceStore() {
        return IDEWorkbenchPlugin.getDefault().getPreferenceStore();
    }
    /*
     * (non-Javadoc)
     * 
     * @see org.eclipse.ui.internal.dialogs.PerspectivesPreferencePage#performDefaults()
     */
    protected void performDefaults() {
        projectSwitchField.loadDefault();
        super.performDefaults();
    }
    /*
     * (non-Javadoc)
     * 
     * @see org.eclipse.ui.internal.dialogs.PerspectivesPreferencePage#performOk()
     */
    public boolean performOk() {
        projectSwitchField.store();
        IDEWorkbenchPlugin.getDefault().savePluginPreferences();
        return super.performOk();
    }
}