Bug 36498 outline view signature incorrect for templated functions/methods
try this code: class A { template <class B> B aMethod( B aParm ); }; template <class A, typename B> void aFunction( A a, B b ); the name of the method shows up twice in the signature in the outline view.
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());