Bug 56589 Call Hierarchy should show root element in title
The Call Hierarchy is the only view which shows its input as root element. All other views (Search, Package Explorer, CVS Resource History, etc.) only show their input in the view title via ViewPart#setTitle(String). I think the Call Hierarchy should also follow this pattern and just add the current input to the title. The currently shown "declaration" node could the be removed, which makes the model cleaner (only one node type: method calls) and saves some horizontal screen space. Before: [Title:] Calls To Method - updateView() : void - ... + setCallMode(int) : void - ... + refresh() : void - ... Proposed change: [Title:] Calls to method 'updateView()' + setCallMode(int) : void - ... + refresh() : void - ...
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CallHierarchyViewPart.java
}
            fCurrentOrientation = orientation;
            fDialogSettings.put(DIALOGSTORE_VIEWORIENTATION, orientation);
        }
    }
    /**
     * called from ToggleCallModeAction.
     * @param orientation CALL_MODE_CALLERS or CALL_MODE_CALLEES
     */
    void setCallMode(int mode) {
        if (fCurrentCallMode != mode) {
            for (int i = 0; i < fToggleCallModeActions.length; i++) {
                fToggleCallModeActions[i].setChecked(mode == fToggleCallModeActions[i].getMode());
            }
            fCurrentCallMode = mode;
            fDialogSettings.put(DIALOGSTORE_CALL_MODE, mode);
            updateView();
        }
    }
    public IJavaSearchScope getSearchScope() {
        return fSearchScopeActions.getSearchScope();
    }
    public void setShowCallDetails(boolean show) {
        fShowCallDetails = show;
        showOrHideCallDetailsView();
    }
    private void initDragAndDrop() {
        Transfer[] transfers= new Transfer[] { LocalSelectionTransfer.getInstance() };
        int ops= DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK;
        addDragAdapters(fCallHierarchyViewer, ops, transfers);