Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Adding text hover to markers
Adding text hover to markers [message #64239] Sun, 07 June 2009 16:39 Go to next message
No real name is currently offline No real nameFriend
Messages: 6
Registered: July 2009
Junior Member
Hi,

I want to add text hover to problem markers created with
IFile.createMarker(), but I can't find any documentation on how this is
done. The only thing I have found others with the same question like this:
http://dev.eclipse.org/newslists/news.eclipse.platform/msg70 933.html

Is there a standard way to add text hover to a problem markers?

- Øystein
Re: Adding text hover to markers [message #64860 is a reply to message #64239] Sun, 14 June 2009 18:30 Go to previous message
No real name is currently offline No real nameFriend
Messages: 6
Registered: July 2009
Junior Member
Since others seemed to be confused by the same issue here is the solution
that I found.

To get annotation hover text for problem markers just add the following
method to your SourceViewerConfiguration sub class:

public IAnnotationHover getAnnotationHover( ISourceViewer sourceViewer ){

//defining this is necessary for getting hover messages on markers.
return new DefaultAnnotationHover();
}

The DefaultAnnotationHover class takes care of the rest.
Re: Adding text hover to markers [message #598313 is a reply to message #64239] Sun, 14 June 2009 18:30 Go to previous message
No real name is currently offline No real nameFriend
Messages: 6
Registered: July 2009
Junior Member
Since others seemed to be confused by the same issue here is the solution
that I found.

To get annotation hover text for problem markers just add the following
method to your SourceViewerConfiguration sub class:

public IAnnotationHover getAnnotationHover( ISourceViewer sourceViewer ){

//defining this is necessary for getting hover messages on markers.
return new DefaultAnnotationHover();
}

The DefaultAnnotationHover class takes care of the rest.
Previous Topic:p2-enabled PDE build: features vs. plugins
Next Topic:PDE build error
Goto Forum:
  


Current Time: Wed Jun 16 12:02:00 GMT 2021

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

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

Back to the top