How to : Add mouse hover info to marker and notify location in ruler [message #487470] |
Wed, 23 September 2009 07:23  |
Eclipse User |
|
|
|
Hi,
I am developing a plug-in using eclipse-3.4.2 on WinXP.
The plug-in uses native editor but has its own views.
I have a created a custom marker (with special icon and so on) which works fine.
Now I want its (marker's) location to be shown in the right-side ruler of the java editor in some explicitly mentioned color. Like eclipse shows location of a line with
an error with a red mark /
a warning with a yellow mark.
I also want to provide mouse-hover informations like:
A mouse-hover on the location-indicator on ruler should display line number.
A mouse-hover on the marker icon of a particular line should display a tool-tip-text kind of yellow box with some imp information.
I was told by Paul in irc that I should use AbstractDecoratedTextEditor.
Then realized (after going through help) I'll need to use the extension point org.eclipse.ui.workbench.texteditor.rulerColumns
I didn't find any article / example of usage of that ex point despite of plenty of web-searches.
The question is, how to achieve all the above without having a custom editor and in connection with a marker?
Thanks.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03274 seconds