How to display Hint (Tooltip) for resolved PsiReference on Ctrl + MouseOver

This might look trivial, yet I didn't find out how...

I have a properly resolved PsiReference in my custom language:
- element is correctly underlining on Ctrl+MouseOver
- mouse cursor is changing to pointer hand
- navigation to referenced PsiElement is properly working

I want to be able to display a hint when pressing Ctrl and holding the mouse pointer over it, like java navigation behaves in IDEA.
Would appreciate any help.

4 comments
Comment actions Permalink

return your implementation of

from your

0
Comment actions Permalink

Thanks Jay! Works fine.
Is there a way do some text formating here? Like "...

0
Comment actions Permalink

i think that this tooltip is just a text.
but i have not tried to format it.

i know that javadoc popup (ctrl+q) has pure html formatting

0
Comment actions Permalink

Indeed. It is just a text. The only formatting applicable here is multi-row.. using "\n"

0

Please sign in to leave a comment.