Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find usages using Eclipse IDE?

Tags:

java

eclipse

People also ask

How do you find where a function is called in Eclipse?

Right click and select References > Project or References > Workspace from the pop-up menu. Show activity on this post. This will show you a Search view containing the hierarchy of class and method which using this method.

How do I search for a project function in Eclipse?

Ctrl + Alt + G can be used to find selected text across a workspace in eclipse. Show activity on this post. Press Ctrl + H to bring up the search that includes options to search via project, directory, etc.

How can I see all problems in Eclipse?

The Eclipse error log captures internal errors that are caused by the operating system or your code. To view the Eclipse error log: Switch to the Plug-in Development perspective. From the main menu, select Window > Show view > Other.


PC:

  1. Select a word (class name, method name, variable name, etc.)
  2. Press Ctrl+Shift+G

Mac:

  1. Select a word (class name, method name, variable name, etc.)
  2. Press Alt+Cmd+G (++G)

Right click on Myclass, find references in project|workspace.

Open call hierarchy, open inheritance hierarchy.


For your case, I think both of (Ctrl +Shift+G) and (Ctrl +Alt+H) work.

To make it more clear:

  • (Ctrl +Shift+G) is shortkey for Search->References->workspace

  • Ctrl +Alt+H is short key for Call hierarchy.

Some other useful short keys like:

  • (Ctrl+G) : Search->Declaration->worksapce
  • (Alt+Left) : Back position
  • (Alt+Right) : Forward position

Try right-click on MyClassand then References->Workspace. I think this might be what you're looking for.

Also works on methods, variables etc.