Bug 249014 - [hovering] show default value for annotation type member reference in Javadoc hover
Summary: [hovering] show default value for annotation type member reference in Javadoc...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2008-09-29 14:57 EDT by Markus Keller CLA
Modified: 2014-01-07 11:26 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2008-09-29 14:57:29 EDT
I20080923-0800

Content Assist could show the default value for annotation type member references, or just indicate which members have a default.

E.g. when I do content assist in the argument list of "@Generated()", it would be interesting to see which members are required.
Comment 1 Dani Megert CLA 2008-09-30 02:08:19 EDT
David, could this be provided by JDT Core?
Comment 2 Dani Megert CLA 2008-09-30 05:02:01 EDT
Discussed with David. Would better fit into JDT Core land.
Comment 3 Markus Keller CLA 2014-01-07 11:26:08 EST
Core infrastructure is available now. In BETA_JAVA8, we already decorate an annotation method element with a "D" if a default value is defined.

What's missing is the rendering of the default value (IMethod#getDefaultValue()) in the Javadoc hover (similar to what javadoc.exe does).

javax.xml.bind.annotation.XmlType has more interesting defaults.