Bug 293582 - [content assist] Content assist (Ctrl-Space) proposal popup too small window without highlighting
Summary: [content assist] Content assist (Ctrl-Space) proposal popup too small window ...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-28 11:31 EDT by Lysathor CLA
Modified: 2009-10-30 06:42 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.