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
toolBar.add(fCancelSearchAction);
        for (int i = 0; i < fToggleCallModeActions.length; i++) {
            toolBar.add(fToggleCallModeActions[i]);
        }
        toolBar.add(fHistoryDropDownAction);
    }
    private KeyListener createKeyListener() {
        KeyListener keyListener = new KeyAdapter() {
                public void keyReleased(KeyEvent event) {
                    handleKeyEvent(event);
                }
            };
        return keyListener;
    }
    /**
     *
     */
    private void makeActions() {
        fRefreshAction = new RefreshAction(this);
        fOpenLocationAction = new OpenLocationAction(this, getSite());
        fLocationViewer.addOpenListener(new IOpenListener() {
                public void open(OpenEvent event) {
                    fOpenLocationAction.run();
                }
            });
        
        fFocusOnSelectionAction = new FocusOnSelectionAction(this);
        fCopyAction= new CopyCallHierarchyAction(this, fClipboard, fCallHierarchyViewer);
        fSearchScopeActions = new SearchScopeActionGroup(this, fDialogSettings);