Bug 243890 - [misc] Should show javadoc when cursor is in arguments
Summary: [misc] Should show javadoc when cursor is in arguments
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.3.2   Edit
Hardware: PC Linux
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-12 10:57 EDT by Evan Hughes CLA
Modified: 2008-08-12 11:50 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evan Hughes CLA 2008-08-12 10:57:48 EDT
Build ID: 20080221-1602

Steps To Reproduce:
It would be handy if the javadoc view showed the javadoc for the current method call when the cursor was in the argument list. eg, 

System.arraycopy(params, 0, target, 0, target.length);
a------b---------c-----d----------------------------- 

When the cursor is in:
a - Show javadoc for System (if present) (Current behaviour)
b - Show javadoc for System.arraycopy() (Current behaviour)
c - Show javadoc for params, assuming that params is a field (current behaviour)
d - REQUESTED BEHAVIOUR: show javadoc for System.arraycopy() - assuming that target is inappropriate for javadoc.

[d] is my request: if the arguments aren't appropriate for javadoc, then show the javadoc for the method call. 


Reasoning: The javadoc view seems to be the only way to add text while seeing the javadoc for some method. It's annoying that I can't see the javadoc for arguments when I'm typing them. 

Bonus points: The javadoc view should highlight the current @param when I'm modifying that parameter. =)
Comment 1 Dani Megert CLA 2008-08-12 11:50:32 EDT
Good idea. To solve this we need to query the AST for the calling method.

Hint: Ctrl+Shift+Space will at least give you the parameter name.