Community
Participate
Working Groups
20020328 String message= "Hello"; System.out.print(<< content assist) only proposes method proposals, but no local variable/field proposals.
*** Bug 13353 has been marked as a duplicate of this bug. ***
If cursor is just after bracket then the correct behaviour is to suggest possible sended messages. In this test case the correct answer is : print(boolean arg0) print(char arg0) ... closed.
It would be nice if as well could propose possible arguments. System.out.print(a<< gives a proposal, so why not also System.out.print(<< please look at bug 13353 to see why I really would like to have this.
Your suggestion is to suppress sended message completion ? Another solution to perform quickfix is to do code assist after the first character.
no, don't suppress the message completion, just give also variableName / field completions (as addition -> more proposals). For the corrections, I only listen to variableName / field completions, and don't mind the message completion proposal. The suggestion to start after the first character is also ok too, but the problem is that then already many proposals are filtered. As normally there are not that many field/variables to choose from, I would like to get them all.
If we suggest message sended completion and name completion then two kind of method completion can be present class X { int method(int i) { method(<cursor>); } } if you do code assist at cursor location then there are two suggested methods. If you select sended message the result should be class X { int method(int i) { method(<cursor>); } } If you select the other the result should be class X { int method(int i) { method(method(<cursor>)); } } The only diffence between this two kind of completion should be the inserted string (nothing or 'method()').
ok, I see, that's a problem. I didn't realize this.
Do you really need this completion ? If no, i close this bug.
you can close it. I might reopen it if I have an idea.