Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Limit "Find References" in Eclipse to only references from my code

Tags:

java

eclipse

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?

like image 345
Dathan Avatar asked Sep 26 '12 07:09

Dathan


1 Answers

If you hit Ctrl+H 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"

like image 128
mhussein Avatar answered Sep 28 '22 01:09

mhussein