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/HistoryDropDownAction.java
fMenu = new Menu(parent);
        IMethod[] elements = fView.getHistoryEntries();
        addEntries(fMenu, elements);
        return fMenu;
    }
    public void dispose() {
        fView = null;
        if (fMenu != null) {
            fMenu.dispose();
            fMenu = null;
        }
    }
    public void run() {}
    protected void addActionToMenu(Menu parent, Action action) {
        ActionContributionItem item = new ActionContributionItem(action);
        item.fill(parent, -1);
    }
    private boolean addEntries(Menu menu, IMethod[] elements) {
        boolean checked = false;
        int min = Math.min(elements.length, RESULTS_IN_DROP_DOWN);
        for (int i = 0; i < min; i++) {
            HistoryAction action = new HistoryAction(fView, elements[i]);
            action.setChecked(elements[i].equals(fView.getMethod()));
            checked = checked || action.isChecked();
            addActionToMenu(menu, action);
        }
        return checked;
    }
}