Пример #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);
 }
Пример #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);
       }
     }
   }
 }
Пример #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);
 }
Пример #4
0
 public String getMessage() {
   return problem.getMessage();
 }