简体   繁体   English

Open Call Hierarchy无法在Eclipse中找到呼叫者

[英]Open Call Hierarchy fails to find callers in Eclipse

I have a couple of Java projects in Eclipse. 我在Eclipse中有几个Java项目。 I can build the project and also run the application from Eclipse. 我可以构建项目,也可以从Eclipse运行应用程序。 However, when I right click on a method of a class and select "Open Call Hierarchy", I get the "The resource is not on a build path of a Java project." 但是,当我右键单击类的方法并选择“打开调用层次结构”时,会出现“资源不在Java项目的构建路径上”。 error message. 错误信息。 I have all of the src files in the Source tab of the Java Build Path properties window. 我在Java Build Path属性窗口的Source选项卡中具有所有src文件。

Try this, 尝试这个,

  • Calling eclise with eclipse.exe -clean -refresh forces Eclipse to rebuild the index. 使用eclipse.exe -clean -refresh调用eclise会强制Eclipse重建索引。 After that the feature worked again. 之后,该功能再次起作用。
  • Closing and re-opening the project. 关闭并重新打开该项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM