sebastian.c
sebastian.c

Reputation: 153

How to search in eclipse methods called?

How to search within eclipse or MotoDev IDE which methods are being called and by which file? i.e. I have a method called Validate, but not sure how to search where it is called from which class or file that calls it?

Upvotes: 0

Views: 84

Answers (3)

Shahzeb Khan
Shahzeb Khan

Reputation: 3642

Right click on method and click on references, (select the scope ie. workspace,project or hierarchy).

Upvotes: 0

Steve C
Steve C

Reputation: 19445

You can also right click a method name in the outline view or java source and choose "Open Call Hierarchy", which will display the complete call chain.

Upvotes: 1

Yaroslav Mytkalyk
Yaroslav Mytkalyk

Reputation: 17115

In eclipse:

Left click to highlight method or select it in outline.

After selection:

Right click on it -> References

or

Search -> References

and pick a range.

Upvotes: 1

Related Questions