Search in sources :

Example 26 with NamedScope

use of com.intellij.psi.search.scope.packageSet.NamedScope in project intellij-community by JetBrains.

the class ScopePaneSelectInTarget method select.

@Override
public void select(PsiElement element, boolean requestFocus) {
    if (getSubId() == null) {
        NamedScope scope = getContainingScope(element.getContainingFile());
        if (scope == null)
            return;
        setSubId(scope.getName());
    }
    super.select(element, requestFocus);
}
Also used : NamedScope(com.intellij.psi.search.scope.packageSet.NamedScope)

Aggregations

NamedScope (com.intellij.psi.search.scope.packageSet.NamedScope)26 NamedScopesHolder (com.intellij.psi.search.scope.packageSet.NamedScopesHolder)10 PackageSet (com.intellij.psi.search.scope.packageSet.PackageSet)9 ArrayList (java.util.ArrayList)6 TextAttributes (com.intellij.openapi.editor.markup.TextAttributes)5 TextAttributesKey (com.intellij.openapi.editor.colors.TextAttributesKey)4 Project (com.intellij.openapi.project.Project)4 DependencyValidationManager (com.intellij.packageDependencies.DependencyValidationManager)4 NotNull (org.jetbrains.annotations.NotNull)4 HighlightDisplayLevel (com.intellij.codeHighlighting.HighlightDisplayLevel)3 HighlightDisplayKey (com.intellij.codeInsight.daemon.HighlightDisplayKey)3 DumbAwareAction (com.intellij.openapi.project.DumbAwareAction)3 AnActionEvent (com.intellij.openapi.actionSystem.AnActionEvent)2 EditorColorsManager (com.intellij.openapi.editor.colors.EditorColorsManager)2 EditorColorsScheme (com.intellij.openapi.editor.colors.EditorColorsScheme)2 PatternPackageSet (com.intellij.psi.search.scope.packageSet.PatternPackageSet)2 THashSet (gnu.trove.THashSet)2 IOException (java.io.IOException)2 Element (org.jdom.Element)2 AnalysisScope (com.intellij.analysis.AnalysisScope)1