Eclipse nicely gives me object 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?
+1
A:
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.
amorfis
2010-09-07 13:41:56
It gives me all references to class. In my project class is referred in hundreds of places. but the class is participating in few classes in composition relations. So doing this way is not feasible for me.
Digambar Daund
2010-09-07 13:48:26
A:
Ctrl + H It will open Java Search window. select Field in "Search For" panel.
Digambar Daund
2010-09-07 14:29:11
A:
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)
TK Gospodinov
2010-09-08 04:53:05