KPrince36
KPrince36

Reputation: 2936

Find where a class is instantiated in Eclipse?

I'm looking for how to quickly find where a class is instantiated in Eclipse. I know that you can use Search and look for new myClassName( in *java files. I'm looking for an option where right click somewhere in the class definition to find where it is instantiated in the project or a keyboard shortcut of some type.

Upvotes: 3

Views: 2310

Answers (1)

Evan LaHurd
Evan LaHurd

Reputation: 977

Highlight the constructor in the class, then use Shift+Ctrl+G to search for occurrences of the constructor being used.

Upvotes: 9

Related Questions