|Validation only FAST and NORMAL [message #1827026]
||Wed, 06 May 2020 09:02
| Martin Jedlicka
Registered: January 2016
I have a question about validations in Sirius. I need that EXPENSIVE type validations are not validated (ie only NORMAL and FAST).
In xtext, this is done simply with CheckMode:
ValidationJob validationJob = new ValidationJob(resourceValidator, xtextDocument, issueProcessor, CheckMode.NORMAL_AND_FAST);
But I don't know how to do it in Sirius. I call validation:
ValidateAction.runValidation(((IDiagramWorkbenchPart) this).getDiagramEditPart(), this.getDiagram());
Thanks for any advice.
|Re: Validation only FAST and NORMAL [message #1827107 is a reply to message #1827026]
||Thu, 07 May 2020 09:33
I believe CheckMode is an Xtext-specific concept, and we do not provide an equivalent in Sirius.
I am not familiar enough with that part of Xtext to say how this could be supported. Sirius relies on EMF Validation to invoke the validation rules, and gets an IBatchValidator by calling
This is hard-coded at the moment, but if Xtext integrates with EMF Validation, maybe we could offer a variant of ValidateAction.runValidation(View) where you could provide one from Xtext with the proper CheckMode?
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
Powered by FUDForum
. Page generated in 0.01447 seconds