cLabs Call Hierarchy Graph Eclipse JDT Hack
This hack of the org.eclipse.jdt.ui_3.0.0 plug-in adds two menu items
to the Call Hierarchy popup menu that will render the current call
hierarchy tree using GraphViz
dot.
Hopefully, I'll not need to resort to hacking the jdt.ui plug-in for
much longer if my lack of Eclipse know-how can be brought up to speed
quickly on how to do this as a pure, separate plug-in.
Download
Go grab the current .zip in http://clabs.org/jdt.
Complete source code is included in an embedded .zip file, contributed
source by cLabs is covered under the same licensing stuff as Eclipse.
Installation
Close Eclipse, unzip the file in your eclipse folder, overwriting the
current org.eclipse.jdt.ui_3.0.0 plug-in.
Install GraphViz dot on your system and make sure the dot executable is
in your system path, such that Eclipse can get to it.
Usage
Get a Call Hierarchy going, right-click on the root node you want
graphed and choose "Show Graph". If you just want the dot source copied
to your clipboard, choose that menu item (that menu item will probably
be moved to the Show Graph shell window in the near future).
Change Log
jdt.clabs.3.0.0.5.zip - July 15, 2004
- Background color of Show Graph shell window matches the image
background color now, and window sizes to match the image (limited by
the current display's bounds).
- Whoops, remmed out a key line in copying source to the clipboard
during a refactoring that kept it from actually doing something
resembling anything -- fixed.
jdt.clabs.3.0.0.4.zip - July 14, 2004
- Show Graph Shell now has scroll bars allowing proper viewing of
large images. Thanks to Christian Hauser on the eclipse.platform.swt
newsgroup for the reference to this
snippet for a great how-to.
jdt.clabs.3.0.0.3.zip - July 13, 2004
- First release with Show Graph menu item and new Shell window.
Images too big for the window simply ran off the edge, no scrolling.
jdt.clabs.3.0.0.2.zip - July 12, 2004
- Follow up, cleaned up stuff in copy clipboard stuffs.
jdt.clabs.3.0.0.1.zip - July 11, 2004
- Original release, with Copy Graph Source to Clipboard menu item
enabled.