On a generated project i 100s of warnings caused by unused imports and the like. Can i bulk cleanup those imports for all files?
+11
A:
In package explorer right click on the root package of your project and choose source -> organize imports
Luno
2009-11-21 12:22:50
Or select the classes and or packages you want to fix in the package explorer and organise their imports like described.
rsp
2009-11-21 12:33:30
+1
A:
After you have gotten rid of your import warnings, consider turning on Save Actions for Java Editors in preferences. We do the suggested source cleaning, plus we format the source. Makes it much easier to see exactly when a change was introduced later.
Thorbjørn Ravn Andersen
2009-11-21 15:00:13