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
}
    /**
     * Adds the entry if new. Inserted at the beginning of the history entries list.
     */
    private void addHistoryEntry(IJavaElement entry) {
        if (fMethodHistory.contains(entry)) {
            fMethodHistory.remove(entry);
        }
        fMethodHistory.add(0, entry);
        fHistoryDropDownAction.setEnabled(!fMethodHistory.isEmpty());
    }
    /**
     * @param parent
     */
    private void createLocationViewer(Composite parent) {
        fLocationViewer = new TableViewer(parent, SWT.NONE);
        fLocationViewer.setContentProvider(new ArrayContentProvider());
        fLocationViewer.setLabelProvider(new LocationLabelProvider());
        fLocationViewer.setInput(new ArrayList());
        fLocationViewer.getControl().addKeyListener(createKeyListener());
        fOpenLocationAction = new OpenLocationAction(getSite());
        fLocationViewer.addOpenListener(new IOpenListener() {
                public void open(OpenEvent event) {
                    fOpenLocationAction.run();
                }
            });
        
        MenuManager menuMgr = new MenuManager(); 
        menuMgr.setRemoveAllWhenShown(true);
        menuMgr.addMenuListener(new IMenuListener() {