Bug 46351 Call Hierarchy must not implement IViewSite [call hierarchy]
I20031105 The call hierarchy component implements IViewSite which is not allowed. There seems to be no reason for doing so: the CallHierarchyViewPart should directly set the selection provider to its site.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CallHierarchyViewPart.java
}
    /**
     * Goes to the selected entry, without updating the order of history entries.
     */
    public void gotoHistoryEntry(IMethod entry) {
        if (fMethodHistory.contains(entry)) {
            setMethod(entry);
        }
    }
    /* (non-Javadoc)
     * Method declared on IViewPart.
     */
    public void init(IViewSite site, IMemento memento)
        throws PartInitException {
        super.init(site, memento);
        fMemento = memento;
    }
    public void jumpToDeclarationOfSelection() {
        ISelection selection = null;
        selection = getSelection();
        if ((selection != null) && selection instanceof IStructuredSelection) {
            Object structuredSelection = ((IStructuredSelection) selection).getFirstElement();
            if (structuredSelection instanceof IMember) {
                CallHierarchyUI.jumpToMember((IMember) structuredSelection);
            } else if (structuredSelection instanceof MethodWrapper) {
                MethodWrapper methodWrapper = (MethodWrapper) structuredSelection;
                CallHierarchyUI.jumpToMember(methodWrapper.getMember());
            } else if (structuredSelection instanceof CallLocation) {
                CallHierarchyUI.jumpToMember(((CallLocation) structuredSelection).getCalledMember());
            }