views:

175

answers:

2

Is anyone aware of an eclipse plugin that updates the tooltip on hover over a method/class to include annotation information?

There a few libraries we are using that have annotated methods and it would be handy if I could hover over the method and see what has been applied. I realize this would only work with annotations that have been retained but that is good enough.

+3  A: 

I ma not aware of any current plugin, but the upcoming Eclipse Helios will include a similar feature:
Since Eclipse 3.6 M7 - New and Noteworthy (April 30, 2010):

Javadoc hovers include annotation

Javadoc hovers now include annotations:

alt text

Javadoc hovers render {@value}

Javadoc hovers now render {@value} inlined:

alt text

VonC
This is exactly what I wanted. Thank you.
reccles
A: 

My eMoose tool does something similar with specific tags that are embedded in the JavaDoc of a method or in comments of the method, as a way of drawing attention to these details.

I was going to add similar support with annotations but was told that this feature was coming at some point in the next Eclipse.

If you can't make the transition to the next Eclipse version milestones, I'd be happy to share my source code so you can easily build a plugin with that feature.

Uri