Search code examples
javaeclipseeclipse-pluginannotations

Java Annotations in eclipse Tooltip?


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.


Solution

  • 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:

    http://archive.eclipse.org/eclipse/downloads/drops/R-3.6-201006080911/images/annotations-in-javadoc.png

    Javadoc hovers render {@value}

    Javadoc hovers now render {@value} inlined:

    http://archive.eclipse.org/eclipse/downloads/drops/R-3.6-201006080911/images/value-in-javadoc.png