public class DiagnosticConverterImpl extends java.lang.Object implements IDiagnosticConverter
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DiagnosticConverterImpl.IssueLocation |
| Constructor and Description |
|---|
DiagnosticConverterImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
convertResourceDiagnostic(org.eclipse.emf.ecore.resource.Resource.Diagnostic diagnostic,
Severity severity,
org.eclipse.xtext.util.IAcceptor<Issue> acceptor)
Convert a resource diagnostic to zero, one or more markers.
|
void |
convertValidatorDiagnostic(org.eclipse.emf.common.util.Diagnostic diagnostic,
org.eclipse.xtext.util.IAcceptor<Issue> acceptor)
Convert a validation diagnostic to zero, one or more markers.
|
protected org.eclipse.emf.ecore.EObject |
getCauser(org.eclipse.emf.common.util.Diagnostic diagnostic) |
protected java.lang.String |
getIssueCode(org.eclipse.emf.common.util.Diagnostic diagnostic) |
protected java.lang.String[] |
getIssueData(org.eclipse.emf.common.util.Diagnostic diagnostic) |
protected CheckType |
getIssueType(org.eclipse.emf.common.util.Diagnostic diagnostic) |
protected DiagnosticConverterImpl.IssueLocation |
getLocationData(org.eclipse.emf.common.util.Diagnostic diagnostic) |
protected DiagnosticConverterImpl.IssueLocation |
getLocationData(org.eclipse.emf.ecore.EObject obj,
org.eclipse.emf.ecore.EStructuralFeature structuralFeature) |
protected DiagnosticConverterImpl.IssueLocation |
getLocationData(org.eclipse.emf.ecore.EObject obj,
org.eclipse.emf.ecore.EStructuralFeature structuralFeature,
int index) |
protected DiagnosticConverterImpl.IssueLocation |
getLocationForNode(INode node)
Computes
DiagnosticConverterImpl.IssueLocation for the given node. |
protected DiagnosticConverterImpl.IssueLocation |
getLocationForNode(INode node,
int offset,
int length)
Computes
DiagnosticConverterImpl.IssueLocation for the given offset and length in the given node. |
protected Severity |
getSeverity(org.eclipse.emf.common.util.Diagnostic diagnostic) |
protected org.eclipse.emf.ecore.EStructuralFeature |
resolveStructuralFeature(org.eclipse.emf.ecore.EObject ele,
java.lang.Object feature) |
public void convertResourceDiagnostic(org.eclipse.emf.ecore.resource.Resource.Diagnostic diagnostic,
Severity severity,
org.eclipse.xtext.util.IAcceptor<Issue> acceptor)
IDiagnosticConverterconvertResourceDiagnostic in interface IDiagnosticConverterpublic void convertValidatorDiagnostic(org.eclipse.emf.common.util.Diagnostic diagnostic,
org.eclipse.xtext.util.IAcceptor<Issue> acceptor)
IDiagnosticConverterconvertValidatorDiagnostic in interface IDiagnosticConverterprotected CheckType getIssueType(org.eclipse.emf.common.util.Diagnostic diagnostic)
protected java.lang.String[] getIssueData(org.eclipse.emf.common.util.Diagnostic diagnostic)
protected java.lang.String getIssueCode(org.eclipse.emf.common.util.Diagnostic diagnostic)
protected Severity getSeverity(org.eclipse.emf.common.util.Diagnostic diagnostic)
protected org.eclipse.emf.ecore.EObject getCauser(org.eclipse.emf.common.util.Diagnostic diagnostic)
protected DiagnosticConverterImpl.IssueLocation getLocationData(org.eclipse.emf.common.util.Diagnostic diagnostic)
protected DiagnosticConverterImpl.IssueLocation getLocationData(org.eclipse.emf.ecore.EObject obj, org.eclipse.emf.ecore.EStructuralFeature structuralFeature)
protected DiagnosticConverterImpl.IssueLocation getLocationData(org.eclipse.emf.ecore.EObject obj, org.eclipse.emf.ecore.EStructuralFeature structuralFeature, int index)
protected DiagnosticConverterImpl.IssueLocation getLocationForNode(INode node)
DiagnosticConverterImpl.IssueLocation for the given node.protected DiagnosticConverterImpl.IssueLocation getLocationForNode(INode node, int offset, int length)
DiagnosticConverterImpl.IssueLocation for the given offset and length in the given node.protected org.eclipse.emf.ecore.EStructuralFeature resolveStructuralFeature(org.eclipse.emf.ecore.EObject ele,
java.lang.Object feature)