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
Hello,

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: 6485
Registered: July 2009
Senior Member
Hi,

the ContentAssistContext offers you everything you need.

~Christian
Previous Topic:ECore Double attribute does not show its name in content assist editor
Next Topic:How to get objects from a resource from within the ProposalProvider ?
Goto Forum:
  


Current Time: Sun Nov 23 02:17:47 GMT 2014

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

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