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
}
    }
    /**
     * Restores the type hierarchy settings from a memento.
     */
    private void restoreState(IMemento memento) {
        Integer orientation= memento.getInteger(TAG_ORIENTATION);
        if (orientation != null) {
            setOrientation(orientation.intValue());
        }
        Integer callMode= memento.getInteger(TAG_CALL_MODE);
        if (callMode != null) {
            setCallMode(callMode.intValue());
        }
        Integer ratio = memento.getInteger(TAG_RATIO);
        if (ratio != null) {
            fHierarchyLocationSplitter.setWeights(new int[] {
                    ratio.intValue(), 1000 - ratio.intValue()
                });
        }
        
        fSearchScopeActions.restoreState(memento);
    }
    private void initCallMode() {
        int mode;
        try {
            mode = fDialogSettings.getInt(DIALOGSTORE_CALL_MODE);
            if ((mode < 0) || (mode > 1)) {
                mode = CALL_MODE_CALLERS;
            }