Reputation: 59299
In Eclipse, can I find which methods override the method declaration on focus now?
Scenario: When I'm viewing a method in a base class (which interface), I would like to know where the method is overriden (or implemented). Now I just make the method final
and see where I get the errors, but it is not perfect.
Note: I know about class hierarchy
views, but I don't want to go through all the subclasses to find which ones use a custom implementation.
Upvotes: 10
Views: 2091
Reputation: 68268
Select the method and click Ctrl+T. Alternatively, right-click on it and select Quick Type Hierachy
.
removed dead ImageShack link - Screenshot
Upvotes: 16
Reputation: 346240
Right-click -> Declarations (Keybord shortcut CTRL+G for searching the whole workspace).
Upvotes: 1
Reputation: 84028
Select the method declaration and hit Ctrl+G to see all declarations.
To see only the declarations inherited by the subject, right-click->Declarations->Hierarchy
.
Upvotes: 2