Java Code Examples for com.intellij.psi.search.GlobalSearchScope#moduleWithDependenciesScope()

The following examples show how to use com.intellij.psi.search.GlobalSearchScope#moduleWithDependenciesScope() . 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: NutzInjectToPropsReferenceContributor.java    From NutzCodeInsight with Apache License 2.0 5 votes vote down vote up
private GlobalSearchScope getSearchScope(Project project, @NotNull PsiElement element) {
    GlobalSearchScope searchScope = GlobalSearchScope.projectScope(project);
    Module module = ProjectRootManager.getInstance(project).getFileIndex().getModuleForFile(element.getContainingFile().getVirtualFile());
    if (module != null) {
        searchScope = GlobalSearchScope.moduleWithDependenciesScope(module);
    }
    return searchScope;
}
 
Example 2
Source File: XQueryRunConfigurationModule.java    From intellij-xquery with Apache License 2.0 5 votes vote down vote up
public GlobalSearchScope getSearchScope() {
    final Module module = getModule();
    if (module != null) {
        return GlobalSearchScope.moduleWithDependenciesScope(module);
    }
    return GlobalSearchScope.projectScope(getProject());
}
 
Example 3
Source File: MuleConfigUtils.java    From mule-intellij-plugins with Apache License 2.0 4 votes vote down vote up
public static List<DomElement> getFlows(Module module) {
    final GlobalSearchScope searchScope = GlobalSearchScope.moduleWithDependenciesScope(module);
    return getFlowsInScope(module.getProject(), searchScope);
}