mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't alt-f1 on scratches (IDEA-175587)
This commit is contained in:
@@ -20,6 +20,7 @@ import com.intellij.ide.SelectInContext;
|
||||
import com.intellij.ide.SelectInManager;
|
||||
import com.intellij.ide.StandardTargetWeights;
|
||||
import com.intellij.ide.impl.ProjectViewSelectInTarget;
|
||||
import com.intellij.ide.scratch.ScratchUtil;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.packageDependencies.DependencyValidationManager;
|
||||
import com.intellij.psi.PsiElement;
|
||||
@@ -53,6 +54,7 @@ public class ScopePaneSelectInTarget extends ProjectViewSelectInTarget {
|
||||
@Nullable
|
||||
private NamedScope getContainingScope(@Nullable PsiFile file) {
|
||||
if (file == null) return null;
|
||||
if (ScratchUtil.isScratch(file.getVirtualFile())) return null;
|
||||
NamedScopesHolder scopesHolder = DependencyValidationManager.getInstance(myProject);
|
||||
for (NamedScope scope : ScopeViewPane.getShownScopes(myProject)) {
|
||||
PackageSet packageSet = scope.getValue();
|
||||
|
||||
Reference in New Issue
Block a user