Bug 23299

Summary: Enhance Code completion
Product: [Eclipse Project] JDT Reporter: Sam <scheung>
Component: CoreAssignee: David Audel <david_audel>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.0.1   
Target Milestone: 2.1 M5   
Hardware: All   
OS: All   
Whiteboard:

Description Sam CLA 2002-09-08 02:17:18 EDT
Enhance the following code completion?

In a method of a class, I type

private void aMethod() {
    String aStr = <code complete here (i.e. CTRL-SPACE)>

the code complete will list out all the methods which return String and are
assessible by the current scope,
and will list out constructors of the class String as well?

Thank you.
Comment 1 Philipe Mulet CLA 2002-09-16 05:08:08 EDT
Constructors are only proposed behind the new keyword.

We are currently working on improving the sorting of the matches based on type 
expectation. 
Comment 2 David Audel CLA 2003-01-22 11:01:35 EST
Currently the proposals are all methods. But the methods which return String 
are on the top of the list.

String s = new <cursor>
If you do ctrl+space then type String is the first proposal.
Comment 3 David Audel CLA 2003-01-22 11:03:26 EST
Closing.