Skip to main content


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

the ContentAssistContext offers you everything you need.

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
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: Wed Apr 24 17:19:24 GMT 2024

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

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

Back to the top