Java Code Examples for

The following examples show how to use . These examples are extracted from open source projects. 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
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
public GlobalSearchScope getSearchScope() {
    final Module module = getModule();
    if (module != null) {
        return GlobalSearchScope.moduleWithDependenciesScope(module);
    return GlobalSearchScope.projectScope(getProject());
Example 3
public static List<DomElement> getFlows(Module module) {
    final GlobalSearchScope searchScope = GlobalSearchScope.moduleWithDependenciesScope(module);
    return getFlowsInScope(module.getProject(), searchScope);