Example #1
0
 public void addProblem(
     genericity.language.gbind.IGbindProblem problem, org.eclipse.emf.ecore.EObject element) {
   ElementBasedTextDiagnostic diagnostic =
       new ElementBasedTextDiagnostic(locationMap, getURI(), problem, element);
   getDiagnostics(problem.getSeverity()).add(diagnostic);
   mark(diagnostic);
   addQuickFixesToQuickFixMap(problem);
 }
Example #2
0
 protected void addQuickFixesToQuickFixMap(genericity.language.gbind.IGbindProblem problem) {
   java.util.Collection<genericity.language.gbind.IGbindQuickFix> quickFixes =
       problem.getQuickFixes();
   if (quickFixes != null) {
     for (genericity.language.gbind.IGbindQuickFix quickFix : quickFixes) {
       if (quickFix != null) {
         quickFixMap.put(quickFix.getContextAsString(), quickFix);
       }
     }
   }
 }
Example #3
0
 public void addProblem(
     genericity.language.gbind.IGbindProblem problem,
     int column,
     int line,
     int charStart,
     int charEnd) {
   PositionBasedTextDiagnostic diagnostic =
       new PositionBasedTextDiagnostic(getURI(), problem, column, line, charStart, charEnd);
   getDiagnostics(problem.getSeverity()).add(diagnostic);
   mark(diagnostic);
   addQuickFixesToQuickFixMap(problem);
 }
Example #4
0
 public String getMessage() {
   return problem.getMessage();
 }