Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 43082 - [quick assist] provide "replace fully qualified with import" quick assist
Summary: [quick assist] provide "replace fully qualified with import" quick assist
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-15 07:52 EDT by Ilja Preuss CLA
Modified: 2016-07-04 14: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 Ilja Preuss CLA 2003-09-15 07:52:00 EDT
Should be available on fully qualified class identifiers and remove the package 
qualifiers, as well as inserting the proper import, if not already available.
Comment 1 Martin Aeschlimann CLA 2003-10-06 14:57:03 EDT
You know that you can press CTRL + Shift + M (add import) on a qualified type 
reference to do that?
Comment 2 Ilja Preuss CLA 2003-10-07 11:10:20 EDT
No, I didn't know. Thanks! :)
Comment 3 Martin Aeschlimann CLA 2004-05-07 12:05:27 EDT
CTRL + Shift + M does the trick
Comment 4 Martin Aeschlimann CLA 2007-11-12 07:04:24 EST
*** Bug 209467 has been marked as a duplicate of this bug. ***
Comment 5 Michael Vorburger CLA 2016-07-04 14:23:31 EDT
Just in case anyone finds this page by Googling looking for a tool to do this in bulk, note http://blog.mi-ernst.de/projekte/ .. (I've NO IDEA if that still works, just stumbled upon this; and using CTRL + Shift + M is good enough for me.)

PS: Apparently PMD may be able to detect "Unnecessary fully qualified name" (UnnecessaryFullyQualifiedName), somehow.  So may Checkstyle in the future, see https://github.com/sevntu-checkstyle/sevntu.checkstyle/issues/462.