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

(-)CalleeMethodWrapper.java (-9 / +7 lines)
Lines 88-106 Link Here
88
	 * @see org.eclipse.jdt.internal.corext.callhierarchy.MethodWrapper#findChildren(org.eclipse.core.runtime.IProgressMonitor)
88
	 * @see org.eclipse.jdt.internal.corext.callhierarchy.MethodWrapper#findChildren(org.eclipse.core.runtime.IProgressMonitor)
89
     */
89
     */
90
    protected Map findChildren(IProgressMonitor progressMonitor) {
90
    protected Map findChildren(IProgressMonitor progressMonitor) {
91
        if (getMember().getElementType() == IJavaElement.METHOD) {
91
        if (getMember().exists() && getMember().getElementType() == IJavaElement.METHOD) {
92
            CalleeAnalyzerVisitor visitor = new CalleeAnalyzerVisitor((IMethod) getMember(),
93
                    progressMonitor);
94
            ICompilationUnit icu = getMember().getCompilationUnit();
92
            ICompilationUnit icu = getMember().getCompilationUnit();
95
        
93
            if (icu != null && icu.exists()) {
96
            if (icu != null) {
94
                CalleeAnalyzerVisitor visitor = new CalleeAnalyzerVisitor((IMethod) getMember(),
95
                        progressMonitor);
96
            
97
                CompilationUnit cu = AST.parseCompilationUnit(icu, true);
97
                CompilationUnit cu = AST.parseCompilationUnit(icu, true);
98
                cu.accept(visitor);
98
                cu.accept(visitor);
99
                return visitor.getCallees();
99
            }
100
            }
100
        
101
            return visitor.getCallees();
102
        } else {
103
            return new HashMap();
104
        }
101
        }
102
        return new HashMap();
105
    }
103
    }
106
}
104
}

Return to bug 36563