Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Custom Content Assist(Customizing content assist extended)
Custom Content Assist [message #915409] Mon, 17 September 2012 08:17 Go to next message
paolo pinkel is currently offline paolo pinkelFriend
Messages: 10
Registered: July 2012
Junior Member

I want to customize my content Assist.
The implementation of this however seems quite hard to me.

My Grammar is like a context free grammar, and i want to provide the names of terminals and nonterminals on the righthandside.
However since I am also referencing Terminals defined in another grammar file I am not able to do this by grammar design.
So I want to be able to access certain model elements within my completeElem_TerminalName Method. Is there a possibility to access the model within this method?

Thank you very much!
Re: Custom Content Assist [message #915653 is a reply to message #915409] Mon, 17 September 2012 17:32 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 10431
Registered: July 2009
Senior Member

the ContentAssistContext offers you everything you need.

Next Topic:15 Minute Tutorial Extended
Goto Forum:

Current Time: Wed Apr 26 14:11:33 GMT 2017

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

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