How to find classes having member variable SomeTO in eclipse?
Eclipse nicely gives me ob开发者_运维问答ject graph of "Is-A" or "Inheritance/Generisation/Specialization". relationship. But Is there any quick way to find "Has-A" or "Composition" relationship graph for classes in eclipse?
You can find all the places where some class is used when you put cursor on class name in it's declaration line (public class SomeClass {
) and press Ctrl+Shift+G
AFAIK there is no such nice graph like for Is-A relationship.
Ctrl + H It will open Java Search window. select Field in "Search For" panel.
You can follow Digambar's suggestion or use the File Search tab (hit Ctrl+H), which performs a plain old text search. You can specify the files that are searched and the scope of the search (selected resource, workspace, etc)
精彩评论