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

This commit is contained in:
Alexey Kudravtsev
2016-10-25 13:45:05 +03:00
parent 5dab63b25c
commit 2bc1a4e421
@@ -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();