Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eclipse - find references only in specific class and all subclasses of that class

Tags:

java

eclipse

I need to find the references to external method say Foo.getInstance() in specific type hierarchy, basically i want to restrict the search results to specific class and all subclasses, i am not interested in all references. Is it possible to do with eclipse or any custom plugin? Thanks

like image 692
Andrey Borisov Avatar asked Nov 20 '25 07:11

Andrey Borisov


1 Answers

You can do this creating a working set with only the files holding your hierarchy. Then CTRL+H and Java Search with scope "Working Set".

If the classes are all within a package you can select that in Project Explorer then perform Java Search with scope "Selected".

Working sets are awesome

like image 112
BigMike Avatar answered Nov 22 '25 19:11

BigMike



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!