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/ToggleJavaLabelFormatAction.java
setText(CallHierarchyMessages.getString("ToggleJavaLabelFormatAction.short.label")); 
            setDescription(CallHierarchyMessages.getString("ToggleJavaLabelFormatAction.short.description")); 
            setToolTipText(CallHierarchyMessages.getString("ToggleJavaLabelFormatAction.short.tooltip"));   
            JavaPluginImages.setLocalImageDescriptors(this, "th_vertical.gif"); 
        } else if (format == CallHierarchyViewPart.JAVA_LABEL_FORMAT_LONG) {
            setText(CallHierarchyMessages.getString("ToggleJavaLabelFormatAction.long.label")); 
            setDescription(CallHierarchyMessages.getString("ToggleJavaLabelFormatAction.long.description")); 
            setToolTipText(CallHierarchyMessages.getString("ToggleJavaLabelFormatAction.long.tooltip"));     
            JavaPluginImages.setLocalImageDescriptors(this, "th_single.gif"); 
        } else {
            Assert.isTrue(false);
        }
        fView= v;
        fFormat= format;
        WorkbenchHelp.setHelp(this, IJavaHelpContextIds.TOGGLE_ORIENTATION_ACTION); 
    }
    
    public int getFormat() {
        return fFormat;
    }   
    
    /*
     * @see Action#actionPerformed
     */     
    public void run() {
        fView.setJavaLabelFormat(fFormat); 
    }
    
}