Reputation: 2936
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
Reputation: 977
Highlight the constructor in the class, then use Shift+Ctrl+G to search for occurrences of the constructor being used.
Upvotes: 9