[英]Searching for references within project in Eclipse brings .class files instead of .java file
I'm use eclipse for developing projects. 我使用eclipse开发项目。 This on is head scratching.
这是令人头疼的问题。 When looking for references of say an object withing the same project(using the menu search>> references >>project) eclipse brings the references in the .class file instead of the .java files.
当查找具有相同项目的对象的引用时(使用菜单搜索>> references >> project),eclipse将引用.class文件而不是.java文件。 If I delete the .class files then it finds the references in the .java files.
如果我删除了.class文件,那么它会在.java文件中找到引用。 I would like eclipse to bring the .java files from the beginning as .class files are no use to me.
我希望eclipse从一开始就带来.java文件,因为.class文件对我没用。
Is there a setting somewhere that could address this issue? 是否有某个地方可以解决这个问题?
Check your project properties in eclipse. 在eclipse中检查项目属性。
Right click the prject -> select properties -> Select java build path -> click on the Source tab. 右键单击prject - > select properties - >选择java build path - >单击Source选项卡。
Check that you haven't included your class file location there. 检查您是否未在其中包含类文件位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.