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
/* (non-Javadoc)
                 * @see org.eclipse.jface.action.IMenuListener#menuAboutToShow(org.eclipse.jface.action.IMenuManager)
                 */
                public void menuAboutToShow(IMenuManager manager) {
                    fillContextMenu(manager);
                }
            });
        fLocationContextMenu = menuMgr.createContextMenu(fLocationViewer.getControl());
        fLocationViewer.getControl().setMenu(fLocationContextMenu);
        
        getSite().registerContextMenu(menuMgr, fLocationViewer);
    }
    private void createHierarchyLocationSplitter(Composite parent) {
        fHierarchyLocationSplitter = new SashForm(parent, SWT.NONE);
        fHierarchyLocationSplitter.addKeyListener(createKeyListener());
    }
    private void createCallHierarchyViewer(Composite parent) {
        fCallHierarchyViewer = new CallHierarchyViewer(parent, this);
        fCallHierarchyViewer.addKeyListener(createKeyListener());
        fCallHierarchyViewer.addSelectionChangedListener(this);
        fCallHierarchyViewer.initContextMenu(new IMenuListener() {
                public void menuAboutToShow(IMenuManager menu) {
                    fillCallHierarchyViewerContextMenu(menu);
                }
            }, ID_CALL_HIERARCHY, getSite());
    }
    /**
     * @param fCallHierarchyViewer
     * @param menu
     */