Bug 24714

Summary: Better code assist for typing parameters to methods...
Product: [Eclipse Project] JDT Reporter: Tom Mutdosch <mutdosch>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.