Interface ProblemSupport

All Known Subinterfaces:
TransformationContext, ValidationContext

@Beta public interface ProblemSupport
Support for looking up and creating new Problem markers on Elements
Author:
Sven Efftinge
  • Method Details

    • getProblems

      List<? extends Problem> getProblems(Element element)
      Parameters:
      element - the element to look up problems
      Returns:
      the problems associated with the given Element
    • addError

      void addError(Element element, String message)
      Adds a problem marker with severity Problem.Severity#ERROR to the given element
      Parameters:
      element - the element to which associate the new problem marker
      message - the message for the problem marker
    • addWarning

      void addWarning(Element element, String message)
      Adds a problem marker with severity Problem.Severity#WARNING to the given element
      Parameters:
      element - the element to which associate the new problem marker
      message - the message for the problem marker
    • validateLater

      void validateLater(org.eclipse.xtext.xbase.lib.Procedures.Procedure0 validationCallback)
      Parameters:
      validationCallback - a callback that will be executed in the validation phase, when all transformations have been done and types are inferred.
      Since:
      2.7