Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Override "names are unique" check for a specific type of object
Override "names are unique" check for a specific type of object [message #1343482] Fri, 09 May 2014 10:02 Go to next message
Fabian G. is currently offline Fabian G.Friend
Messages: 60
Registered: May 2010
Location: Christchurch (NZ)
Member
Hi,

In my grammar, I'm using fully qualified names and I activated the "NamesAreUniqueValidator" which works pretty well. Howver, I would like to somehow redefine the validator behavior for one specific type of object, is it possible? Does it exist something like the mechanism for the outline customization for example ? Or any other way ?

thanks,
cheers,
Fabian
Re: Override "names are unique" check for a specific type of object [message #1343957 is a reply to message #1343482] Fri, 09 May 2014 14:42 Go to previous messageGo to next message
Thomas Fritsch is currently offline Thomas FritschFriend
Messages: 28
Registered: April 2013
Location: Germany
Junior Member
You need your own customized NamesAreUniqueValidationHelper
and in your RuntimeModule bind it to INamesAreUniqueValidationHelper.

See http://www.eclipse.org/forums/index.php/t/627964/
Re: Override "names are unique" check for a specific type of object [message #1346701 is a reply to message #1343957] Sat, 10 May 2014 19:00 Go to previous message
Fabian G. is currently offline Fabian G.Friend
Messages: 60
Registered: May 2010
Location: Christchurch (NZ)
Member
I should have guessed. thank you.
Previous Topic:How to change the namespace separator ?
Next Topic:Auto-selection of text at proposal?
Goto Forum:
  


Current Time: Thu Aug 13 15:34:51 GMT 2020

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

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

Back to the top