Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding implementations of an interface in Eclipse

Tags:

java

eclipse

I'm looking at the following method.

public void setRecordValidator(Validator recordValidator) {
    this.recordValidator = recordValidator;
}

In this case class Validator is an interface. I'm not sure what kind of object to pass on to the method since I'm not sure what classes actually implement Validator.

The question is how can I view classes that implement Validator in Eclipse?

like image 235
Serge Avatar asked Nov 28 '25 16:11

Serge


2 Answers

Click on Validator somewhere in the code and press Ctrl+T - this will open the Type Hierarchy popup.

like image 57
Michał Kosmulski Avatar answered Dec 01 '25 06:12

Michał Kosmulski


Rightclick on Validator -> Declarations -> Project

Rightclick on Validator in the search result -> Implementations -> Project

like image 34
Jeroen Vannevel Avatar answered Dec 01 '25 04:12

Jeroen Vannevel



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!