Xtext : Unicity element [message #1764029] |
Wed, 24 May 2017 04:24  |
Eclipse User |
|
|
|
Hi,
I have a new problem. In my grammar, I want to have the unicity between objects.
If the objects déclarations are in the same file, that works. I uncomment this part :
[code]
composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
[\code]
However, if element are not in the same file, that does not work.
I created a new function in MyDslValidator. I retrieve my element but I can not compare it with others elements.
I would like to know how I can have access at all created objects. I read in the forum I can use the GlobalScopeProvider.
How can I do that or is there another method ?
Thank you
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06882 seconds