From be48e473ceaeac71df5b3369798f5b1171c9de14 Mon Sep 17 00:00:00 2001 From: "Maxim.Mossienko" Date: Wed, 29 Mar 2017 17:14:57 +0200 Subject: [PATCH] No "Project Files" scope in "Find in Path" dialog (IDEA-170619) --- .../src/com/intellij/find/impl/FindPopupScopeUIImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/find/impl/FindPopupScopeUIImpl.java b/platform/lang-impl/src/com/intellij/find/impl/FindPopupScopeUIImpl.java index aa6f887f4984..a5d0a3491d8f 100644 --- a/platform/lang-impl/src/com/intellij/find/impl/FindPopupScopeUIImpl.java +++ b/platform/lang-impl/src/com/intellij/find/impl/FindPopupScopeUIImpl.java @@ -87,7 +87,7 @@ public class FindPopupScopeUIImpl implements FindPopupScopeUI { myScopeCombo = new ScopeChooserCombo(); myScopeCombo.init(myProject, true, true, FindSettings.getInstance().getDefaultScopeName(), new Condition() { - final String projectFilesScopeName = PsiBundle.message("psi.search.scope.project"); + //final String projectFilesScopeName = PsiBundle.message("psi.search.scope.project"); final String moduleFilesScopeName; { @@ -99,7 +99,7 @@ public class FindPopupScopeUIImpl implements FindPopupScopeUI { @Override public boolean value(ScopeDescriptor descriptor) { final String display = descriptor.getDisplay(); - return !projectFilesScopeName.equals(display) && !display.startsWith(moduleFilesScopeName); + return /*!projectFilesScopeName.equals(display) &&*/ !display.startsWith(moduleFilesScopeName); } }); myScopeCombo.setBrowseListener(new ScopeChooserCombo.BrowseListener() {