Skip to main content



      Home
Home » Modeling » TMF (Xtext) » CA shows proposals for second Assignment after cursor position
CA shows proposals for second Assignment after cursor position [message #42729] Mon, 04 May 2009 08:04 Go to next message
Eclipse UserFriend
Hello,
Given the next grammar :
----------------------------------------------
Sentence :
entity = Ent verb = Verb attribute = Attribute;

Ent :
'Java' |
'C++';
Verb :
'is'
|
'isn\'t';

Attribute:
'cool'|
'fast'|
'ugly'|
'simple';
----------------------------------------------

If I write in the editor "Java |" (| is where the cursor is at) and
press ctrl+space the content assist proposals are the ones from the
"Attribute" rule : 'cool', 'fast', etc... Shouldn't they be 'is' and
'isn't' ?
However, if I write "Java|" and press ctrl+space the proposals are
'is' and 'isn't'.
I tried to rewrite the "Sentence" rule to :
"Sentence :
entity = Ent ws=WS verb = Verb w=WS attribute = Attribute;" but then the
content assist stopped working after the first word... I then tried to
override methods in" MyDslProposalProvider extends
org.xtext.example.GenMyDslProposalProvider" but still nothing.
What am I missing here ?
Thanks,
George
Re: CA shows proposals for second Assignment after cursor position [message #42792 is a reply to message #42729] Mon, 04 May 2009 08:34 Go to previous messageGo to next message
Eclipse UserFriend
Hi Georg,

this has been fixed in HEAD and will be included in tomorrow's M7 build.

Regards,
Sven

George Ganea schrieb:
> Hello,
> Given the next grammar :
> ----------------------------------------------
> Sentence :
> entity = Ent verb = Verb attribute = Attribute;
> Ent : 'Java' |
> 'C++';
> Verb :
> 'is'
> |
> 'isn\'t';
>
> Attribute:
> 'cool'|
> 'fast'|
> 'ugly'|
> 'simple';
> ----------------------------------------------
> If I write in the editor "Java |" (| is where the cursor is at) and
> press ctrl+space the content assist proposals are the ones from the
> "Attribute" rule : 'cool', 'fast', etc... Shouldn't they be 'is' and
> 'isn't' ?
> However, if I write "Java|" and press ctrl+space the proposals are
> 'is' and 'isn't'.
> I tried to rewrite the "Sentence" rule to : "Sentence :
> entity = Ent ws=WS verb = Verb w=WS attribute = Attribute;" but then
> the content assist stopped working after the first word... I then tried
> to override methods in" MyDslProposalProvider extends
> org.xtext.example.GenMyDslProposalProvider" but still nothing.
> What am I missing here ?
> Thanks,
> George
>
>
>
>
Re: CA shows proposals for second Assignment after cursor position [message #42823 is a reply to message #42792] Mon, 04 May 2009 13:08 Go to previous message
Eclipse UserFriend
Hi Sven,
Thank you very much for the quick reply. Looking forward to tomorrow's
release then :)
George
Previous Topic:Xtext for generic programming language?
Next Topic:Language Libraries
Goto Forum:
  


Current Time: Tue Jul 22 13:11:55 EDT 2025

Powered by FUDForum. Page generated in 0.08431 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top