简体   繁体   English

在Eclipse中搜索项目中的引用会带来.class文件而不是.java文件

[英]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.

相关问题 Eclipse正在部署Java文件而不是类文件 - Eclipse is deploying java files instead of class files 强制JAVA项目使用.java文件而不是JRE lib .class文件(使用Eclipse) - Force JAVA project to use .java files instead of JRE lib .class files (with Eclipse) 用于在项目中搜索文件的eclipse插件编程(需要基本帮助) - Programming eclipse plugin for searching file within a project (basic help needed) 在 eclipse 项目的引用库中搜索 .class 文件 - Searching for .class files in an eclipse project's Referenced Library Eclipse Java项目-打开声明始终打开类文件而不是.java - Eclipse Java Project - Open Declaration always opens class file instead of .java 在Java中的Eclipse Project中读取图像文件 - Read an image file within the Eclipse Project in java Eclipse Oxygen项目链接到类文件而不是源文件 - Eclipse Oxygen project linking to class files instead of source files java,eclipse - eclipse 每次都会带来 hs_err_pid 文件? - java,eclipse - eclipse brings hs_err_pid file everytime? 蚀项目,由轴构建的桩…Q2。 之3…我可以改用jax-ws来重建Java存根/类文件吗? - eclipse project, stubs built by axis… Q2. of 3… can I use jax-ws instead to rebuild the java stubs/class files? 由于同一Java类的多个引用,Eclipse(Java Project)中的构建错误 - Build Errors in Eclipse (Java Project) due to multiple references of the same Java class
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM