Karsten Thoms Messages: 331 Registered: July 2009 Location: Dortmund
Senior Member
You can use the CheckFacade to do this.
public final static void checkAll(final String checkFile, final Collection<?> toCheck, final ExecutionContext ctx, final Issues issues)
checkFile: Qualified name of the check file to invoke, like you pass it in MWE
toCheck: Collection of elements
ctx: create an instance of ExecutionContextImpl, maybe look at AbstractExpressionUsingWorkflowComponent#getExecutionContext (). Important: Register the metamodel(s) used.
issues: instance of IssuesImpl
~Karsten
Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @kthoms
Blog : www.karsten-thoms.de