|
|
|
Re: Validations in text instead of EMF model [message #1699534 is a reply to message #1699510] |
Wed, 24 June 2015 19:50 |
Luis De Bello Messages: 95 Registered: January 2015 |
Member |
|
|
Hi guys,
At the end, I have created my own validation job and override the method "createIssues" and I have added my own logic to create issues based on a custom parser which take the text for my script and parse it.
public List<Issue> createIssues(IProgressMonitor monitor) {
List<Issue> issues = super.createIssues(monitor);
// Here I have added my own logic to take the text from the XtextDocument and populate the issues list with my own issues plus the xtext validation grammar
return issues;
}
I am sure this is not the best way to do this ,but as I already have the parser I reuse it.
Regards,
Luis
[Updated on: Wed, 24 June 2015 19:52] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.01970 seconds