Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 515599

Summary: List of suggested classes when importing should sort standard library to the top
Product: [Eclipse Project] JDT Reporter: Kevin Tran <balderdash23>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 4.5.1   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard: stalebug
Attachments:
Description Flags
Screenshot demonstrating the issue none

Description Kevin Tran CLA 2017-04-21 15:04:27 EDT
Created attachment 267915 [details]
Screenshot demonstrating the issue

When using the keyboard combination [Cmd][Shift][M] to import classes, the dialog box is sorted in absolute alphabetical order.  This is obnoxious because it results in the default suggestions for basic API classes not being the first example in the list, and the problem gets worse the more libraries you have installed.

If a class with the specified name exists in the java.*/javax.* namespaces, it should be the default suggestion.  Third-party classes with the same name should be lower in the list.
Comment 1 Eclipse Genie CLA 2020-03-19 14:23:20 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.