private void updateNullAnnotationsSetting() { String[] annotationNames= { getValue(PREF_NULLABLE_ANNOTATION_NAME), getValue(PREF_NONNULL_ANNOTATION_NAME), getValue(PREF_NONNULL_BY_DEFAULT_ANNOTATION_NAME) }; String defaultNullAnnotationsValue= Arrays.equals(annotationNames, NULL_ANNOTATIONS_DEFAULTS) ? ENABLED : DISABLED; setValue(INTR_DEFAULT_NULL_ANNOTATIONS, defaultNullAnnotationsValue); updateCheckBox(getCheckBox(INTR_DEFAULT_NULL_ANNOTATIONS)); }
private void updateNullAnnotationsSetting() { String[] annotationNames= { getValue(PREF_NULLABLE_ANNOTATION_NAME), getValue(PREF_NONNULL_ANNOTATION_NAME), getValue(PREF_NONNULL_BY_DEFAULT_ANNOTATION_NAME) }; String defaultNullAnnotationsValue= Arrays.equals(annotationNames, NULL_ANNOTATIONS_DEFAULTS) ? ENABLED : DISABLED; setValue(INTR_DEFAULT_NULL_ANNOTATIONS, defaultNullAnnotationsValue); updateCheckBox(getCheckBox(INTR_DEFAULT_NULL_ANNOTATIONS)); }
public ProblemSeveritiesConfigurationBlock(IStatusChangeListener context, IProject project, IWorkbenchPreferenceContainer container) { super(context, project, getKeys(), container); // compatibilty code for the merge of the two option PB_SIGNAL_PARAMETER: if (ENABLED.equals(getValue(PREF_PB_SIGNAL_PARAMETER_IN_ABSTRACT))) { setValue(PREF_PB_SIGNAL_PARAMETER_IN_OVERRIDING, ENABLED); } }
public ProblemSeveritiesConfigurationBlock(IStatusChangeListener context, IProject project, IWorkbenchPreferenceContainer container) { super(context, project, getKeys(), container); // Compatibility code for the merge of the two option PB_SIGNAL_PARAMETER: if (ENABLED.equals(getValue(PREF_PB_SIGNAL_PARAMETER_IN_ABSTRACT))) { setValue(PREF_PB_SIGNAL_PARAMETER_IN_OVERRIDING, ENABLED); } }
public ProblemSeveritiesConfigurationBlock(IStatusChangeListener context, IProject project, IWorkbenchPreferenceContainer container) { super(context, project, getKeys(), container); // Compatibility code for the merge of the two option PB_SIGNAL_PARAMETER: if (ENABLED.equals(getValue(PREF_PB_SIGNAL_PARAMETER_IN_ABSTRACT))) { setValue(PREF_PB_SIGNAL_PARAMETER_IN_OVERRIDING, ENABLED); } }
private AnnotationDialogField createAnnotationDialogField(Key key, String errorMessage) { AnnotationDialogField field= new AnnotationDialogField(errorMessage); field.setLabelText(PreferencesMessages.NullAnnotationsConfigurationDialog_primary_label); field.setText(getValue(key)); return field; }
private AnnotationDialogField createAnnotationDialogField(Key key, String errorMessage) { AnnotationDialogField field= new AnnotationDialogField(errorMessage); field.setLabelText(PreferencesMessages.NullAnnotationsConfigurationDialog_primary_label); field.setText(getValue(key)); return field; }
|| PREF_PB_NULL_SPECIFICATION_VIOLATION.equals(changedKey) || PREF_PB_POTENTIAL_NULL_ANNOTATION_INFERENCE_CONFLICT.equals(changedKey))) { boolean badNullRef= lessSevere(getValue(PREF_PB_NULL_REFERENCE), getValue(PREF_PB_NULL_SPECIFICATION_VIOLATION)); boolean badPotNullRef= lessSevere(getValue(PREF_PB_POTENTIAL_NULL_REFERENCE), getValue(PREF_PB_POTENTIAL_NULL_ANNOTATION_INFERENCE_CONFLICT)); boolean ask= false; ask |= badNullRef && (PREF_PB_NULL_REFERENCE.equals(changedKey) || PREF_PB_NULL_SPECIFICATION_VIOLATION.equals(changedKey)); if (messageDialog.open() == 0) { if (badNullRef) { setValue(PREF_PB_NULL_REFERENCE, getValue(PREF_PB_NULL_SPECIFICATION_VIOLATION)); updateCombo(getComboBox(PREF_PB_NULL_REFERENCE)); setValue(PREF_PB_POTENTIAL_NULL_REFERENCE, getValue(PREF_PB_POTENTIAL_NULL_ANNOTATION_INFERENCE_CONFLICT)); updateCombo(getComboBox(PREF_PB_POTENTIAL_NULL_REFERENCE));
|| PREF_PB_NULL_SPECIFICATION_VIOLATION.equals(changedKey) || PREF_PB_POTENTIAL_NULL_ANNOTATION_INFERENCE_CONFLICT.equals(changedKey))) { boolean badNullRef= lessSevere(getValue(PREF_PB_NULL_REFERENCE), getValue(PREF_PB_NULL_SPECIFICATION_VIOLATION)); boolean badPotNullRef= lessSevere(getValue(PREF_PB_POTENTIAL_NULL_REFERENCE), getValue(PREF_PB_POTENTIAL_NULL_ANNOTATION_INFERENCE_CONFLICT)); boolean ask= false; ask |= badNullRef && (PREF_PB_NULL_REFERENCE.equals(changedKey) || PREF_PB_NULL_SPECIFICATION_VIOLATION.equals(changedKey)); if (messageDialog.open() == 0) { if (badNullRef) { setValue(PREF_PB_NULL_REFERENCE, getValue(PREF_PB_NULL_SPECIFICATION_VIOLATION)); updateCombo(getComboBox(PREF_PB_NULL_REFERENCE)); setValue(PREF_PB_POTENTIAL_NULL_REFERENCE, getValue(PREF_PB_POTENTIAL_NULL_ANNOTATION_INFERENCE_CONFLICT)); updateCombo(getComboBox(PREF_PB_POTENTIAL_NULL_REFERENCE));
private AnnotationListDialogField createAnnotationListDialogField(Key key, String errorMessage) { String[] buttons= new String[] { PreferencesMessages.NullAnnotationsConfigurationDialog_add_button }; AnnotationListLabelProvider annotationLabelProvider= new AnnotationListLabelProvider(); AnnotationListDialogField field= new AnnotationListDialogField(new AnnotationListAdapter(), buttons, annotationLabelProvider, errorMessage); field.setLabelText(PreferencesMessages.NullAnnotationsConfigurationDialog_secondary_label); field.setTableColumns(new ListDialogField.ColumnsDescription(1, false)); field.addElementsFromCommaSeparatedList(getValue(key)); annotationLabelProvider.setDialogField(field); return field; }
private AnnotationListDialogField createAnnotationListDialogField(Key key, String errorMessage) { String[] buttons= new String[] { PreferencesMessages.NullAnnotationsConfigurationDialog_add_button }; AnnotationListLabelProvider annotationLabelProvider= new AnnotationListLabelProvider(); AnnotationListDialogField field= new AnnotationListDialogField(new AnnotationListAdapter(), buttons, annotationLabelProvider, errorMessage); field.setLabelText(PreferencesMessages.NullAnnotationsConfigurationDialog_secondary_label); field.setTableColumns(new ListDialogField.ColumnsDescription(1, false)); field.addElementsFromCommaSeparatedList(getValue(key)); annotationLabelProvider.setDialogField(field); return field; }