Search in sources :

Example 1 with CallerMethodsTreeStructure

use of com.intellij.ide.hierarchy.call.CallerMethodsTreeStructure in project intellij-community by JetBrains.

the class JavaCallHierarchyTest method doJavaCallTypeHierarchyTest.

private void doJavaCallTypeHierarchyTest(final String classFqn, final String methodName, final String... fileNames) throws Exception {
    doHierarchyTest(() -> {
        final PsiClass psiClass = JavaPsiFacade.getInstance(getProject()).findClass(classFqn, ProjectScope.getProjectScope(getProject()));
        final PsiMethod method = psiClass.findMethodsByName(methodName, false)[0];
        return new CallerMethodsTreeStructure(getProject(), method, HierarchyBrowserBaseEx.SCOPE_PROJECT);
    }, fileNames);
}
Also used : PsiMethod(com.intellij.psi.PsiMethod) CallerMethodsTreeStructure(com.intellij.ide.hierarchy.call.CallerMethodsTreeStructure) PsiClass(com.intellij.psi.PsiClass)

Aggregations

CallerMethodsTreeStructure (com.intellij.ide.hierarchy.call.CallerMethodsTreeStructure)1 PsiClass (com.intellij.psi.PsiClass)1 PsiMethod (com.intellij.psi.PsiMethod)1