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.

Author:
Sebastian Zarnekow - Initial contribution and API

Method Summary
 void convertResourceDiagnostic(org.eclipse.emf.ecore.resource.Resource.Diagnostic diagnostic, Severity severity, IAcceptor<Issue> acceptor)
          Convert a resource diagnostic to zero, one or more markers.
 void convertValidatorDiagnostic(org.eclipse.emf.common.util.Diagnostic diagnostic, 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,
                               IAcceptor<Issue> acceptor)
Convert a resource diagnostic to zero, one or more markers.


convertValidatorDiagnostic

void convertValidatorDiagnostic(org.eclipse.emf.common.util.Diagnostic diagnostic,
                                IAcceptor<Issue> acceptor)
Convert a validation diagnostic to zero, one or more markers.