mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not show duplicate containing file when navigation element is a file itself
This commit is contained in:
@@ -50,6 +50,6 @@ public class PsiGotoRelatedItem extends GotoRelatedItem {
|
||||
|
||||
@Override
|
||||
public PsiFile getContainingFile() {
|
||||
return myElement.getContainingFile();
|
||||
return myElement instanceof PsiFile ? null : myElement.getContainingFile();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user