Bug 25304 - Code assist and parameter assistance
Summary: Code assist and parameter assistance
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 2.1 M3   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-24 09:11 EDT by Brett Kotch CLA
Modified: 2002-11-12 09:03 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 Brett Kotch CLA 2002-10-24 09:11:42 EDT
In the follow code ... 

HelloWorld helloWorld = new HelloWorld();

ArrayList arrayList = new ArrayList();

int key = 0;

Object value;

arrayList.add(key,



Hitting contrl space after the "," should provide a list of objects
that could fill that parameter. In this case it would fill in value, followed 
by the right paren since there is no other parameters left.
Comment 1 Philipe Mulet CLA 2002-10-24 18:13:04 EDT
This is currently being worked on, and should be available in latest 
integration build (I20021023).

Ok to close ?
Comment 2 Philipe Mulet CLA 2002-10-25 05:19:06 EDT
Brett confirmed that he also did not see it working with latest integration 
build.

David - please investigate.
Comment 3 David Audel CLA 2002-11-05 05:53:11 EST
If codeassist is performed after the "," inside a method invocation then 
proposals are the possible methods invocation and not argument completion. In 
the following exemple the proposal is "foo(String s, Object o)".

public class X {
  void foo(int i, Object o){}
  void foo(String s, Object o){}
  void bar(){
    int var1;
    Object var2;
    foo("",<cursor>
  }
}

If you want argument completion, you must type the first character. In this 
case the first proposal is "var2".
public class X {
  void foo(int i, Object o){}
  void foo(String s, Object o){}
  void bar(){
    int var1;
    Object var2;
    foo("",v<cursor>
  }
}
Comment 4 David Audel CLA 2002-11-12 09:03:28 EST
Works as design.

Closing.