content assist [message #759230] |
Sun, 27 November 2011 16:22  |
Eclipse User |
|
|
|
hello all,
is it possible to use content-assist stubs to let editor give references to another rule elements? like instead of cross-reference in grammar level.
reason is, i am doing xtext for Prolog-like language and am enforced sometimes to write anti-elegant rules, just because they are working! i am thinking to resort to content assist to fill the gap! does it make sense?
thanks a lot.
Mokhtar
|
|
|
|
|
|
|
|
|
|
|
Re: content assist [message #759800 is a reply to message #759780] |
Wed, 30 November 2011 01:53  |
Eclipse User |
|
|
|
q1) is already answered, [FoodCateg] is equivalent to [FootCateg|ID] and coco.nuts is not an ID.
q2) see the documentation on naming, search for IQualifiedNameProvider and check out the DefaultDeclarativeQualifiedNameProvder
q3) see the documentation, search for scoping, there are hundreds of threads here with scoping questions
q4) see the documentation, the feature name "name" has a special meaning for naming elements
Alex
|
|
|
Powered by
FUDForum. Page generated in 0.04337 seconds