Conveniently move a class to a different package in eclipse without borking svn

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前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏