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

Bug 46559

Summary: remember preference in choosing classes when organizing imports
Product: [Eclipse Project] JDT Reporter: Erik Visser <erik.visser>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Erik Visser CLA 2003-11-13 04:27:29 EST
sitation 1:
When you choose to organize imports, you frequently get to choose between a 
number of classes matching the name of a class you used. Specifically with 
java.util.x there are many implementations. For example java.util.List.

It would be nice if you could express to be more interested in the 
java.util.List as opposed to the java.awt.List or a third partie's xx..yy.List.

sitation 2:
You use log4j and every time you enter a Logger, you have to choose between 
java.util.logging.Logger and org.apache.log4j.Logger.
Such choises are usually project wide, and it would be nice if you could 
exclude the class java.util.logging.Logger from being considered at all, and 
just make the import organizer take the right decisison once you have 
instructed it how to do this.

Suggestion:
-> make it possible to remove options from being considered in the organize 
imports menu.
-> order the possible imports by the frequency in which they have been chosen 
before

Sincerely,
Erik Visser
Comment 1 Dirk Baeumer CLA 2003-11-13 16:21:28 EST

*** This bug has been marked as a duplicate of 21194 ***