Bug 24714 - Better code assist for typing parameters to methods...
Summary: Better code assist for typing parameters to methods...
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-11 14:53 EDT by Tom Mutdosch CLA
Modified: 2003-03-23 12:31 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Mutdosch CLA 2002-10-11 14:53:36 EDT
There should be smarter code assist when specifying parameters to methods:

Say I have a method:
void foo( String str );

And in some other code, I type
String bar = "BAR";
foo( b<CODE-ASSIST>

I would expect to see the most likely matched local variable 'bar' offered
first, perhaps followed by any possible matching global field variable. 
Currently, I see classes listed first such as BackAction and
BackingStoreException.  While I suppose it is possible to reference a static
class method (something like BarClass.getInstance().getString()), I think that
is less probable and would expect the classes to be listed farther down the list.

This is just something that I think would make code assist so much more
efficient and powerful, as many things could be specified with just the first
letter and then you hit code assist; if it has this type of intelligent sorting,
most of the matches will be the first one there.
Comment 1 Tom Mutdosch CLA 2002-10-13 01:47:27 EDT
No, I'm just dumb.  I see that there is a preference to toggle the code assist
matches in alphabetical order.