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.
In case you add some new Tree via the TreeMaker imports are resolved automatically. It would be great if the same would work for removing Trees so unused imports would be thrown away on commit. Of course the best would be an automatic support. But API for the Fix Import action would be welcome too.
It is up to next discussion if it is should be automatic or not. -- I vote for non-automatic (i.e. for API call). But definitely should be somehow supported.
Not sure, but perhaps we could use parts of existing implementation in hints, adding Honza to cc.
moving opened issues from TM <= 6.1 to TM=Dev
No votes, 5 years old; I am not saying the automatic import removal is not a valid feature, but I am not sure it should be on each code change.
FWIW, we also have "remove unused imports on save" for some time now.