| Validation in xtext [message #1174947]
||Thu, 07 November 2013 12:16
|| Arshad Adavani
Registered: July 2013
For my language created from xtext grammar I have written some validation checks/methods. This is fine, it works perfectly for me. But I want something more,
1. When I launch my product(as Eclipse Application ) the validations checks are NOT CALLED. I want all the validation checks to be called when I launch my tool. But it happens only when I edit or do some stuff in my editor.
Problem with this: Last state of the editor is saved when I close my product, and if I write/update the validation checks, these things will not be called when I launch my tool next time and only will be called when I do something in the editor.
2. As soon as I start typing value for a field in the editor, the validation checks are called which results in errors. I don't want it to happen. I want to call the validation when typing is completed.
For e.g. say that I have a enum in my editor (enum_Sample=10) and I will be referring this at some other place. No doubt if I press (Ctrl + Space), I will get the content assist. But if I start typing "enum_Sample", untill its typed completely, for each character it will give me an error.
Thanks in advance for your help !!
Powered by FUDForum
. Page generated in 0.01986 seconds