Eclipse: Java, see where class is used

49,537

Solution 1

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

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

Solution 2

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

Solution 3

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

Eclipse minings settings

Share:
49,537
Mike
Author by

Mike

I hate computers

Updated on July 20, 2022

Comments

  • Mike
    Mike almost 2 years

    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?