Skip to main content



      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
Eclipse UserFriend
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: Sun Jul 06 05:47:50 EDT 2025

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

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

Back to the top