This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 95969 - Fix imports does not remove imports
Summary: Fix imports does not remove imports
Status: RESOLVED DUPLICATE of bug 85764
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: Other Windows XP
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-19 20:43 UTC by tkellerer
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tkellerer 2007-02-19 20:43:11 UTC
In 5.5 "Fix imports" used to not only add missing but also remove unused imports. 

With 6.0 this does not happen anymore. As a matter of fact, removing not unused
imports is a lot more complicated than before. 

First you have to scroll to the top of the file (or it's done automatically by
clicking on the orange stripe in the right status bar) 

Then you have to select one of the light bulbs that appear

Then you have to select whether you want to remove only "this" unused import or
all unused imports

A lot of clicking for something that used to happen automatically when doing
"Fix imports"
Comment 1 Jan Lahoda 2007-02-19 20:51:58 UTC
Already filled as issue #85764, thanks for the report.

*** This issue has been marked as a duplicate of 85764 ***