Bug 381626 - [compare] Saving a java file in Compare Editor when organized imports is checked in preferences, doesnt actually remove unused imports
Summary: [compare] Saving a java file in Compare Editor when organized imports is chec...
Status: CLOSED DUPLICATE of bug 385996
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.8   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-04 15:05 EDT by vignesh prabhu CLA
Modified: 2012-07-27 01:58 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 vignesh prabhu CLA 2012-06-04 15:05:10 EDT
Build Identifier: 20120216-1857

When verifying all my files that are going to be checked in using SVN
synchronize using Compare editor, I usually remove a block of code which I feel is not appropriate to check in. When I remove this block of code, there are some unused imports in the class. I always check the "unused imports" option in Save actions to remove imports which are not being used in my code. However in this Compare editor mode, the imports are not removed when I save the class after modifying it and removing some unwanted code. I have to manually delete the imports.

Reproducible: Always

Steps to Reproduce:
1.Check Organize Imports in Save Actions in your preferences.
2.Now open two versions of file in a Compare Editor
3.In the local version, remove a block of code so that there is some unused imports.
4.As per the preference, These imports should also be removed when the local class file is saved.
5. However this does not happen and user has to manually remove the unused imports.
Comment 1 Dani Megert CLA 2012-06-05 02:25:16 EDT

*** This bug has been marked as a duplicate of bug 253184 ***
Comment 2 Dani Megert CLA 2012-07-27 01:58:00 EDT

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