方便地将类移动到eclipse中的一个不同的包,而不用borking svn [英] Conveniently move a class to a different package in eclipse without borking svn
问题描述
将文件从 old.package移动到new.package
时,我想要两件事情发生:
When moving a file from old.package to new.package
I want two things to happen:
- 更新对该类的所有引用(在项目的所有文件中),以便使用新软件包
-
svn move old / package /Foo.java new / package / Foo.java
- Update all references to that class (in all files of the project) so that the new package is used
svn move old/package/Foo.java new/package/Foo.java
我在Eclipse Ganymede中使用颠覆。当我将文件从一个包拖动到另一个包时,所有引用都将被更新,文件将在文件系统上移动。但是SVN并不知道这一点,因此 svn move old / package / foo.java new / package / Foo.java
命令无效(显然)当 old / package / Foo.java
不存在(因为eclipse已经移动了)。
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).
有没有办法有日食这是重构,但使用svn将文件移动到文件系统?我希望我只是缺少一些明显的东西: - )
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 :-)
推荐答案
我使用 Subclipse ,它 支持在包之间移动文件
I use Subclipse and it does support moving files between packages
这篇关于方便地将类移动到eclipse中的一个不同的包,而不用borking svn的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!