Mike
Mike

Reputation: 60771

Eclipse: Java, see where class is used

Is there a way in Eclipse to select a Java class, and then bring up a list of all Java files where that class is used within a project?

Upvotes: 99

Views: 54819

Answers (3)

Hendrik
Hendrik

Reputation: 11

Since Eclipse 4.12 you can also use the code minings feature:

Eclipse minings settings

Upvotes: 1

VonC
VonC

Reputation: 1324278

right-click on the class, and select references/Project

For searching all of the workspace, CTRL+SHIFT+G

Upvotes: 166

gustafc
gustafc

Reputation: 28865

Put the cursor on the class name (works for methods, constructors, fields, etc, too), press Ctrl+Shift+G and enjoy.

Upvotes: 26

Related Questions