Disable the model validation in xtext [message #1809116] |
Tue, 09 July 2019 11:54 |
Ramesh Javalagatti Messages: 17 Registered: November 2018 |
Junior Member |
|
|
Hi,
I am working on Xtext editor for existing model. I am getting errors in editor if elements doesn't have any required features or mandatory references.So please help me how can i ignore or disable this validation in Xtext editor.(i don't want that error message to display on editor)
[Updated on: Tue, 09 July 2019 11:56] Report message to a moderator
|
|
|
Re: Disable the model validation in xtext [message #1809119 is a reply to message #1809116] |
Tue, 09 July 2019 12:21 |
|
you can overwrite
org.eclipse.xtext.validation.CompositeEValidator.initDefaults()
and use a EObjectValidator with some methods overriden returning true
or you turn of the eobject validator completely byadding a binding for this
@Inject(optional=true)
@Named(value=USE_EOBJECT_VALIDATOR)
private boolean useEObjectValidator = true;
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
Powered by
FUDForum. Page generated in 0.05227 seconds