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
* Creates the page's UI content.
     */
    protected Control createContents(Composite parent) {
        
        
        WorkbenchHelp.setHelp(parent,
                org.eclipse.ui.internal.IWorkbenchHelpContextIds.PERSPECTIVES_PREFERENCE_PAGE);
        Composite composite = createComposite(parent);
        createOpenPerspButtonGroup(composite);
        createOpenViewButtonGroup(composite);
        createProjectPerspectiveGroup(composite);
        createCustomizePerspective(composite);
        return composite;
    }
    /**
     * Creates a composite that contains buttons for selecting the preference
     * opening new project selections.
     */
    private void createProjectPerspectiveGroup(Composite composite) {
        Composite projectComposite = new Composite(composite, SWT.NONE);
        projectComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
        projectComposite.setFont(composite.getFont());
        String[][] namesAndValues = {
                { PSPM_ALWAYS_TEXT, IDEInternalPreferences.PSPM_ALWAYS },
                { PSPM_NEVER_TEXT, IDEInternalPreferences.PSPM_NEVER },
                { PSPM_PROMPT_TEXT, IDEInternalPreferences.PSPM_PROMPT } };
        projectSwitchField = new RadioGroupFieldEditor(
                IDEInternalPreferences.PROJECT_SWITCH_PERSP_MODE,
                PROJECT_SWITCH_PERSP_MODE_TITLE, namesAndValues.length,
                namesAndValues, projectComposite, true);