Class ProblemResource.ProblemResourceLinkingDiagnostic

java.lang.Object
org.eclipse.xtext.diagnostics.AbstractDiagnostic
org.eclipse.xtext.linking.impl.XtextLinkingDiagnostic
tools.refinery.language.resource.ProblemResource.ProblemResourceLinkingDiagnostic
All Implemented Interfaces:
org.eclipse.emf.ecore.resource.Resource.Diagnostic, org.eclipse.xtext.diagnostics.Diagnostic
Enclosing class:
ProblemResource

protected static class ProblemResource.ProblemResourceLinkingDiagnostic extends org.eclipse.xtext.linking.impl.XtextLinkingDiagnostic
Marks all diagnostics inserted by ProblemResource with a common superclass so that they can later be removed.

We have to inherit from XtextLinkingDiagnostic to access the protected function XtextLinkingDiagnostic.getNode().

  • Field Summary

    Fields inherited from interface org.eclipse.xtext.diagnostics.Diagnostic

    LINKING_DIAGNOSTIC, SYNTAX_DIAGNOSITC, SYNTAX_DIAGNOSTIC, SYNTAX_DIAGNOSTIC_WITH_RANGE
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProblemResourceLinkingDiagnostic(org.eclipse.xtext.nodemodel.INode node, String message, String code, String... data)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    matchesMessage(org.eclipse.xtext.diagnostics.DiagnosticMessage message)
     
    boolean
    matchesNode(org.eclipse.xtext.nodemodel.INode node)
     

    Methods inherited from class org.eclipse.xtext.linking.impl.XtextLinkingDiagnostic

    equals, getCode, getData, getMessage, getNode, hashCode

    Methods inherited from class org.eclipse.xtext.diagnostics.AbstractDiagnostic

    getColumn, getColumnEnd, getLength, getLine, getLineEnd, getLocation, getOffset, getUriToProblem, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ProblemResourceLinkingDiagnostic

      public ProblemResourceLinkingDiagnostic(org.eclipse.xtext.nodemodel.INode node, String message, String code, String... data)
  • Method Details

    • matchesNode

      public boolean matchesNode(org.eclipse.xtext.nodemodel.INode node)
    • matchesMessage

      public boolean matchesMessage(org.eclipse.xtext.diagnostics.DiagnosticMessage message)