Bug 308281

Summary: Auto-Import Ordering Preferences should be added
Product: [Eclipse Project] JDT Reporter: Jason <mirraj2>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: markus.kell.r, remy.suen
Version: 3.5.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Jason CLA 2010-04-06 22:23:31 EDT
Build Identifier: 20100218-1602

You should be able to choose an ordering for any import.  Lets say that 99% of the time, I want to use java.util.List, and 1% of the time I want to use java.awt.List.  If I type in "List", it should auto-import to java.util.List.  

Right now, my workaround for not having this feature is using Type Filters, but this is not a very satisfactory answer.

Reproducible: Always

Steps to Reproduce:
1. Everything explained in the description
2.
3.
Comment 1 Remy Suen CLA 2010-04-07 06:04:49 EDT
The Platform/IDE bucket is for generic IDE-related things provided by the Eclipse platform (like the 'Problems' view). This is a request for JDT, the Java tooling.
Comment 2 Markus Keller CLA 2010-04-07 06:49:25 EDT

*** This bug has been marked as a duplicate of bug 48736 ***
Comment 3 Markus Keller CLA 2010-04-07 07:23:14 EDT
Note that we already use a history in Content Assist and Organize Imports: After you've chosen "java.util.List" once, it will always be in first position when you try to add an import for "List".