Module org.eclipse.xtend.lib.macro
Interface ProblemSupport
- All Known Subinterfaces:
TransformationContext,ValidationContext
@Beta
public interface ProblemSupport
- Author:
- Sven Efftinge
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a problem marker with severityProblem.Severity#ERROR to the given elementvoidaddWarning(Element element, String message) Adds a problem marker with severityProblem.Severity#WARNING to the given elementgetProblems(Element element) voidvalidateLater(org.eclipse.xtext.xbase.lib.Procedures.Procedure0 validationCallback)
-
Method Details
-
getProblems
- Parameters:
element- the element to look up problems- Returns:
- the problems associated with the given
Element
-
addError
Adds a problem marker with severityProblem.Severity#ERROR to the given element- Parameters:
element- the element to which associate the new problem markermessage- the message for the problem marker
-
addWarning
Adds a problem marker with severityProblem.Severity#WARNING to the given element- Parameters:
element- the element to which associate the new problem markermessage- 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
-