fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showMethodParameterNames_label, PREF_SHOW_METHOD_PARAMETER_NAMES, TRUE_FALSE, defaultIndent, section); fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showMethodParameterTypes_label, PREF_SHOW_METHOD_PARAMETER_TYPES, TRUE_FALSE, defaultIndent, section); fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showMethodParameterOnlyForLiteral_label, PREF_SHOW_METHOD_PARAMETER_ONLY_FOR_LITERAL, TRUE_FALSE, defaultIndent, section); fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showMethodParameterByUsingFilters_label, PREF_SHOW_METHOD_PARAMETER_BY_USING_FILTERS, TRUE_FALSE, defaultIndent, section);
fFilteredPrefTree.addCheckBox(inner, label, PREF_15_PB_UNLIKELY_COLLECTION_METHOD_ARGUMENT_TYPE_STRICT, enabledDisabled, extraIndent, node); fFilteredPrefTree.addCheckBox(inner, label, PREF_15_PB_MISSING_ENUM_CASE_DESPITE_DEFAULT, enabledDisabled, extraIndent, node); fFilteredPrefTree.addCheckBox(inner, label, PREF_PB_SPECIAL_PARAMETER_HIDING_FIELD, enabledDisabled, extraIndent, node); fFilteredPrefTree.addCheckBox(inner, label, PREF_PB_DEPRECATION_IN_DEPRECATED_CODE, enabledDisabled, extraIndent, node); fFilteredPrefTree.addCheckBox(inner, label, PREF_PB_DEPRECATION_WHEN_OVERRIDING, enabledDisabled, extraIndent, node); fFilteredPrefTree.addCheckBox(inner, label, PREF_PB_SIGNAL_PARAMETER_IN_OVERRIDING, disabledEnabled, extraIndent, node); fFilteredPrefTree.addCheckBox(inner, label, PREF_PB_UNUSED_PARAMETER_INCLUDE_DOC_COMMENT_REFERENCE, enabledDisabled, defaultIndent, node); fFilteredPrefTree.addCheckBox(inner, label, PREF_PB_UNUSED_DECLARED_THROWN_EXCEPTION_WHEN_OVERRIDING, disabledEnabled, extraIndent, node); fFilteredPrefTree.addCheckBox(inner, label, PREF_PB_UNUSED_DECLARED_THROWN_EXCEPTION_INCLUDE_DOC_COMMENT_REFERENCE, enabledDisabled, extraIndent, node); fFilteredPrefTree.addCheckBox(inner, label, PREF_PB_UNUSED_DECLARED_THROWN_EXCEPTION_EXEMPT_EXCEPTION_AND_THROWABLE, enabledDisabled, extraIndent, node); fFilteredPrefTree.addCheckBox(inner, label, PREF_15_PB_UNAVOIDABLE_GENERIC_TYPE_PROBLEMS, disabledEnabled, defaultIndent, section); fFilteredPrefTree.addCheckBox(inner, label, PREF_16_PB_MISSING_OVERRIDE_ANNOTATION_FOR_INTERFACE_METHOD_IMPLEMENTATION, enabledDisabled, extraIndent, node); node= fFilteredPrefTree.addCheckBox(inner, label, PREF_PB_SUPPRESS_WARNINGS, enabledDisabled, defaultIndent, section); fFilteredPrefTree.addCheckBox(inner, label, PREF_PB_SUPPRESS_OPTIONAL_ERRORS, enabledDisabled, extraIndent, node); fFilteredPrefTree.addCheckBox(inner, label, PREF_PB_INCLUDE_ASSERTS_IN_NULL_ANALYSIS, enabledDisabled, defaultIndent, section);
fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showReferences_label, PREF_SHOW_REFERENCES, TRUE_FALSE, defaultIndent, section); fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showReferencesClass_label, PREF_SHOW_CLASS_REFERENCES, TRUE_FALSE, extraIndent, section); fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showReferencesMethod_label, PREF_SHOW_METHOD_REFERENCES, TRUE_FALSE, extraIndent, section); fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showReferences_atLeastOne_label, PREF_SHOW_REFERENCES_AT_LEAST_ONE, TRUE_FALSE, extraIndent, section); fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showImplementations_label, PREF_SHOW_IMPLEMENTATIONS, TRUE_FALSE, defaultIndent, section); fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showImplementations_atLeastOne_label, PREF_SHOW_IMPLEMENTATIONS_AT_LEAST_ONE, TRUE_FALSE, extraIndent, section); fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showEndStatement_label, PREF_SHOW_END_STATEMENT, TRUE_FALSE, defaultIndent, section); fFilteredPrefTree.addCheckBox(inner,
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); }
fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showRevisionRecentChange, PREF_SHOW_REVISION_RECENT_CHANGE, TRUE_FALSE, defaultIndent, section); fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showRevisionRecentChangeWithAvatar, PREF_SHOW_REVISION_RECENT_CHANGE_WITH_AVATAR, TRUE_FALSE, extraIndent, section); fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showRevisionRecentChangeWithDate, PREF_SHOW_REVISION_RECENT_CHANGE_WITH_DATE, TRUE_FALSE, extraIndent, section); fFilteredPrefTree.addCheckBox(inner, MyPreferencesMessages.JavaEditorCodeMiningConfigurationBlock_showRevisionAuthors, PREF_SHOW_REVISION_AUTHORS, 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); }
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); }