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

Added first quickfixes

File:
1 edited

Legend:

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

    r61 r63  
    2626@SuppressWarnings("all") 
    2727public class EbnfValidator extends AbstractEbnfValidator { 
    28   private final static String ruleReferencedOneDescription = "The rule is only referenced by one other rule"; 
    29    
    30   private final static String passthroughRuleDescription = "The rule is a passthrough rule"; 
    31    
    32   private final static String unreferencedPassthroughRuleDescription = "The rule is an unreferenced passthrough rule"; 
    33    
    34   private final static String unusedRuleDescription = "The rule is not referenced anywhere"; 
    35    
    36   private final static String equalAlternativeDescription = "The rule contains equal alternatives"; 
    37    
    38   private final static String duplicateRulesDescription = "The rule is a duplicate"; 
    39    
    40   private final static String nonUniqueNameDescription = "The rule has the same Name as the Rule in Line "; 
     28  public final static String ruleReferencedOneDescription = "The rule is only referenced by one other rule"; 
     29   
     30  public final static String passthroughRuleDescription = "The rule is a passthrough rule"; 
     31   
     32  public final static String unreferencedPassthroughRuleDescription = "The rule is an unreferenced passthrough rule"; 
     33   
     34  public final static String unusedRuleDescription = "The rule is not referenced anywhere"; 
     35   
     36  public final static String equalAlternativeDescription = "The rule contains equal alternatives"; 
     37   
     38  public final static String duplicateRulesDescription = "The rule is a duplicate"; 
     39   
     40  public final static String nonUniqueNameDescription = "The rule has the same Name as the Rule in Line "; 
    4141   
    4242  /** 
     
    6363    } 
    6464    if (_and) { 
    65       this.warning(EbnfValidator.ruleReferencedOneDescription, EbnfPackage.Literals.RULE__NAME); 
     65      String _name = rule.getName(); 
     66      this.warning(EbnfValidator.ruleReferencedOneDescription, EbnfPackage.Literals.RULE__NAME, EbnfValidator.ruleReferencedOneDescription, _name); 
    6667    } 
    6768  } 
     
    158159    } 
    159160    if (_and) { 
    160       this.warning(EbnfValidator.unusedRuleDescription, EbnfPackage.Literals.RULE__NAME); 
     161      String _name = rule.getName(); 
     162      this.warning(EbnfValidator.unusedRuleDescription, EbnfPackage.Literals.RULE__NAME, EbnfValidator.unusedRuleDescription, _name); 
    161163    } 
    162164  } 
Note: See TracChangeset for help on using the changeset viewer.