This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 138209
Collapse All | Expand All

(-)a/refactoring.java/src/org/netbeans/modules/refactoring/java/callhierarchy/Call.java (-1 / +3 lines)
Lines 185-191 Link Here
185
    }
185
    }
186
186
187
    public static Call createRoot(CompilationInfo javac, TreePath selection, Element selectionElm, boolean isCallerGraph) {
187
    public static Call createRoot(CompilationInfo javac, TreePath selection, Element selectionElm, boolean isCallerGraph) {
188
        return createReference(javac, selection, selectionElm, null, isCallerGraph, Collections.<TreePath>emptyList());
188
        // supports go to source on the root of hierarchy tree  
189
        final List<TreePath> occurrences = Arrays.asList(selection);
190
        return createReference(javac, selection, selectionElm, null, isCallerGraph, occurrences);
189
    }
191
    }
190
192
191
    public static Call createUsage(CompilationInfo javac, TreePath selection, Element selectionElm, Call parent, List<TreePath> occurrences) {
193
    public static Call createUsage(CompilationInfo javac, TreePath selection, Element selectionElm, Call parent, List<TreePath> occurrences) {

Return to bug 138209