Leo
Leo

Reputation: 5235

Shortcuts in eclipse

Is there any keyboard(mouse) shortcut in eclipse to check:

  1. From which class a particular method has been called(i.e. navigating from called class to calling class).

  2. which class(es) has extended a particular class(i.e. navigating from parent class to child class).

Thanks in advance.

Upvotes: 1

Views: 161

Answers (3)

Ninad Pingale
Ninad Pingale

Reputation: 7069

Use Open Call Hierarchy option-

enter image description here

2] Use Open Type Hierarchy(F4) for class references . Example

public class Super {

}

class Sub1 extends Super{

}

class Sub2 extends Super{

}

Output -

enter image description here

Upvotes: 2

TheLostMind
TheLostMind

Reputation: 36304

Select a class /method and press ctrl+alt+h to find where all it has been used.

Upvotes: 3

Nirav Prajapati
Nirav Prajapati

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

Related Questions