本文介绍了限制“查找参考”在Eclipse中只能从我的代码引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为一个拥有100多个进口的大型软件应用程序编写插件。查找引用可以很好的工作,但是有时会返回几千个结果,尽管通常我只想在自己的代码中查找引用。我可以轻松地从搜索结果中删除我不感兴趣的引用,但是有没有办法主动限制结果?

I'm working on writing plugins for a large software application with 100+ imports. Find References works great, but sometimes returns a few thousand results, though usually I'm only interested in finding references within my own code. I can easily remove the references I'm not interested in from the search results, but is there a way to proactively limit the results?

推荐答案

如果您点击 + 打开搜索对话框,请在 Java Search 标签中,选择你想要什么样的参考,以及在哪里搜索。
您可以将搜索限制为来源,并忽略必需项目,JRE库或应用程序库

If you hit + to open the Search dialog, in the Java Search tab, you can select what kind of references you want, and where to search.You can limit your searches to the "Sources" only and ignore "Required projects", "JRE Libraries" or "Application Libraries"

这篇关于限制“查找参考”在Eclipse中只能从我的代码引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 04:44