Eclipse: Java, see where class is used

JavaEclipseSearch

Java Problem Overview


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?

Java Solutions


Solution 1 - Java

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

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

Solution 2 - Java

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

Solution 3 - Java

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

Eclipse minings settings

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMikeView Question on Stackoverflow
Solution 1 - JavaVonCView Answer on Stackoverflow
Solution 2 - JavagustafcView Answer on Stackoverflow
Solution 3 - JavaHendrikView Answer on Stackoverflow