Java / Eclipse How to get ways to use type methods in a project?

In Eclipse, I can Ctrl + Shift + G (or r-click -> References-> Workspace

) to get all references to a type (or field, etc.) in the workspace.

I need a way to get a list of all places where any method of a given type is used in the workspace. Namely, I would like to receive all method calls of a type java.math.BigDecimal

.

Does Eclipse support such a scenario?

FWIW: I can do something similar for C # code using VS + Resharper:
r-click on type -> Find Usages Advanced -> Usages of members

.

Update

Let me rephrase the question, it doesn't seem very clear.

I want to find all my code that calls any BigDecimal method ...
(From this information, I manually (?) Get a subset of the BigDecimal public interface that my code actually uses).

+3


source to share


4 answers


Not sure if this is what you want, but found here: fooobar.com/questions/1993156 / ...

Click Ctrl+ Hor in the menu bar Search- Search ..., then choose Java Search:



enter image description here

+5


source


Like the other answers, Ctrl+ Alt+ His what you are looking for, but try to do it with a cursor over the class name.



+2


source


I don't think eclipse supports this. In max, you can use ctrl+ alt+ hto get a hierarchy of calls to a single method.

+1


source


In Eclipse, you can use Ctrl + Alt + H when the cursor is in the method name. This will display the call hierarchy.

0


source







All Articles