|
Re: Global Scope, Filtering and name collisions [message #656290 is a reply to message #656230] |
Thu, 24 February 2011 23:16 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Hi Rafael,
what kind of error do you get? Did you try to remove the
NamesAreUniqueValidator that is automatically added by the workflow that
generates your language infrastructure.
Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Am 24.02.11 17:09, schrieb Rafael Angarita:
> Hello all,
>
> I needed to limit the available objects to be chosen for a certain
> cross-reference. This reference can be of several types so I wrote this:
>
>
> AorC:
> a=([ecore::EObject])
> ;
>
>
>
> Looking at the Arithmetics example I found the FilteringScope class and,
> as in the example, I overwrote this method:
>
>
> public IScope getScope(EObject context, EReference reference)
>
>
> Now, the content proposal shows me only the objects that I want, but the
> grammar shows me an error if there exist
> another object with the same name even if this objects is of a type that
> I thought was filtered.
> What am i missing to really limit the visible objects?
>
> Thank you very much!
>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03657 seconds