Summary: | [hovering] ToolTip showing name of parameter under mouse | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | F. Schelling <fs> |
Component: | Text | Assignee: | Platform-Text-Inbox <platform-text-inbox> |
Status: | ASSIGNED --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P5 | ||
Version: | 3.0 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
F. Schelling
2004-11-15 05:30:47 EST
simply hover over the method which you call. The existing functionality is not what I meant. What I meant is that the described tooltip should help you in identifying single, specific arguments while reading a long argument list and making sure that every argument is sitting in the right place within the argument list (very important for methods with many parameters of the same type.) Imagine the following situation: There is a method with, let's say, six parameters, and let's say that you even know all the parameters by heart because you use that method very often. Now image that you have to read code with a lot of calls to that method. Every call contains those six arguments, but the call is not as simple as "foo(a, b, c, d, e, f)" but instead every single argument is at least 10 or 20 characters long or some even more. Some of the arguments even include other method calls, so just quickly counting the commas does not work well when you e.g. want to know what is passed as argument number 4. With the enhancement proposed, you just would place the mouse pointer over a specific part of the call and instantly see that exactly the part "..., foo(foo2(2, 4) + 3 * foo3(4, 6)), ..." will be passed as argument "int xyz", since (1) the argument is bracketed by a box (much the same appearance like when typing in string constants) and (2) you see the name and type of the parameter the argument is passed to, so you can be sure that the argument sits in the right place within the argument list. Try Ctrl+Shift+Space. There are currently no plans to provide such a tool tip. Note that there's an extension point which allows you to contribute this yourself, see: org.eclipse.jdt.ui.javaEditorTextHovers Get rid of deprecated state. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. |