I'm updating a ton of code from hibernate 3.x up to 4.0 and need to do a ton of batch search/replace operations.
Doing a batch search/replace is easy, I use Replace in Path, and then click on All Files when the replace dialog comes up.
The problem I run into is that the newly inserted java code doesn't work correctly without an import, and the old import for the deleted code isn't removed. Normally I never edit import statements directly, I let the editor take care of that for me. In this case, if I perform the replace in an open file, and wait a second, the editor fixes up the imports for me and I can keep going. But in the batch case the files are never opened in an editor (as far as I can tell) and the import changes aren't made. So later on I get a compile error, I open the files in the editor, wait a second for the fix to take place, and then save the buffer.
It would be great if the Replace operation did this for me, even better if it made it all part of a single undo-able operation in case I want to back out my change.