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
}
    }
    /**
     * called from ToggleCallModeAction.
     * @param orientation CALL_MODE_CALLERS or CALL_MODE_CALLEES
     */
    void setJavaLabelFormat(int format) {
        if (fCurrentJavaLabelFormat != format) {
            for (int i = 0; i < fToggleJavaLabelFormatActions.length; i++) {
                fToggleJavaLabelFormatActions[i].setChecked(format == fToggleJavaLabelFormatActions[i].getFormat());
            }
            fCurrentJavaLabelFormat = format;
            fDialogSettings.put(DIALOGSTORE_JAVA_LABEL_FORMAT, format);
            fCallHierarchyViewer.setJavaLabelFormat(fCurrentJavaLabelFormat);
        }
    }
    public IJavaSearchScope getSearchScope() {
        return fSearchScopeActions.getSearchScope();
    }
    public void setShowCallDetails(boolean show) {
        fShowCallDetails = show;
        showOrHideCallDetailsView();
    }
    public void createPartControl(Composite parent) {
        
        fPagebook = new PageBook(parent, SWT.NONE);
        
        createHierarchyLocationSplitter(fPagebook);
        createCallHierarchyViewer(fHierarchyLocationSplitter);
        createLocationViewer(fHierarchyLocationSplitter);