Bug 249014

Summary: [hovering] show default value for annotation type member reference in Javadoc hover
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, david_audel
Version: 3.5Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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.