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/SearchScopeActionGroup.java
return (IJavaElement[]) result.toArray(new IJavaElement[result.size()]);
        }
    }
    private class SearchScopeWorkspaceAction extends SearchScopeAction {
        public SearchScopeWorkspaceAction() {
            super(CallHierarchyMessages.getString("SearchScopeActionGroup.workspace.text")); 
            setToolTipText(CallHierarchyMessages.getString("SearchScopeActionGroup.workspace.tooltip")); 
        }
        public IJavaSearchScope getSearchScope() {
            return SearchEngine.createWorkspaceScope();
        }
    }
    private class SelectWorkingSetAction extends Action {
        public SelectWorkingSetAction() {
            super(CallHierarchyMessages.getString("SearchScopeActionGroup.workingset.select.text")); 
            setToolTipText(CallHierarchyMessages.getString("SearchScopeActionGroup.workingset.select.tooltip")); 
        }
        /* (non-Javadoc)
         * @see org.eclipse.jface.action.Action#run()
         */
        public void run() {
            IWorkingSetManager workingSetManager = getWorkingSetManager();
            IWorkingSetSelectionDialog dialog = workingSetManager.createWorkingSetSelectionDialog(PlatformUI.getWorkbench()
                                                                                                            .getActiveWorkbenchWindow()
                                                                                                            .getShell(),
                    false);
            IWorkingSet workingSet = getActiveWorkingSet();
            if (workingSet != null) {
                dialog.setSelection(new IWorkingSet[] { workingSet });
            }