Bug 570594 - Help suggestions for java import should be listed in useful order
Summary: Help suggestions for java import should be listed in useful order
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.18   Edit
Hardware: Macintosh Mac OS X
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-23 14:34 EST by Mark Lilback CLA
Modified: 2021-01-23 15:17 EST (History)
1 user (show)

See Also:


Attachments
visual (27.02 KB, image/png)
2021-01-23 15:16 EST, Wim Jongman CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Lilback CLA 2021-01-23 14:34:40 EST
When hovering over an unknown class name, Eclipse offers a list of classes matching that name. When this happens to java.util.list, the correct answer is the third choice. It would make more sense if com.sun.* suggestions never appear before java.* suggestions. 

I would also imagine 99.9+% of the time suggestions for List appear, the user is not referring to java.awt.List. Prioritizing the list by use (or at least the most popular appearing first) would be much more helpful. If I've imported java.util.list 100's of times, it really should be the first suggesting to import.
Comment 1 Wim Jongman CLA 2021-01-23 15:16:56 EST
Created attachment 285373 [details]
visual

As a workaround, you can add the types you don't want to see to the "type filter". See attachments.