Is it possible to programatically access the call hierarchy in VS2010
Visual st开发者_如何学Goudio 2010 has added a call hierarchy function. Does anyone know if it is possible to access this from within a plugin?
You can try adding a reference to \Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Microsoft.VisualStudio.CallHierarchy.Package.Definitions.dll and importing the ICallHierarchy service.
ICallHierarchy allows you to:
public interface ICallHierarchy
{
void AddRootItem(ICallHierarchyMemberItem item);
void ShowToolWindow();
}
You might also need other Call Hierarchy .dlls:
- Microsoft.VisualStudio.CallHierarchy.Package.Implementation.dll
- Microsoft.VisualStudio.Language.CallHierarchy.dll
- Microsoft.VisualStudio.Language.CallHierarchy.Implementation.dll
精彩评论