Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Disable the model validation in xtext(How to disable the model validation in xtext)
Disable the model validation in xtext [message #1809116] Tue, 09 July 2019 11:54 Go to next message
Ramesh Javalagatti is currently offline Ramesh JavalagattiFriend
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 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
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
Re: Disable the model validation in xtext [message #1809137 is a reply to message #1809119] Wed, 10 July 2019 05:08 Go to previous message
Ramesh Javalagatti is currently offline Ramesh JavalagattiFriend
Messages: 17
Registered: November 2018
Junior Member
Hi Christian,
Thanks for the replay, i will try this.
Previous Topic:Deploy Xtext DSL into Intellij
Next Topic:Bootstrapped Maven-Xtext-Project fails with Xtext-2.18.0
Goto Forum:
  


Current Time: Fri Apr 19 16:04:38 GMT 2024

Powered by FUDForum. Page generated in 0.01939 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top