Source:
<code>protected void createPluginClassGroup(Composite container) { Group classGroup = SWTFactory.createGroup(container, PDEUIMessages.ContentPage_pClassGroup, 2, 1, GridData.FILL_HORIZONTAL); IDialogSettings settings = getDialogSettings(); <START> String skipActivatorString = settings == null ? null : settings.get(S_SKIP_GENERATION_OF_ACTIVATOR); <END> Boolean skipActivator = skipActivatorString == null ? null : Boolean.valueOf(skipActivatorString); fGenerateActivator = SWTFactory.createCheckButton(classGroup, PDEUIMessages.ContentPage_generate, null, skipActivator != null && !skipActivator.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(); } }); }</code><technical_language>I get boolean settings.getBoolean, this avoid creating temp string</technical_language>

Target:
protected void createPluginClassGroup(Composite container) { Group classGroup = SWTFactory.createGroup(container, PDEUIMessages.ContentPage_pClassGroup, 2, 1, GridData.FILL_HORIZONTAL); IDialogSettings settings = getDialogSettings(); boolean skipActivator = settings == null ? null : settings.getBoolean(S_SKIP_GENERATION_OF_ACTIVATOR); fGenerateActivator = SWTFactory.createCheckButton(classGroup, PDEUIMessages.ContentPage_generate, null, !skipActivator, 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(); } }); }