Tutorial on marker annotation hovers [message #195137] |
Mon, 16 February 2004 03:29 |
Eclipse User |
|
|
|
Does anyone know of a good introduction to markers annotation hovers? I
want to figure out how to make error messages appear when you hover over
an error icon in the vertical rule or over the wavy-underlined text
where the error is.
The background info is that I just made my editor display markers for
any syntax errors it finds while reconciling. Eclipse automatically
puts an icon in the vertical rule on the line where the error occurs,
and it automatically adds a wavy underline to the text range that I
specify in the marker's attriutes. Now I want to get the hovers
working. I've tried setting the marker's MESSAGE attribute just for
kicks, but that doesn't do anything (and the Javadoc says it doesn't).
I think the answer is that I need to create a two extra Annotation
objects for each marker: one for the vertical ruler and one for the
underlined text. My editor is based on the Ant plugin, and there's some
code in there to define a custom MarkerAnnotation class, along with an
annotation model. I could just blindly copy the code, but I'd rather
know what I'm doing first.
Thanks!
Laura
|
|
|
Powered by
FUDForum. Page generated in 0.02257 seconds