Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find forward reference in eclipse?

Is there any way by which I can find out all classes which implement a particular interface? For example, if I have a interface as follows:

public interface myIntFac{}

I want to find all classes inside current project that implement this interface. How can I find it out in Eclipse?

like image 240
akp Avatar asked Sep 15 '26 16:09

akp


2 Answers

At the interface level, you can use (assuming the cursor in on the interface)

  • CTRL+T to show the Quick Type Hierarchy
  • F4 to Open Type Hierarchy

At the method level, if you hover a method while holding down the control key, a pop-up box gives you the following choices:

  • Open Declaration
  • Open Implementation

alt text
(source: eclipse.org)

And from anywhere, you can use:

  • CTRL+SHIFT+H to open the Open Type Hierarchy pop-up and search for any type/interface.
like image 174
Pascal Thivent Avatar answered Sep 17 '26 04:09

Pascal Thivent


Place your cursor on the interface, and try Ctrl-T.

like image 26
fastcodejava Avatar answered Sep 17 '26 04:09

fastcodejava



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!