Bug 36486 call hierarchy: should use adapters
call hierarchy should use adapters to allow actions contributed on object to be added to the context menu
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CallHierarchyViewPart.java
new ToggleJavaLabelFormatAction(this, JAVA_LABEL_FORMAT_SHORT),
                new ToggleJavaLabelFormatAction(this, JAVA_LABEL_FORMAT_LONG)
            };
        fActionGroups = new CompositeActionGroup(new ActionGroup[] {
                    new OpenViewActionGroup(this), new RefactorActionGroup(this),
                    fSearchScopeActions, fFiltersActionGroup
                });
    }
    private void showOrHideCallDetailsView() {
        if (fShowCallDetails) {
            fHierarchyLocationSplitter.setMaximizedControl(null);
        } else {
            fHierarchyLocationSplitter.setMaximizedControl(fCallHierarchyViewer.getControl());
        }
    }
    private void updateLocationsView(MethodWrapper methodWrapper) {
        if (methodWrapper != null) {
            fLocationViewer.setInput(methodWrapper.getMethodCall().getCallLocations());
        } else {
            fLocationViewer.setInput(""); 
        }
    }
    private void updateHistoryEntries() {
        for (int i = fMethodHistory.size() - 1; i >= 0; i--) {
            IMethod method = (IMethod) fMethodHistory.get(i);
            if (!method.exists()) {
                fMethodHistory.remove(i);
            }
        }
        fHistoryDropDownAction.setEnabled(!fMethodHistory.isEmpty());