From 2bc1a4e4211b5abcdb876c946b8448f59185c3ac Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Tue, 25 Oct 2016 13:43:18 +0300 Subject: [PATCH] hack to allow ill-configured projects where libraries depend on project classes to find usages of these classes in libraries: IDEA-99773 Find usages CTRL-ALT-F7 does not have scope Project & Libraries anymore --- .../com/intellij/find/findUsages/CommonFindUsagesDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/find/findUsages/CommonFindUsagesDialog.java b/platform/lang-impl/src/com/intellij/find/findUsages/CommonFindUsagesDialog.java index 3315eac0b979..366ae79af5a6 100644 --- a/platform/lang-impl/src/com/intellij/find/findUsages/CommonFindUsagesDialog.java +++ b/platform/lang-impl/src/com/intellij/find/findUsages/CommonFindUsagesDialog.java @@ -47,7 +47,7 @@ public class CommonFindUsagesDialog extends AbstractFindUsagesDialog { boolean isSingleFile, @NotNull FindUsagesHandler handler) { super(project, findUsagesOptions, toShowInNewTab, mustOpenInNewTab, isSingleFile, isTextSearch(element, isSingleFile, handler), - !isSingleFile && !element.getManager().isInProject(element)); + true); myPsiElement = element; myHelpId = ObjectUtils.chooseNotNull(handler.getHelpId(), HelpID.FIND_OTHER_USAGES); init();