3

I've implemented plain text hovers in my plugin with ITextHover. And now I want to use new eclipse 3.4 feature - Rich text hovers with text styles, images and actions.But I can't find articles/examples about it. What interfaces should I use and where? I found ITextHoverExtension2 interface, but can't find how to create hover objects (what class should they be?) and what interface should catch them?

Imaskar
  • 2,773
  • 24
  • 35

1 Answers1

2

I don't know if the OP is still interested, but for the record: What I wrote previously was half-right and more than three-quarters wrong (and yes, I can do math :-) I've written a blog post that, I hope, does a better job in covering this subject.

(If you're frowning at this self-promotion, you can smile at the knowledge that this update isn't likely to draw many readers.)

Dan Breslau
  • 11,472
  • 2
  • 35
  • 44
  • Yeah, I've seen this. The main problem is what to return. Also I feel there should be class for presenting returned info. And I pray there is some standard presenter for html with actions for links. Just like in problem resolving popup. – Imaskar Mar 24 '09 at 18:17
  • Thanks for the answer, Dan. For a long time I thought this question is unanswered... (you know, edits are not highlighted in questions list). One more please, is there a HoverControl that can contain hyperlincs, that can run actions (or better, handlers, since Eclipse movin' that way)? – Imaskar Jul 03 '09 at 12:08
  • I haven't been playing in Eclipse as much lately, so my knowledge is a bit rusty now. My guess is that it's possible, since I the blog post I wrote shows that you can put just about anything inside a hover control. I don't know how much of the work would be covered by existing Eclispe APIs, though. Now that Galileo's out, I may revisit this area sometime. If I find anything more, I'll drop a note here. – Dan Breslau Jul 04 '09 at 02:44