| author | Stephan Herrmann | 2013-01-25 05:26:34 (EST) |
|---|---|---|
| committer | Dani Megert | 2013-01-25 05:26:34 (EST) |
| commit | 7bf809d912b4e04995fa69e7a9251cab067da6d1 (patch) (side-by-side diff) | |
| tree | 41b0c3e42c276a5eb16e6b93b9e8e6bd2dd6e6f6 | |
| parent | 484aa92520300509498c00a85d3b0f19f59a0a25 (diff) | |
| download | eclipse.jdt.ui-7bf809d912b4e04995fa69e7a9251cab067da6d1.zip eclipse.jdt.ui-7bf809d912b4e04995fa69e7a9251cab067da6d1.tar.gz eclipse.jdt.ui-7bf809d912b4e04995fa69e7a9251cab067da6d1.tar.bz2 | |
Fixed bug 398965: [preferences] UI option for syntactic analysis for
fields
3 files changed, 10 insertions, 0 deletions
diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/PreferencesMessages.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/PreferencesMessages.java index 8f6b1d1..4b64667 100644 --- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/PreferencesMessages.java +++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/PreferencesMessages.java @@ -791,6 +791,7 @@ public final class PreferencesMessages extends NLS { public static String ComplianceConfigurationBlock_src_greater_compliance; public static String ComplianceConfigurationBlock_classfile_greater_compliance; public static String ComplianceConfigurationBlock_classfile_greater_source; + public static String ProblemSeveritiesConfigurationBlock_enable_syntactic_null_analysis_for_fields; public static String ProblemSeveritiesConfigurationBlock_inherit_null_annotations; public static String ProblemSeveritiesConfigurationBlock_pb_parameter_assignment; public static String ProblemSeveritiesConfigurationBlock_pb_null_reference; diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/PreferencesMessages.properties b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/PreferencesMessages.properties index 0d0fbe7..f80d310 100644 --- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/PreferencesMessages.properties +++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/PreferencesMessages.properties @@ -408,7 +408,9 @@ NullAnnotationsConfigurationDialog_null_annotations_description=Enter custom ann NullAnnotationsConfigurationDialog_nullable_annotation_error='Nullable' annotation must be a fully-qualified type name NullAnnotationsConfigurationDialog_nullable_annotation_label='&Nullable' annotation: +ProblemSeveritiesConfigurationBlock_enable_syntactic_null_analysis_for_fields=Enable syntactic null analysis for fields ProblemSeveritiesConfigurationBlock_inherit_null_annotations=Inherit null annotations + ProblemSeveritiesConfigurationBlock_common_description=&Select the severity level for the following optional problems: ProblemSeveritiesConfigurationBlock_pb_unavoidable_generic_type_problems=Ignore unavoidable generic type problems ProblemSeveritiesConfigurationBlock_pb_unsafe_type_op_label=Unchecked generic type operation: diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/ProblemSeveritiesConfigurationBlock.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/ProblemSeveritiesConfigurationBlock.java index e7ba2dd..0654550 100644 --- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/ProblemSeveritiesConfigurationBlock.java +++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/ProblemSeveritiesConfigurationBlock.java @@ -274,6 +274,8 @@ public class ProblemSeveritiesConfigurationBlock extends OptionsConfigurationBlo private static final Key PREF_ANNOTATION_NULL_ANALYSIS= getJDTCoreKey(JavaCore.COMPILER_ANNOTATION_NULL_ANALYSIS); + private static final Key PREF_PB_SYNTACTIC_NULL_ANLYSIS_FOR_FIELDS= getJDTCoreKey(JavaCore.COMPILER_PB_SYNTACTIC_NULL_ANALYSIS_FOR_FIELDS); + private static final Key PREF_INHERIT_NULL_ANNOTATIONS= getJDTCoreKey(JavaCore.COMPILER_INHERIT_NULL_ANNOTATIONS); /** @@ -388,6 +390,7 @@ public class ProblemSeveritiesConfigurationBlock extends OptionsConfigurationBlo PREF_PB_REDUNDANT_NULL_ANNOTATION, PREF_PB_NONNULL_PARAMETER_ANNOTATION_DROPPED, PREF_PB_REDUNDANT_NULL_CHECK, PREF_PB_INCLUDE_ASSERTS_IN_NULL_ANALYSIS, + PREF_PB_SYNTACTIC_NULL_ANLYSIS_FOR_FIELDS, PREF_INHERIT_NULL_ANNOTATIONS, PREF_PB_UNCLOSED_CLOSEABLE, PREF_PB_POTENTIALLY_UNCLOSED_CLOSEABLE, PREF_PB_EXPLICITLY_CLOSED_AUTOCLOSEABLE, PREF_PB_FALLTHROUGH_CASE, PREF_PB_REDUNDANT_SUPERINTERFACE, PREF_PB_UNUSED_WARNING_TOKEN, @@ -816,6 +819,9 @@ public class ProblemSeveritiesConfigurationBlock extends OptionsConfigurationBlo label= PreferencesMessages.ProblemSeveritiesConfigurationBlock_inherit_null_annotations; fFilteredPrefTree.addCheckBox(inner, label, PREF_INHERIT_NULL_ANNOTATIONS, enabledDisabled, extraIndent, node); + label= PreferencesMessages.ProblemSeveritiesConfigurationBlock_enable_syntactic_null_analysis_for_fields; + fFilteredPrefTree.addCheckBox(inner, label, PREF_PB_SYNTACTIC_NULL_ANLYSIS_FOR_FIELDS, enabledDisabled, extraIndent, node); + // --- global // add some vertical space before: @@ -1001,6 +1007,7 @@ public class ProblemSeveritiesConfigurationBlock extends OptionsConfigurationBlo setComboEnabled(PREF_PB_NONNULL_PARAMETER_ANNOTATION_DROPPED, enableAnnotationNullAnalysis); setComboEnabled(PREF_MISSING_NONNULL_BY_DEFAULT_ANNOTATION, enableAnnotationNullAnalysis); getCheckBox(PREF_INHERIT_NULL_ANNOTATIONS).setEnabled(enableAnnotationNullAnalysis); + getCheckBox(PREF_PB_SYNTACTIC_NULL_ANLYSIS_FOR_FIELDS).setEnabled(enableAnnotationNullAnalysis); } private IStatus validateNullnessAnnotation(String value, String errorMessage) { |

