| Summary: | [hovering] Hover: loosing regular information when hovering over a warning | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Maxime Daniel <maxime_daniel> |
| Component: | Text | Assignee: | JDT-Text-Inbox <jdt-text-inbox> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | 3.1.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
You can configure to only show the Javadoc hover and/or define a modifier for the Javadoc hover, see Window > Preferences > Java > Editor > Hovering. There are no plans to combine them into one hover. (In reply to comment #1) Thanks a lot. Could get what I wanted. Note: I found the explanation for 'Combined Hover' quite confusing (which 'above table' is this refering to?), but I simply unticked it. Tidying. |
Using M20060109-1200 (aka 3.1.2 RC1). It is disappointing to loose the regular hover information when facing a warning. For example, in the following code with compliance 1.5, the line (1) shows a warning which reads: Type safety: The method put(Object, Object) belongs to the raw type Map. References to generic type Map<K,V> should be parameterized import java.util.HashMap; import java.util.Map; public class X { Map map = new HashMap(); Integer i = new Integer(0); (2) String iAsString = "0"; void foo() { this.map.put(i, iAsString); // (1) } } Now, if I put the mouse over i on line (1), I'd like to have the same information as I get when I do it on line (2), because this would speed up the determination of the right type parameters to use for my Map (here, Map<Integer, String>). In other words, I wish the hover would still provide the regular information when on code that is marked with a warning (or an error). Not sure how this could be done (add the information?). Also, there are probably strong supporters of getting the error message (especially if multiple errors occur on the same line). Which would call for a mean of showing both information bits.