3.0 Call Hierarchy Extension Points? [message #168013] |
Fri, 09 July 2004 23:54  |
Eclipse User |
|
|
|
Originally posted by: chrism.clabs.org
I'm researching the possibility of building a plugin that would take the
Call Hierarchy tree, add a new popup menu to generate GraphViz dot
source -- not sure of the destination, clipboard, .png in a browser or
somesuch -- right now I'm just trying to find out about where and how
I'd hook in to do this. I'd want/need access to the currently displayed
call hierarchy tree.
Is there a ready-made JDT extension point for something like this? I'm
guessing not since browsing through jdt.jar shows CallHierarchy stuffs
only in the internal package. Would I need to modify the actual source
to do this, rebuild a custom .jar?
--
Chris
http://clabs.org
|
|
|
|
|
|
Re: 3.0 Call Hierarchy Extension Points? [message #168957 is a reply to message #168849] |
Fri, 16 July 2004 00:24  |
Eclipse User |
|
|
|
Originally posted by: chrism.clabs.org
Jesper Kamstrup Linnet wrote:
> You might want to take a look at the
> org.eclipse.jdt.internal.ui.callhierarchy.CopyCallHierarchyA ction (which
> copies a text representation of the hierarchy to the clipboard.) The
> nodes in the tree (subclasses of MethodWrapper) can be obtained with the
> TreeItem.getData() method.
>
> Alternatively you might want to look at the CallHierarchyVisitor
> interface (which can be used from the MethodWrapper.accept(...) method.
I'm familiar with CopyCallHierarchyAction, it's what I based my current
class on (GraphCallHierarchyAction) -- all I need is the plug-in stuffs
to hook into CallHierarchyViewPart without actually modifying its code
to add my popupMenu. My current hack simply modifies the source in
CallHierarchyViewPart, but apparently, I should be able to plug-in to it
externally, but I don't know how yet.
> You should be aware though (as Dirk also wrote later in the bug report)
> that none of the Call Hierarchy code is public API (and probably will
> not be opened up). I would not expect it to change that much, so I
> wouldn't be so afraid to use it - but that's your decision :-)
Oh, that's no problem. I'm primarily using it on a current gig to help
myself out, and my hacking approach is fine for that, but I would like
to know how to do it as a pure plug-in, as that might make it more
accessible to others.
--
Chris
http://clabs.org
|
|
|
Powered by
FUDForum. Page generated in 0.27561 seconds