Bug 44102 - [clean up][organize imports] organize imports should optionally remove FQNs
Summary: [clean up][organize imports] organize imports should optionally remove FQNs
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC All
: P4 enhancement with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2003-10-02 16:06 EDT by Alvin Thompson CLA
Modified: 2013-12-09 11:18 EST (History)
3 users (show)

See Also:


Attachments

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