tags:

views:

83

answers:

3

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.

+1  A: 

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.

Rich Seller
Very close, but this returns all methods that match the given signature, even if they are completely unrelated.
notnoop
Updated for the specific search for the type hierarchy
Rich Seller
A: 

Right-click -> Declarations (Keybord shortcut CTRL-G for searching the whole workspace).

Michael Borgwardt
+6  A: 
Robert Munteanu
Works great and handles both cases I wanted! You can view it also by opening the context window (i.e. right-click on method declaration) and selecting `Quick Type Hierarchy`.
notnoop
Thanks, updated with the context menu as well.
Robert Munteanu