private void createDebuggingSection(int nColumns, Composite parent) { final int defaultIndent = 0; String label = MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_section_debugging; Key twistieKey = OptionsConfigurationBlock.getLocalKey("JavaEditorCodeMiningPreferencePage_section_debugging"); //$NON-NLS-1$ PreferenceTreeNode<?> section = fFilteredPrefTree.addExpandableComposite(parent, label, nColumns, twistieKey, null, false); ExpandableComposite excomposite = getExpandableComposite(twistieKey); Composite inner = createInnerComposite(excomposite, nColumns, parent.getFont()); // - Show main run/debug fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showMainRun_label, PREF_SHOW_MAIN_RUN, TRUE_FALSE, defaultIndent, section); fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showMainDebug_label, PREF_SHOW_MAIN_DEBUG, TRUE_FALSE, defaultIndent, section); // - Show variable value while debugging fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showVariableValueWhileDebugging_label, PREF_SHOW_VARIABLE_VALUE_WHILE_DEBUGGING, TRUE_FALSE, defaultIndent, section); }
private void createJUnitSection(int nColumns, Composite parent) { final int defaultIndent = 0; String label = MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_section_junit; Key twistieKey = OptionsConfigurationBlock.getLocalKey("JavaEditorCodeMiningPreferencePage_section_junit"); //$NON-NLS-1$ PreferenceTreeNode<?> section = fFilteredPrefTree.addExpandableComposite(parent, label, nColumns, twistieKey, null, false); ExpandableComposite excomposite = getExpandableComposite(twistieKey); Composite inner = createInnerComposite(excomposite, nColumns, parent.getFont()); // - Show JUnit status fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showJUnitStatus_label, PREF_SHOW_JUNIT_STATUS, TRUE_FALSE, defaultIndent, section); // - Show JUnit run fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showJUnitRun_label, PREF_SHOW_JUNIT_RUN, TRUE_FALSE, defaultIndent, section); // - Show JUnit debug fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showJUnitDebug_label, PREF_SHOW_JUNIT_DEBUG, TRUE_FALSE, defaultIndent, section); }
int extraIndent = LayoutUtil.getIndent(); String label = MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_section_scsm; Key twistieKey = OptionsConfigurationBlock.getLocalKey("JavaEditorCodeMiningPreferencePage_section_sccm"); //$NON-NLS-1$ PreferenceTreeNode<?> section = fFilteredPrefTree.addExpandableComposite(parent, label, nColumns, twistieKey, null, false);
String label = MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_section_methodParameter; Key twistieKey = OptionsConfigurationBlock .getLocalKey("JavaEditorCodeMiningPreferencePage_section_methodParameter"); //$NON-NLS-1$ PreferenceTreeNode<?> section = fFilteredPrefTree.addExpandableComposite(parent, label, nColumns, twistieKey, null, false);
private void createGeneralSection(int nColumns, Composite parent) { int defaultIndent= 0; int extraIndent= LayoutUtil.getIndent(); String label= PreferencesMessages.JavaEditorCodeMiningConfigurationBlock_section_general; Key twistieKey= OptionsConfigurationBlock.getLocalKey("JavaEditorCodeMiningPreferencePage_section_general"); //$NON-NLS-1$ PreferenceTreeNode<?> section= fFilteredPrefTree.addExpandableComposite(parent, label, nColumns, twistieKey, null, false); ExpandableComposite excomposite= getExpandableComposite(twistieKey); Composite inner= createInnerComposite(excomposite, nColumns, parent.getFont()); // - Show references PreferenceTreeNode<Button> showReferences= fFilteredPrefTree.addCheckBox(inner, PreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showReferences_label, PREF_SHOW_REFERENCES, TRUE_FALSE, defaultIndent, section); // - Show references (On types) fFilteredPrefTree.addCheckBox(inner, PreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showReferences_onTypes_label, PREF_SHOW_REFERENCES_ON_TYPES, TRUE_FALSE, extraIndent, showReferences); // - Show references (On fields) fFilteredPrefTree.addCheckBox(inner, PreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showReferences_onFields_label, PREF_SHOW_REFERENCES_ON_FIELDS, TRUE_FALSE, extraIndent, showReferences); // - Show references (On methods) fFilteredPrefTree.addCheckBox(inner, PreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showReferences_onMethods_label, PREF_SHOW_REFERENCES_ON_METHODS, TRUE_FALSE, extraIndent, showReferences); // - Show implementations fFilteredPrefTree.addCheckBox(inner, PreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showImplementations_label, PREF_SHOW_IMPLEMENTATIONS, TRUE_FALSE, defaultIndent, section); }
int extraIndent = LayoutUtil.getIndent(); String label = MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_section_general; Key twistieKey = OptionsConfigurationBlock.getLocalKey("JavaEditorCodeMiningPreferencePage_section_general"); //$NON-NLS-1$ PreferenceTreeNode<?> section = fFilteredPrefTree.addExpandableComposite(parent, label, nColumns, twistieKey, null, false);
twistieKey= OptionsConfigurationBlock.getLocalKey("ProblemSeveritiesConfigurationBlock_section_code_style"); //$NON-NLS-1$ section= fFilteredPrefTree.addExpandableComposite(composite, label, nColumns, twistieKey, null, false); excomposite= getExpandableComposite(twistieKey); twistieKey= OptionsConfigurationBlock.getLocalKey("ProblemSeveritiesConfigurationBlock_section_potential_programming_problems"); //$NON-NLS-1$ section= fFilteredPrefTree.addExpandableComposite(composite, label, nColumns, twistieKey, null, false); excomposite= getExpandableComposite(twistieKey); twistieKey= OptionsConfigurationBlock.getLocalKey("ProblemSeveritiesConfigurationBlock_section_name_shadowing"); //$NON-NLS-1$ section= fFilteredPrefTree.addExpandableComposite(composite, label, nColumns, twistieKey, null, false); excomposite= getExpandableComposite(twistieKey); twistieKey= OptionsConfigurationBlock.getLocalKey("ProblemSeveritiesConfigurationBlock_section_deprecations"); //$NON-NLS-1$ section= fFilteredPrefTree.addExpandableComposite(composite, label, nColumns, twistieKey, null, false); excomposite= getExpandableComposite(twistieKey); twistieKey= OptionsConfigurationBlock.getLocalKey("ProblemSeveritiesConfigurationBlock_section_module"); //$NON-NLS-1$ section= fFilteredPrefTree.addExpandableComposite(composite, label, nColumns, twistieKey, null, false); excomposite= getExpandableComposite(twistieKey); twistieKey= OptionsConfigurationBlock.getLocalKey("ProblemSeveritiesConfigurationBlock_section_unnecessary_code"); //$NON-NLS-1$ section= fFilteredPrefTree.addExpandableComposite(composite, label, nColumns, twistieKey, null, false); excomposite= getExpandableComposite(twistieKey); twistieKey= OptionsConfigurationBlock.getLocalKey("ProblemSeveritiesConfigurationBlock_section_generics"); //$NON-NLS-1$ section= fFilteredPrefTree.addExpandableComposite(composite, label, nColumns, twistieKey, null, false); excomposite= getExpandableComposite(twistieKey); twistieKey= OptionsConfigurationBlock.getLocalKey("ProblemSeveritiesConfigurationBlock_section_annotations"); //$NON-NLS-1$
twistieKey= OptionsConfigurationBlock.getLocalKey("ProblemSeveritiesConfigurationBlock_section_code_style"); //$NON-NLS-1$ section= fFilteredPrefTree.addExpandableComposite(composite, label, nColumns, twistieKey, null, false); excomposite= getExpandableComposite(twistieKey); twistieKey= OptionsConfigurationBlock.getLocalKey("ProblemSeveritiesConfigurationBlock_section_potential_programming_problems"); //$NON-NLS-1$ section= fFilteredPrefTree.addExpandableComposite(composite, label, nColumns, twistieKey, null, false); excomposite= getExpandableComposite(twistieKey); twistieKey= OptionsConfigurationBlock.getLocalKey("ProblemSeveritiesConfigurationBlock_section_name_shadowing"); //$NON-NLS-1$ section= fFilteredPrefTree.addExpandableComposite(composite, label, nColumns, twistieKey, null, false); excomposite= getExpandableComposite(twistieKey); twistieKey= OptionsConfigurationBlock.getLocalKey("ProblemSeveritiesConfigurationBlock_section_deprecations"); //$NON-NLS-1$ section= fFilteredPrefTree.addExpandableComposite(composite, label, nColumns, twistieKey, null, false); excomposite= getExpandableComposite(twistieKey); twistieKey= OptionsConfigurationBlock.getLocalKey("ProblemSeveritiesConfigurationBlock_section_unnecessary_code"); //$NON-NLS-1$ section= fFilteredPrefTree.addExpandableComposite(composite, label, nColumns, twistieKey, null, false); excomposite= getExpandableComposite(twistieKey); twistieKey= OptionsConfigurationBlock.getLocalKey("ProblemSeveritiesConfigurationBlock_section_generics"); //$NON-NLS-1$ section= fFilteredPrefTree.addExpandableComposite(composite, label, nColumns, twistieKey, null, false); excomposite= getExpandableComposite(twistieKey); twistieKey= OptionsConfigurationBlock.getLocalKey("ProblemSeveritiesConfigurationBlock_section_annotations"); //$NON-NLS-1$ section= fFilteredPrefTree.addExpandableComposite(composite, label, nColumns, twistieKey, null, false); excomposite= getExpandableComposite(twistieKey); twistieKey= OptionsConfigurationBlock.getLocalKey("ProblemSeveritiesConfigurationBlock_section_null_analysis"); //$NON-NLS-1$