How to find all instances of an interface in Eclipse?

Is there a way to get Eclipse to show all instances of the interface?

That is: If I have an interface with a name IMyInterface, I want Eclipse to show me all type objects IMyInterfacein my workspace. I want to examine all instances of an interface, for example. all lines starting with IMyInterface iMyInterfaceInstance = ....

+4
source share
1 answer

You just need to press F4(or Ctrl+T) when the cursor is on the interface name. This will open the "Hierarchy Type" tab, where you can see all types IMyInterface.

, Ctrl+Shift+G, .

+6

Source: https://habr.com/ru/post/1620066/


All Articles