Class CustomDiagnosticConverter

  • All Implemented Interfaces:
    org.eclipse.xtext.validation.IDiagnosticConverter

    public class CustomDiagnosticConverter
    extends org.eclipse.xtext.validation.DiagnosticConverterImpl
    Our extension of DiagnosticConverterImpl. Fixes a number of issues with base implementation.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.xtext.validation.DiagnosticConverterImpl

        org.eclipse.xtext.validation.DiagnosticConverterImpl.IssueLocation
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void convertResourceDiagnostic​(org.eclipse.emf.ecore.resource.Resource.Diagnostic diagnostic, org.eclipse.xtext.diagnostics.Severity severity, org.eclipse.xtext.util.IAcceptor<org.eclipse.xtext.validation.Issue> acceptor)  
      void convertValidatorDiagnostic​(org.eclipse.emf.common.util.Diagnostic diagnostic, org.eclipse.xtext.util.IAcceptor<org.eclipse.xtext.validation.Issue> acceptor)  
      protected org.eclipse.xtext.validation.DiagnosticConverterImpl.IssueLocation getLocationData​(org.eclipse.emf.common.util.Diagnostic diagnostic)  
      protected org.eclipse.xtext.validation.DiagnosticConverterImpl.IssueLocation getLocationData​(org.eclipse.emf.ecore.EObject obj, org.eclipse.emf.ecore.EStructuralFeature feature, int index)  
      • Methods inherited from class org.eclipse.xtext.validation.DiagnosticConverterImpl

        getCauser, getIssueCode, getIssueData, getIssueType, getLocationData, getLocationForNode, getLocationForNode, getSeverity, resolveStructuralFeature
    • Constructor Detail

      • CustomDiagnosticConverter

        public CustomDiagnosticConverter()
    • Method Detail

      • convertResourceDiagnostic

        public void convertResourceDiagnostic​(org.eclipse.emf.ecore.resource.Resource.Diagnostic diagnostic,
                                              org.eclipse.xtext.diagnostics.Severity severity,
                                              org.eclipse.xtext.util.IAcceptor<org.eclipse.xtext.validation.Issue> acceptor)
        Specified by:
        convertResourceDiagnostic in interface org.eclipse.xtext.validation.IDiagnosticConverter
        Overrides:
        convertResourceDiagnostic in class org.eclipse.xtext.validation.DiagnosticConverterImpl
      • convertValidatorDiagnostic

        public void convertValidatorDiagnostic​(org.eclipse.emf.common.util.Diagnostic diagnostic,
                                               org.eclipse.xtext.util.IAcceptor<org.eclipse.xtext.validation.Issue> acceptor)
        Specified by:
        convertValidatorDiagnostic in interface org.eclipse.xtext.validation.IDiagnosticConverter
        Overrides:
        convertValidatorDiagnostic in class org.eclipse.xtext.validation.DiagnosticConverterImpl
      • getLocationData

        protected org.eclipse.xtext.validation.DiagnosticConverterImpl.IssueLocation getLocationData​(org.eclipse.emf.common.util.Diagnostic diagnostic)
        Overrides:
        getLocationData in class org.eclipse.xtext.validation.DiagnosticConverterImpl
      • getLocationData

        protected org.eclipse.xtext.validation.DiagnosticConverterImpl.IssueLocation getLocationData​(org.eclipse.emf.ecore.EObject obj,
                                                                                                     org.eclipse.emf.ecore.EStructuralFeature feature,
                                                                                                     int index)
        Overrides:
        getLocationData in class org.eclipse.xtext.validation.DiagnosticConverterImpl