This commit is contained in:
Peter Gromov
2005-01-28 21:04:15 +03:00
parent 8aabeb5439
commit 8167d29a6b
@@ -203,6 +203,8 @@ public class UsageInfo2UsageAdapter implements Usage, UsageInModule, UsageInLibr
PsiElement element = myUsageInfo.getElement();
PsiFile psiFile = element.getContainingFile();
VirtualFile virtualFile = getFile();
if (virtualFile == null) return null;
ProjectRootManager projectRootManager = ProjectRootManager.getInstance(element.getProject());
ProjectFileIndex fileIndex = projectRootManager.getFileIndex();