0

I changed the location of a object classes that my class in question relies on.

Now many references to other objects are broken

Is there an automated way for it to add those classes back without my right clicking on every object reference and choosing what the correct coarse of action should be (which is always Import this shockingly matching class)

4

1 回答 1

1

是的,有一种方法:

  • 项目浏览器中选择所有相关项目>>右键单击>>源>>组织导入。

或者

  • 项目浏览器中选择所有相关项目>> CTRL + SHIFT + O

下次你想移动一个类并自动移动所有引用时,请选择类(右键单击类名)并选择Refactor菜单项 >> Move..选项。

于 2013-06-14T02:06:57.850 回答