Community
Participate
Working Groups
Would it be possible to add a refactoring (or equivalent) to find all fully qualified type references, remove the qualification and add the relevant import statement?
A good candidate for the cleanup action. Should also be offered the other way around: Fully qualify all type references List l= new Vector() -> java.util.List l= new java.util.Vector();
Can we expect to see this in 3.2 (it's not in M5 as far as I can see). Thanks!
Sorry - just saw you'd already updated the milestone to M6.
Created attachment 36998 [details] poposed fix
Sorry, I've tried, but not enough time/too many bugs...
I would be very glad to see this coming to JDT as a Clean Up action! I inherited a code base full of FQNs...
*** Bug 318612 has been marked as a duplicate of this bug. ***
*** Bug 61567 has been marked as a duplicate of this bug. ***
*** Bug 374449 has been marked as a duplicate of this bug. ***
That would be a super feature, when using a code generator the code could be generated always using the fully qualified names to avoid conflicts and the cleanup could than be used as post processing step in order to beautify the code.
In the meantime, here's a plugin offering this functionality called Clean Qualified Types Plugin (CQTP): http://blog.mi-ernst.de/projekte/
*** Bug 422001 has been marked as a duplicate of this bug. ***
Unnecessary _static_ warnings deserve a compiler warning I think - see discussion : https://bugs.eclipse.org/bugs/show_bug.cgi?id=421969#c1