tags:

views:

83

answers:

1

Does someone know a plugin for Eclipse that replaces fully qualified Java class names with the simple one and the corresponding import where possible? It would be even better if it could be performed as a Save Action.

+3  A: 

No. But you can use Ctrl-Shift-M on each fully qualified identifier to convert it to an import + a short name.

Thorbjørn Ravn Andersen
+1 - I didn't know that!
Stephen C
+1 - I didn't either. But that's a one by one method. I would like to do it for whole source file(s) and at save if possible.
thSoft
I asked last year about doing this with static imports and received no positive answers: http://stackoverflow.com/questions/824011/a-simple-way-to-create-static-imports-for-constants-in-existing-code
Thorbjørn Ravn Andersen