Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Customize proposals of a grammar(Customize proposals of a grammar)
Customize proposals of a grammar [message #962922] Mon, 29 October 2012 08:37
Martin Knödel is currently offline Martin Knödel
Messages: 1
Registered: October 2012
Junior Member
Hi,

in my grammar I want to filter/scope proposals.
The grammar
Model:
 definitions += Definition*
;

Definition:
 'field'  refField = [Field|ID] '=' rule=Rule
;

Rule:
 Rule1 | Rule2 | Rule3
;
...


Depending on the field only Rule 1 and 2 should be displayed in the content assist.
I tried to customize the method completeDefinition_Rule in MyDslProposalProvider but it didn't work.

Thx for any informations or help!

Previous Topic:Creating an xbase Project
Next Topic:Use ANTLR grammar within Xtext
Goto Forum:
  


Current Time: Tue Jul 29 21:09:25 EDT 2014

Powered by FUDForum. Page generated in 0.02328 seconds