Search code examples
eclipsepluginscall-hierarchy

Invoking call hierarchy from eclipse plug in


I want to write an eclipse plugin which can take a list of class names and return me a table of classes where they are being referenced in a given project. I was thinking if i can use eclipse cal hierarchy. But not sure how to invoke this command. could someone help me with this, Thanks in advance


Solution

  • Have a look at the OpenCallHierarchyAction class of the org.eclipse.jdt.ui.internal.callhierarchy Package. This is internal Eclipse source code, but the code in the run(ITextSelection selection) method should be interesting to you.