Bug 245885 - [misc] Hide method type parameters in hovers when completely bound
Summary: [misc] Hide method type parameters in hovers when completely bound
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-01 10:47 EDT by Tom Hofmann CLA
Modified: 2008-09-02 02:59 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 Tom Hofmann CLA 2008-09-01 10:47:18 EDT
Eclipse 3.4

When hovering over a method invocation of a generic method, the hover informs me about the formal type parameters of the method and the capture of the type params in the current invocation context. I often find that information superfluous and confusing, especially if all type parameters are bound to a concrete type. I would prefere hiding that information in that latter case.

Example:
- have the code below, with Java5/generics enabled
- hover over the invocation of Collections::min

------- Try.java ----------
class Try {
	void method(List<Integer> numbers) {
		Collections.min(numbers);
		Collections.unmodifiableList(numbers);
	}
}
---------------------------

> the hovers says: 
"<Integer> Integer java.util.Collections.min(Collection<? extends Integer> coll)"

< I would prefer:
"Integer [java.util.]Collections.min(Collection<? extends Integer> coll)"

- I guess rendering the package qualification in a lighter color (grey) (if not removing it) would also help to avoid distraction.