|dot notation and scoping [message #1073391]
||Wed, 24 July 2013 13:07
| Thomas Pramsohler
Registered: March 2013
I have a dot-notation in my grammar with the following Rule:|
ModelElementReference hidden() :
element=[ModelElement](Array ?='[' arrayIndex=INT ']')? (hasNestedElement ?='.' nestedElement=ModelElementReference)?;
The rule works fine and it produces the right grammar. for example connectMethod.inputParameterStruct.structValue
Now i want to use the scoping api in order to have the right context assist. In my example only parameters of the connectMethod should be visible. But the scope which is called if i write "connectMethod." and press Strg+SPACE is:
scope_ModelElementReference_element with the context ModelElementReference of the connectMethod-element. In my opinion the context should be the one of the nested ModelElementReference which has a ModelElementReference as eContainer.
After writing the correct text, the scoping gets applied properly, but the context assist does not work.
Maybe someone can tell my why the "wrong" scope gets called after writing the dot and pressing Strg+SPACE and what I can do to get the context assist working for my use case?
Powered by FUDForum
. Page generated in 0.01941 seconds