We have an interface that has a child interface. Ie:
public interface GenCalculator extends Serializable {} public interface SpecialCalculator extends GenCalculator {}
In Eclipse, how can you find all interface-s that extend in this case GenCalculator
?
If I right click, select "Open Type Hierarchy" in the GenCalculator
interface, I only see classes that implement that GenCalculator
interface. I want to see everything - those that implement and those that extend.
We're on Eclipse v.3.2.2.
Put the cursor on the name of the interface and press F4 (Open Type Hierarchy). That will open a window that shows a tree with all classes that Eclipse can find that implement the interface.
An interface can extend other interfaces, just as a class subclass or extend another class. However, whereas a class can extend only one other class, an interface can extend any number of interfaces. The interface declaration includes a comma-separated list of all the interfaces that it extends.
Try using CTRL + SHIFT + R which displays a list of all classes/files which can be filtered.
An interface is not extended by a class; it is implemented by a class.
Ctrl+T to view all descendants
Press it the combination a second time (see fine print in initial popup) if you want to display super interfaces/classes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With