Bug 44102

Summary: [clean up][organize imports] organize imports should optionally remove FQNs
Product: [Eclipse Project] JDT Reporter: Alvin Thompson <alvin>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P4 CC: daniel_megert, markus.kell.r, stas
Version: 3.0Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Alvin Thompson CLA 2003-10-02 16:06:42 EDT
it would be nice if the 'Organize Imports' options also had the setting 'Add
import for fully-qualified name'. it would take an number, and if a fqn repeated
more than that many times in a file, an import would be added and the fqn
replaced with the short name.

thanks,
alvin
Comment 1 Olivier Thomann CLA 2003-10-02 16:08:59 EDT
Move to JDT/UI.
Comment 2 Martin Aeschlimann CLA 2003-10-06 09:39:55 EDT
To replace a qualified type by a import statement and the simple type name you
can currently use 'Add Import (CTRL + Chift + M) on the type's reference'.

I guess you wanted something that does it on the whole file. We don't plan to
add this feature to organize import, I think it would more be a refactoring as
the user should be asked which references are ok to simplify.
Comment 3 Alvin Thompson CLA 2003-10-06 10:40:50 EDT
how can i transfer the rfe to the appropriate refactoring people?
Comment 4 Dirk Baeumer CLA 2003-10-06 16:54:18 EDT
Time permitted. This is an excellent thrid party opportunity. Marked as help 
wanted.
Comment 5 Alvin Thompson CLA 2005-08-02 12:15:10 EDT
can i reopen? it's later. :)
Comment 6 Dirk Baeumer CLA 2005-08-02 13:00:47 EDT
No. Later means that we accept this as a valid request, but are not activly
working on it. Reopening will not change this ;-).

As said this is an excellent third party opportunity. Are you interested in
contributing this?
Comment 7 Alvin Thompson CLA 2005-08-02 13:31:05 EDT
me? not if you want it to work right. :)
Comment 8 Denis Roy CLA 2009-08-30 02:22:53 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.
Comment 9 Dani Megert CLA 2013-12-04 04:38:44 EST
.
Comment 10 Markus Keller CLA 2013-12-09 11:18:07 EST
See also bug 112999.