Community
Participate
Working Groups
Preconditions: There is an overloaded method with many arguments per signature. There is a call to one of them. Now I want to check, if the call is correct and therefore show method signature highlighting. I hit CTRL+Space and a list of method signatures shows up. It is hard to know, which method signature is currently being used, if they're similar. Of course I can place the caret at one of the later parameters and hit CTRL-Space. But if the signatures differ in the last parameter only or my call is incorrect and it doesn't perfectly match, this is difficult. It would be nice, if there was a way to show method signature highlighting (CTRL+Space -> Choose -> Hit Enter), that is currently selected by the compiler by just hitting a hotkey.
I'm not sure I understand your situation: the full method call with all arguments already exists? In that case, I wouldn't think of Ctrl-space, as you don't want to insert new text. What do you mean by "my call is incorrect"? Are you speaking of a compile error, or of an invocation of a different method than you intended? Doesn't the javadoc hover serve your purpose? Or is this about visually associating formal parameter names with arguments, like it is done during completion, after selecting a method and while editing the arguments of the call in "linked mode"?
(In reply to Stephan Herrmann from comment #1) > I'm not sure I understand your situation: Same here.
Yes, the full method call already exists. Yes, it is about linked mode. And yes, I want to visually associate my arguments. Hence javadoc hover doesn't do the trick. By that "incorrect call" thing I was talking about an existing method call, that got compiler wisely incorrect for some reason. Let's say, I inserted a parameter somewhere in the original method. If the IDE is still able to guess a method signature selection, then it can help me with linked mode to check and fix my arguments.
Will this be addressed?
You're looking for Show Parameter Hints (Ctrl+Shift+Space), but that one is still broken for overloaded methods, see bug 70631. *** This bug has been marked as a duplicate of bug 70631 ***
Sorry, no, this is not, what I am looking for. Unfortunately I cannot screenshot this. Let's say, you have a syntactically correct method call. If you place the caret before the first argument, hit CTRL+Space(, select the desired overloaded method variant) and hit Enter, then you get into a mode, where the argument (with type) with the caret on it is highlighted. I want to get into this mode. I think, this is not exactly linked mode, but something similar. If you're browsing a read-only class (binary view), you cannot start this mode, because eclipse assumes, you want to start editing, which might not be true. If the method call is wrong and cannot be compiled for what ever reason, eclipse still tries to do a best match and could still allow to start this mode for debugging reasons. I hope, this explains better, what I am looking for. Please remove the "duplicate of" for 70631. This is not true.
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. -- The automated Eclipse Genie.
As of today, I believe bug 529011 is the most suitable answer to this. *** This bug has been marked as a duplicate of bug 529011 ***