Bug 293582

Summary: [content assist] Content assist (Ctrl-Space) proposal popup too small window without highlighting
Product: [Eclipse Project] JDT Reporter: Lysathor <lysathor>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P5 CC: daniel_megert
Version: 3.5   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Lysathor CLA 2009-10-28 11:31:37 EDT
Example: Let's have a class with overloaded (static) methods, say "doIt". For example

void doIt(int a, String b, String b2, String b3, String b4, Color c) {...}
void doIt(int a, String b, String b2, String b3, String b4, Content cn, Color c) {...}

and calling code

Test.doIt(1,"Hi",new Color());

Assume editing the calling code. 
If you press Ctrl-Space inside the bracket area, I expected:
(1) that a popup is displayed (works)
(2) that it displays all overloaded methods "doIt" (works)
(3) that this popup highlights the current used method (does not work)
(4) that the popup is of sufficient size to see the relevant difference between the methods (does not work, the popup is to narrow)

It seems that if only one method is suitable, a different popup (tool tip) is displayed in a manner that is also used for the popup window mentioned above.


-- Configuration Details --
Product: Eclipse 1.2.1.20090812-1036 (org.eclipse.epp.package.java.product)
Installed Features:
 org.eclipse.jdt 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ
Comment 1 Lysathor CLA 2009-10-28 17:05:22 EDT
Sorry, the example was not ok. Here is a better one:

public class Tester
{
  void doIt(int a, String b, String b2, String b3, String b4, Color c)
  {
  }

  void doIt(int a, String b, String b2, String b3, String b4,
      ChangeListener cn, Color c)
  {
  }

  void test()
  {
    doIt(1, "1", "2", "3", "4", new Color(1, 2, 3));
  }
}

If you put the cursor on the "new Color(1,2,3)" and press Ctrl-Space, you can see what I desribed.

By the way, another bug appeared: In the popup there are four (4) methods listed not only two (2). Two are duplicates of course. I'm not sure if this always happens.