I want to get a call-chain report of some methods in eclipse,
so I press Ctrl+Alt+H to open the method call hierarchy view,
and press numpad_multiply key to expand all nodes.
The problem is that I need to click each node to know which project it belongs to.
Is there any way or plugin to get a report?
(I use Eclipse 3.5 Galileo Java EE IDE for Web Developers. Thanks for any advices)
Answer my question, I hope this helps someone.
(It’s not a clever way, but it works for me.)
Prepare:
Ctrl+Alt+H to open the method call hierarchy view, and press numpad_multiply key to expand all nodes.
Ctrl+A to select all nodes.
Copy fully qualified class name, and save it to a file somewhere (eg. c:\tmp.txt)
Remove all method name in above file.
example:
Source:
Create a new project (type java) in same workspace
Add target project reference to new project
Loop each line of above file (eg. c:\tmp.txt), end use this code to get the class location:
Note that [project/target] in return is the project name, that’s all.