mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
look for inner and anonymous classes in non-source files
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.debugger.engine;
|
||||
|
||||
import com.intellij.debugger.MultiRequestPositionManager;
|
||||
@@ -337,8 +337,8 @@ public class PositionManagerImpl implements PositionManager, MultiRequestPositio
|
||||
PsiFile[] files = FilenameIndex.getFilesByName(project, refType.sourceName(), GlobalSearchScope.allScope(project));
|
||||
for (PsiFile file : files) {
|
||||
if (file instanceof PsiJavaFile) {
|
||||
for (PsiClass cls : ((PsiJavaFile)file).getClasses()) {
|
||||
if (StringUtil.equals(originalQName, cls.getQualifiedName())) {
|
||||
for (PsiClass cls : PsiTreeUtil.findChildrenOfAnyType(file, PsiClass.class)) {
|
||||
if (StringUtil.equals(originalQName, JVMNameUtil.getClassVMName(cls))) {
|
||||
return file;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user