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); }
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); } } } }
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); }
public String getMessage() { return problem.getMessage(); }