Bug 41320 - [misc] Automatically remove unused imports on save
Summary: [misc] Automatically remove unused imports on save
Status: RESOLVED DUPLICATE of bug 6749
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement with 3 votes (vote)
Target Milestone: 3.3 M3   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-08 06:34 EDT by Channing Walton CLA
Modified: 2006-10-26 12:20 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Channing Walton CLA 2003-08-08 06:34:14 EDT
I keep removing unused imports - it would be useful to have an option to have this done automatically 
on save.

Channing
Comment 1 Sebastian Davids CLA 2004-01-08 11:42:52 EST
dup of bug 6749
Comment 2 Dani Megert CLA 2004-01-11 04:15:58 EST
Not a duplicate but rather a subset of the things listed in bug 6749.
Comment 3 Dan Allen CLA 2005-06-09 13:02:07 EDT
Could anyone attach some hints of where one would hook a plugin to satisify this
bug?  Just pointing us in the right direction might lead to some contributions
here.  I really want to see auto organizing of imports on save.
Comment 4 Dani Megert CLA 2005-06-13 09:19:45 EDT
Hooking stuff into the save operation affects many areas and introduces several
problems that need to be handled/solved, e.g.:
- correct operation together with team providers
- local file history
- undo/redo history
- the modified code might introduce errors or corrupt the code
- modifying the code might fail (exception)
...
Comment 5 Dani Megert CLA 2006-10-26 12:20:54 EDT

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