Skip to main content



      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 07:54 Go to next message
Eclipse UserFriend
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 07:56] by Moderator

Re: Disable the model validation in xtext [message #1809119 is a reply to message #1809116] Tue, 09 July 2019 08:21 Go to previous messageGo to next message
Eclipse UserFriend
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;
Re: Disable the model validation in xtext [message #1809137 is a reply to message #1809119] Wed, 10 July 2019 01:08 Go to previous message
Eclipse UserFriend
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: Sun Apr 27 13:57:40 EDT 2025

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

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

Back to the top