|
Re: [Check] invoke programmatically [message #642467 is a reply to message #642428] |
Wed, 01 December 2010 13:18 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
|
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, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
|
|
|
Powered by
FUDForum. Page generated in 0.03334 seconds