Search in sources :

Example 1 with DiagnosticChainAcceptor

use of org.eclipse.xtext.validation.IConcreteSyntaxValidator.DiagnosticChainAcceptor in project xtext-core by eclipse.

the class AbstractConcreteSyntaxValidationTest method validate.

protected AssertableDiagnostics validate(EObject obj) {
    final BasicDiagnostic dc = new BasicDiagnostic();
    getValidator().validateRecursive(obj, new DiagnosticChainAcceptor(dc), new HashMap<Object, Object>());
    return new AssertableDiagnostics(dc);
}
Also used : BasicDiagnostic(org.eclipse.emf.common.util.BasicDiagnostic) EObject(org.eclipse.emf.ecore.EObject) DiagnosticChainAcceptor(org.eclipse.xtext.validation.IConcreteSyntaxValidator.DiagnosticChainAcceptor)

Aggregations

BasicDiagnostic (org.eclipse.emf.common.util.BasicDiagnostic)1 EObject (org.eclipse.emf.ecore.EObject)1 DiagnosticChainAcceptor (org.eclipse.xtext.validation.IConcreteSyntaxValidator.DiagnosticChainAcceptor)1