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
import org.eclipse.jdt.ui.actions.RefactorActionGroup;
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jdt.internal.ui.actions.CompositeActionGroup;
import org.eclipse.jdt.internal.ui.javaeditor.EditorUtility;
import org.eclipse.jdt.internal.ui.viewsupport.StatusBarUpdater;
import org.eclipse.jdt.internal.corext.callhierarchy.CallHierarchy;
import org.eclipse.jdt.internal.corext.callhierarchy.CallLocation;
import org.eclipse.jdt.internal.corext.callhierarchy.MethodWrapper;
/**
 * This is the main view for the callers plugin. It builds a tree of callers/callees
 * and allows the user to double click an entry to go to the selected method.
 *
 */
public class CallHierarchyViewPart extends ViewPart implements IDoubleClickListener,
    ISelectionChangedListener {
    public static final String CALLERS_VIEW_ID = "org.eclipse.jdt.callhierarchy.view"; 
    private static final String DIALOGSTORE_VIEWORIENTATION = "CallHierarchyViewPart.orientation"; 
    private static final String DIALOGSTORE_CALL_MODE = "CallHierarchyViewPart.call_mode"; 
    private static final String DIALOGSTORE_JAVA_LABEL_FORMAT = "CallHierarchyViewPart.java_label_format"; 
    private static final String TAG_ORIENTATION = "orientation"; 
    private static final String TAG_CALL_MODE = "call_mode"; 
    private static final String TAG_JAVA_LABEL_FORMAT = "java_label_format"; 
    private static final String TAG_RATIO = "ratio"; 
    static final int VIEW_ORIENTATION_VERTICAL = 0;
    static final int VIEW_ORIENTATION_HORIZONTAL = 1;
    static final int VIEW_ORIENTATION_SINGLE = 2;
    static final int CALL_MODE_CALLERS = 0;
    static final int CALL_MODE_CALLEES = 1;
    static final int JAVA_LABEL_FORMAT_DEFAULT = JavaElementLabelProvider.SHOW_DEFAULT;
    static final int JAVA_LABEL_FORMAT_SHORT = JavaElementLabelProvider.SHOW_BASICS;