Reputation: 5235
Is there any keyboard(mouse) shortcut in eclipse to check:
From which class a particular method has been called(i.e. navigating from called class to calling class).
which class(es) has extended a particular class(i.e. navigating from parent class to child class).
Thanks in advance.
Upvotes: 1
Views: 161
Reputation: 7069
Use Open Call Hierarchy
option-
2] Use Open Type Hierarchy
(F4) for class references . Example
public class Super {
}
class Sub1 extends Super{
}
class Sub2 extends Super{
}
Output -
Upvotes: 2
Reputation: 36304
Select a class /method and press ctrl+alt+h
to find where all it has been used.
Upvotes: 3
Reputation: 3005
Here i have some navigation and code information shortcut for eclipse
Ctrl+Alt+h Open Call Hierarchy
Ctrl+u Find occurrences of expression in current file
Ctrl+move over method Open Declaration or Implementation
Ctrl+o Show code outline / structure
F2 Open class, method, or variable information (tooltip text)
F3 Open Declaration: Jump to Declaration of selected class, method, or parameter
F4 Open Type Hierarchy window for selected item
Ctrl+t Show / open Quick Type Hierarchy for selected item
Ctrl+Shift+t Open Type in Hierarchy
and for more short cut go HERE
Upvotes: 4