Bug 308281 - Auto-Import Ordering Preferences should be added
Summary: Auto-Import Ordering Preferences should be added
Status: CLOSED DUPLICATE of bug 48736
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5.2   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-06 22:23 EDT by Jason CLA
Modified: 2010-04-07 07:23 EDT (History)
2 users (show)

See Also:


Attachments

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