When moving a file from `old.package to new.package` I want two things to happen:
1. Update all references to that class (in all files of the project) so that the new package is used
2. `svn move old/package/Foo.java new/package/Foo.java`
I use subversive within Eclipse Ganymede. When I just drag the file from one package to the other, all references get updated and the file is moved around on the filesystem. But SVN is unaware of this and therefore the `svn move old/package/foo.java new/package/Foo.java` command does not work (obviously) when `old/package/Foo.java` does not exist (because eclipse has moved it already).
Is there a way to have eclipse do it's refactoring but using svn to move the file on the filesystem? I hope I'm just missing something obvious :-) The clearcase plugin for Eclipse (CCRC) does attempt to do this, it moves the files in ClearCase as well as changes the references. It does get it wrong sometimes but it usually works.
以上就是Conveniently move a class to a different package in eclipse without borking svn的详细内容，更多请关注web前端其它相关文章！