Package com.intellij.psi.search.scope.packageSet

Examples of com.intellij.psi.search.scope.packageSet.NamedScopesHolder


  private boolean changeView(final PackageSet packageSet, final PsiElement element, final PsiFile psiFile,
    final String name, boolean requestFocus)
  {
    // Does not work anymore with IDEA 11
    //NamedScopesHolder holder = NamedScopesHolder.getHolder(myProject, name, null);
    NamedScopesHolder holder = NamedScopesHolder.getAllNamedScopeHolders(myProject)[0];
    if ((holder == null) || packageSet.contains(psiFile, holder))
    {
      if (!name.equals(getSubId()))
      {
        myProjectView.changeView(getId(), name);
View Full Code Here


      return true;
    }

    // Does not work anymore with IDEA 11
    // final NamedScopesHolder holder = NamedScopesHolder.getHolder(project, review.getName(), null);
    final NamedScopesHolder holder = NamedScopesHolder.getAllNamedScopeHolders(project)[0];

    return (holder == null) || (((PackageSetBase) packageSet).contains(vFile, holder));
  }
View Full Code Here

    }
  }

  public String getProfileName(PsiFile psiFile) {
    if (USE_PROJECT_LEVEL_SETTINGS){
      final NamedScopesHolder scopeManager = DependencyValidationManager.getInstance(myProject);
      for (NamedScope scope : myScopeToProfileMap.keySet()) {
        final PackageSet packageSet = scope.getValue();
        if (packageSet != null && packageSet.contains(psiFile, scopeManager)) {
          return myScopeToProfileMap.get(scope);
        }
View Full Code Here

    }

    public boolean contains(VirtualFile file) {
      PsiFile psiFile = myManager.findFile(file);
      if (psiFile == null) return false;
      NamedScopesHolder holder = NamedScopeManager.getInstance(myProject);
      final PackageSet packageSet = mySet.getValue();
      return packageSet != null && packageSet.contains(psiFile, holder);
    }
View Full Code Here

TOP

Related Classes of com.intellij.psi.search.scope.packageSet.NamedScopesHolder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.