Source:
protected void createPluginClassGroup(Composite container) { Group classGroup = SWTFactory.createGroup(container, PDEUIMessages.ContentPage_pClassGroup, 2, 1, GridData.FILL_HORIZONTAL); IDialogSettings settings = getDialogSettings(); String generateActivatorSrting = settings == null ? null : settings.get(S_GENERATE_ACTIVATOR); Boolean generateActivator = generateActivatorSrting == null ? null : Boolean.valueOf(generateActivatorSrting); fGenerateActivator = SWTFactory.createCheckButton(classGroup, PDEUIMessages.ContentPage_generate, null, (generateActivator != null) ? !generateActivator.booleanValue() : false, 2); fGenerateActivator.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { fClassLabel.setEnabled(fGenerateActivator.getSelection()); fClassText.setEnabled(fGenerateActivator.getSelection()); updateData(); validatePage(); } }); fClassLabel = new Label(classGroup, SWT.NONE); fClassLabel.setText(PDEUIMessages.ContentPage_classname); GridData gd = new GridData(); gd.horizontalIndent = 20; fClassLabel.setLayoutData(gd); fClassText = createText(classGroup, classListener); fUIPlugin = SWTFactory.createCheckButton(classGroup, PDEUIMessages.ContentPage_uicontribution, null, (settings != null) ? !settings.getBoolean(S_UI_PLUGIN) : true, 2); fUIPlugin.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { updateData(); validatePage(); } }); fApiAnalysisButton = SWTFactory.createCheckButton(classGroup, PDEUIMessages.PluginContentPage_enable_api_analysis, null, false, 2); fApiAnalysisButton.setSelection((settings != null) ? settings.getBoolean(S_API_ANALYSIS) : false); fApiAnalysisButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { updateData(); validatePage(); } }); }

Target:
protected void createPluginClassGroup(Composite container) { Group classGroup = SWTFactory.createGroup(container, PDEUIMessages.ContentPage_pClassGroup, 2, 1, GridData.FILL_HORIZONTAL); IDialogSettings settings = getDialogSettings(); String generateActivatorString = settings == null ? null : settings.get(S_GENERATE_ACTIVATOR); Boolean generateActivator = generateActivatorString == null ? null : Boolean.valueOf(generateActivatorString); fGenerateActivator = SWTFactory.createCheckButton(classGroup, PDEUIMessages.ContentPage_generate, null, generateActivator != null && !generateActivator.booleanValue(), 2); fGenerateActivator.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { fClassLabel.setEnabled(fGenerateActivator.getSelection()); fClassText.setEnabled(fGenerateActivator.getSelection()); updateData(); validatePage(); } }); fClassLabel = new Label(classGroup, SWT.NONE); fClassLabel.setText(PDEUIMessages.ContentPage_classname); GridData gd = new GridData(); gd.horizontalIndent = 20; fClassLabel.setLayoutData(gd); fClassText = createText(classGroup, classListener); fUIPlugin = SWTFactory.createCheckButton(classGroup, PDEUIMessages.ContentPage_uicontribution, null, (settings != null) ? !settings.getBoolean(S_UI_PLUGIN) : true, 2); fUIPlugin.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { updateData(); validatePage(); } }); fApiAnalysisButton = SWTFactory.createCheckButton(classGroup, PDEUIMessages.PluginContentPage_enable_api_analysis, null, false, 2); fApiAnalysisButton.setSelection((settings != null) ? settings.getBoolean(S_API_ANALYSIS) : false); fApiAnalysisButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { updateData(); validatePage(); } }); }