Expandable\Collapsable Tooltip

Answered

I want to create a tooltip similar to those that have the "more... (Ctrl+F1)" and "less... (Ctrl+F1)" functionality. Which class can I use to do this?

Is this possible for the components in a tool window or can this only be done in the editor?

 

3 comments
Comment actions Permalink

All this API is quite tied to the Editor UI, but you might be able to reuse some UI classes like com.intellij.ui.LightweightHint. The actual code for this is in com.intellij.codeInsight.hint.LineTooltipRenderer#show

0
Comment actions Permalink

Yann Could you point me to any examples of the tooltip implementation? For my custom language plugin, I need to show documentation about some of the tokens which could be hyperlinks. Right now, I'm using Annotation but the UI is very mediocre. I need to have the UI enriched and also capable of showing html like links. BTW, I've just started with IntelliJ plugin development and following the tutorials. 

0
Comment actions Permalink

Venbigdata, please check the Documentation section in our docs.

0

Please sign in to leave a comment.