Bug 12617 - code assist: Proposals inside method parameters
Summary: code assist: Proposals inside method parameters
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: 2.0 M5   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 13353 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-04-02 10:31 EST by Martin Aeschlimann CLA
Modified: 2002-04-11 09:14 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 Martin Aeschlimann CLA 2002-04-02 10:31:48 EST
20020328
String message= "Hello";
System.out.print(<< content assist)

only proposes method proposals, but no local variable/field proposals.
Comment 1 Martin Aeschlimann CLA 2002-04-10 12:02:34 EDT
*** Bug 13353 has been marked as a duplicate of this bug. ***
Comment 2 David Audel CLA 2002-04-11 04:06:58 EDT
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.

Comment 3 Martin Aeschlimann CLA 2002-04-11 04:57:08 EDT
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.
Comment 4 David Audel CLA 2002-04-11 06:09:34 EDT
Your suggestion is to suppress sended message completion ?

Another solution to perform quickfix is to do code assist after the first 
character.



Comment 5 Martin Aeschlimann CLA 2002-04-11 06:47:11 EDT
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.
Comment 6 David Audel CLA 2002-04-11 07:32:45 EDT
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()'). 
Comment 7 Martin Aeschlimann CLA 2002-04-11 07:52:46 EDT
ok, I see, that's a problem. I didn't realize this.

Comment 8 David Audel CLA 2002-04-11 08:58:56 EDT
Do you really need this completion ?
If no, i close this bug.
Comment 9 Martin Aeschlimann CLA 2002-04-11 09:14:11 EDT
you can close it. I might reopen it if I have an idea.