Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Tutorial on marker annotation hovers
Tutorial on marker annotation hovers [message #195137] Mon, 16 February 2004 03:29
Eclipse UserFriend
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
Previous Topic:SOLEX: Using A Value-Less Parameter
Next Topic:marker hover text
Goto Forum:
  


Current Time: Sat May 10 11:40:32 EDT 2025

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

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

Back to the top