Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsErrors and Warnings while running workflow
https://www.eclipse.org/forums/index.php/mv/msg/457759/1015876/#msg_1015876
I have generated an Xtext editor based on my DSL. I am writing some file on my editor and saving it. It has few Errors and warning, that i have put deliberately. When i run the workflow to generate some file from that takes the saved file as input and generates some code from that, i get all those errors and warnings of my saved file on the console. I Only want the errors to be shown , not the warnings. How can this be achieved?]]>Ankit Agarwal2013-03-04T06:19:55-00:00Re: Errors and Warnings while running workflow
https://www.eclipse.org/forums/index.php/mv/msg/457759/1016885/#msg_1016885
As i needed to show the errors and warnings only on editor and not on code generation, So i had to set a flag in Editor class that it is being used. Now on validations i put a check that if that flag was true then editor is being used so to show the error, while when running from workflow that flag would be false.]]>Ankit Agarwal2013-03-08T04:26:31-00:00Re: Errors and Warnings while running workflow
https://www.eclipse.org/forums/index.php/mv/msg/457759/1016916/#msg_1016916
let us asume you use org.eclipse.xtext.mwe.Reader to read the model.
then you can see that the reader has
a org.eclipse.xtext.mwe.Validator
that about customize this Validator
(e.g. overide validate)]]>Christian Dietrich2013-03-08T08:20:59-00:00Re: Errors and Warnings while running workflow
https://www.eclipse.org/forums/index.php/mv/msg/457759/1016944/#msg_1016944
Ankit Agarwal2013-03-08T09:48:06-00:00