com.intellij.psi.search.GlobalSearchScopes Java Examples
The following examples show how to use
com.intellij.psi.search.GlobalSearchScopes.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PackageReferenceDiagramDataModel.java From intellij-reference-diagram with Apache License 2.0 | 5 votes |
@NotNull @Override protected Collection<PsiReference> resolveOuterReferences(PsiElement psiElement) { Collection<PsiReference> result = new ArrayList<>(); if (!(psiElement instanceof PsiJavaFile)) { return result; } PsiClass[] classes = ((PsiJavaFile) psiElement).getClasses(); for (PsiClass psiClass : classes) { result.addAll(ReferencesSearch.search(psiClass, GlobalSearchScopes.projectProductionScope(getProject())).findAll()); } return result; }
Example #2
Source File: MethodReferenceDiagramDataModel.java From intellij-reference-diagram with Apache License 2.0 | 4 votes |
@NotNull @Override protected Collection<PsiReference> resolveOuterReferences(PsiElement callee) { return ReferencesSearch.search(callee, GlobalSearchScopes.projectProductionScope(getProject())).findAll(); }