Content assist not working... [message #1059125] |
Thu, 16 May 2013 16:53  |
Eclipse User |
|
|
|
Test:
name=ID
'values'
one?=ValueOne?
two?=ValueTwo?
;
ValueOne:
'aaa' 'bbb'
;
ValueTwo:
'ccc' 'ddd'
;
With the above definition, if I hit crtl-space after providing an ID, it correctly presents "values", however hitting crtl-space after "values" I get nothing, if I enter "aaa" and hit crtl-space, I also get nothing.
The complete_ValueOne() and complete_ValueTwo() methods from MyDslProposalProvider are called when hitting ctrl-space before typing "aaa", or before completing the "aaa" keyword. So I can provide content assist at those points. But once I'm inside ValueOne or ValueTwo I can't seem to provide content assistance. Even implementing the completeKeyword() method doesn't help as it's not called when I'm inside the ValueOne or valueTwo elements.
Is this a bug? Is this what is expected to happen? Is there some way I CAN provide content assist at that point?
I know I can rewrite it to something like:
Test:
name=ID
'values'
(one?='aaa' 'bbb')?
(two?='ccc' 'ddd')?
;
My goal is to reuse the ValueOne/ValueTwo elements elsewhere for consistency. Also the first example feels cleaner to me.
This is happening with the latest publicly released version of xtext (I did an update today to see if that fixed the problem.)
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06604 seconds