Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Showing Details/Descriptions in Content Assist
icon5.gif  Showing Details/Descriptions in Content Assist [message #662585] Thu, 31 March 2011 08:47 Go to next message
Timo Missing name is currently offline Timo Missing nameFriend
Messages: 12
Registered: March 2011
Junior Member
Hi there!

I'm using Javadoc-like descriptions in my DSL interpretation, and I also enabled content assist for functions and stuff.
Now I'm wondering how to combine these.

I've already implemented ITextHover to enable the descriptions when hovering over a function, and it works very well Smile
So all the pieces work, but I dont't know how to combine them...

When I look at the JAVA content assist, it opens another popup with the JavaDoc (if available).
Example: Type "Strin" in the JAVA Editor, and it shows "String" with an extra popup displaying the String-Documentation.

Can anybody help me out how to achieve this?

Thanks in advance!
Re: Showing Details/Descriptions in Content Assist [message #662592 is a reply to message #662585] Thu, 31 March 2011 09:03 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 2936
Registered: July 2009
Senior Member
Hi Timo,

this feature is available in the Xtext 2.0 stream. Feel free to dig into
the org.eclipse.xtext.ui.editor.hover package.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 31.03.11 10:47, schrieb Timo:
> Hi there!
>
> I'm using Javadoc-like descriptions in my DSL interpretation, and I also
> enabled content assist for functions and stuff.
> Now I'm wondering how to combine these.
>
> I've already implemented ITextHover to enable the descriptions when
> hovering over a function, and it works very well :)
> So all the pieces work, but I dont't know how to combine them...
>
> When I look at the JAVA content assist, it opens another popup with the
> JavaDoc (if available).
> Example: Type "Strin" in the JAVA Editor, and it shows "String" with an
> extra popup displaying the String-Documentation.
>
> Can anybody help me out how to achieve this?
>
> Thanks in advance!
Re: Showing Details/Descriptions in Content Assist [message #691378 is a reply to message #662592] Fri, 01 July 2011 10:43 Go to previous message
Timo Missing name is currently offline Timo Missing nameFriend
Messages: 12
Registered: March 2011
Junior Member
Hello again,

I finished migrating to 2.0 now, and thought i'd have another look at this topic.

To get custom proposals i have overwritten and customized the generated ProposalProvider. This is working fine, but i want to extend it to also show the documentation for each proposal.

i have attached a screenshot of the java proposals to demonstrate what i want to achieve.

could someone give me directions on how to do this?

thanks a lot!
  • Attachment: screen.png
    (Size: 76.10KB, Downloaded 54 times)
Previous Topic:Expression Language Problem
Next Topic:Syntax highlight for Enums
Goto Forum:
  


Current Time: Sun Nov 23 01:25:38 GMT 2014

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

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