Ignore:
Timestamp:
04/27/14 16:04:29 (11 years ago)
Author:
hkaulbersch
Message:

Added first quickfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src/de/ugoe/cs/swe/bnftools/validation/EbnfValidator.xtend

    r61 r63  
    2626class EbnfValidator extends AbstractEbnfValidator { 
    2727 
    28         static final String ruleReferencedOneDescription = "The rule is only referenced by one other rule"; 
    29         static final String passthroughRuleDescription = "The rule is a passthrough rule"; 
    30         static final String unreferencedPassthroughRuleDescription = "The rule is an unreferenced passthrough rule"; 
    31         static final String unusedRuleDescription = "The rule is not referenced anywhere"; 
    32         static final String equalAlternativeDescription = "The rule contains equal alternatives"; 
    33         static final String duplicateRulesDescription = "The rule is a duplicate"; 
    34         //      static final String duplicateSubRulesDescription = "A part the of rule is a duplicate"; 
    35         static final String nonUniqueNameDescription = "The rule has the same Name as the Rule in Line "; 
     28        public static final String ruleReferencedOneDescription = "The rule is only referenced by one other rule"; 
     29        public static final String passthroughRuleDescription = "The rule is a passthrough rule"; 
     30        public static final String unreferencedPassthroughRuleDescription = "The rule is an unreferenced passthrough rule"; 
     31        public static final String unusedRuleDescription = "The rule is not referenced anywhere"; 
     32        public static final String equalAlternativeDescription = "The rule contains equal alternatives"; 
     33        public static final String duplicateRulesDescription = "The rule is a duplicate"; 
     34        //public static final String duplicateSubRulesDescription = "A part the of rule is a duplicate"; 
     35        public static final String nonUniqueNameDescription = "The rule has the same Name as the Rule in Line "; 
    3636 
    3737        // ---------------------------------------------------------------------------------------------------- 
     
    4949 
    5050                if (references.size() == 1 && rule.rulenumber != 1) { 
    51                         warning(ruleReferencedOneDescription, EbnfPackage$Literals::RULE__NAME); 
     51                        warning(ruleReferencedOneDescription, EbnfPackage$Literals::RULE__NAME,ruleReferencedOneDescription,rule.name); 
    5252                } 
    5353        } 
     
    122122 
    123123                if ((references.size() == 0) && (rule.getRulenumber() != 1)) 
    124                         warning(unusedRuleDescription, EbnfPackage$Literals::RULE__NAME); 
     124                        warning(unusedRuleDescription, EbnfPackage$Literals::RULE__NAME,unusedRuleDescription,rule.name); 
    125125        } 
    126126 
Note: See TracChangeset for help on using the changeset viewer.