mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
When find usages is invoked for compiled file (e.g. ClsFileImpl), valid PsiElement is used as searched target.
This commit is contained in:
@@ -159,6 +159,9 @@ public class TargetElementUtilBase {
|
||||
|
||||
offset = adjustOffset(document, offset);
|
||||
|
||||
if (file instanceof PsiCompiledFile) {
|
||||
file = ((PsiCompiledFile) file).getDecompiledPsiFile();
|
||||
}
|
||||
PsiElement element = file.findElementAt(offset);
|
||||
if ((flags & REFERENCED_ELEMENT_ACCEPTED) != 0) {
|
||||
final PsiElement referenceOrReferencedElement = getReferenceOrReferencedElement(file, editor, flags, offset);
|
||||
|
||||
Reference in New Issue
Block a user