Package org.eclipse.xtext.validation
Interface IDiagnosticConverter
-
- All Known Implementing Classes:
DiagnosticConverterImpl
,XtextDiagnosticConverter
public interface IDiagnosticConverter
Implement a diagnostic converter if you want to customize the region that is computed for resource diagnostics or validation diagnostics. The acceptor allows more than one issue per diagnostic to be created.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
convertResourceDiagnostic
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.
-
convertValidatorDiagnostic
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.
-
-