|
|
Re: Validation in Xtext [message #1694401 is a reply to message #1694392] |
Tue, 05 May 2015 06:55 |
|
Hi Christian,
Thanks for your reply.
Actually I have 2 grammars , one with extension .model1 and second one with .model2.
.model2 files refer data from .model1 files.
And suppose, if .model1 files have errors then I do not want to continue generation for .model2 file.
I detect these problems by calling Diagnostician.INSTANCE.validate() method from validator class of .model2 file for the referred content of .model1 files.
So at this stage, if .model1 files have errors, I notify this in .model2 file saying that the referred file has errors OTHERWISE it continues generating outputs which ends up in many problems/exceptions.
So I needed this.
Do you see a better approach than this ?
Regards,
Arshad
Arshad
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03565 seconds