Class DiagnosticConverterImpl

    • Constructor Detail

      • DiagnosticConverterImpl

        public DiagnosticConverterImpl()
    • Method Detail

      • convertResourceDiagnostic

        public void convertResourceDiagnostic​(org.eclipse.emf.ecore.resource.Resource.Diagnostic diagnostic,
                                              Severity severity,
                                              org.eclipse.xtext.util.IAcceptor<Issue> acceptor)
        Description copied from interface: IDiagnosticConverter
        Convert a resource diagnostic to zero, one or more markers.
        Specified by:
        convertResourceDiagnostic in interface IDiagnosticConverter
      • convertValidatorDiagnostic

        public void convertValidatorDiagnostic​(org.eclipse.emf.common.util.Diagnostic diagnostic,
                                               org.eclipse.xtext.util.IAcceptor<Issue> acceptor)
        Description copied from interface: IDiagnosticConverter
        Convert a validation diagnostic to zero, one or more markers.
        Specified by:
        convertValidatorDiagnostic in interface IDiagnosticConverter
      • getIssueType

        protected CheckType getIssueType​(org.eclipse.emf.common.util.Diagnostic diagnostic)
        Since:
        2.4
      • getIssueData

        protected java.lang.String[] getIssueData​(org.eclipse.emf.common.util.Diagnostic diagnostic)
        Since:
        2.4
      • getIssueCode

        protected java.lang.String getIssueCode​(org.eclipse.emf.common.util.Diagnostic diagnostic)
        Since:
        2.4
      • getSeverity

        protected Severity getSeverity​(org.eclipse.emf.common.util.Diagnostic diagnostic)
        Since:
        2.4
      • getCauser

        protected org.eclipse.emf.ecore.EObject getCauser​(org.eclipse.emf.common.util.Diagnostic diagnostic)
      • getLocationData

        protected DiagnosticConverterImpl.IssueLocation getLocationData​(org.eclipse.emf.common.util.Diagnostic diagnostic)
        Returns:
        the location data for the given diagnostic.
        1. First: line number,
        2. Second: Offset of first char (inclusive), and
        3. Third: Offset of last char (exclusive).
      • getLocationData

        protected DiagnosticConverterImpl.IssueLocation getLocationData​(org.eclipse.emf.ecore.EObject obj,
                                                                        org.eclipse.emf.ecore.EStructuralFeature structuralFeature,
                                                                        int index)
        Returns:
        the location data for the given diagnostic.
      • resolveStructuralFeature

        protected org.eclipse.emf.ecore.EStructuralFeature resolveStructuralFeature​(org.eclipse.emf.ecore.EObject ele,
                                                                                    java.lang.Object feature)