No "Project Files" scope in "Find in Path" dialog (IDEA-170619)

This commit is contained in:
Maxim.Mossienko
2017-03-29 17:14:57 +02:00
parent 276bdcce06
commit be48e473ce
@@ -87,7 +87,7 @@ public class FindPopupScopeUIImpl implements FindPopupScopeUI {
myScopeCombo = new ScopeChooserCombo();
myScopeCombo.init(myProject, true, true, FindSettings.getInstance().getDefaultScopeName(), new Condition<ScopeDescriptor>() {
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() {