移动包食 [英] Moving packages eclipse
本文介绍了移动包食的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
也许是一个愚蠢的问题,但是我在月食中有两个软件包,现在我想将一个软件包移到另一个软件包中,以获得更好的结构。
Maybe a stupid question but I have two packages in eclipse and now I would like to move the one package into the other for better structure.
现在我尝试移动
通过重构->移动,我什至无法选择软件包
And with refactoring -> move I even can't select the packages
有人可以帮助我吗?...
Can anyone help me....
全部全部
推荐答案
如果您有 com.company.foo
和 com.company.bar
,并且想移动 foo
放入 bar
,然后重命名 com.company.foo
到 com.company.bar.foo
。
If you have com.company.foo
and com.company.bar
, and want to move foo
into bar
, then just rename com.company.foo
to com.company.bar.foo
.
如果您的软件包碰巧有子软件包,请勾选重命名子包
也可以移动子包。
If you package happens to have subpackages, tick Rename subpackages
to move the subpackages as well.
这篇关于移动包食的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文