scope: display "Open Files" label in scope selector combobox instead of bare hashCode...
[idea/community.git] / platform / lang-impl / src / com / intellij / ide / util / scopeChooser / ScopeChooserUtils.java
index fb5a9bde7ab2a74ce11b2cbfcc8eaa72d44c5177..05bbf70cae0fb66dc449dd3a39eac083ced93a3c 100644 (file)
@@ -37,7 +37,6 @@ import java.util.List;
 
 public class ScopeChooserUtils {
 
-  private static final String OPEN_FILES_SCOPE_NAME = "Open Files";
   private static final String CURRENT_FILE_SCOPE_NAME = IdeBundle.message("scope.current.file");
 
   private ScopeChooserUtils() {
@@ -49,7 +48,7 @@ public class ScopeChooserUtils {
     if (namedScope == null) {
       namedScope = NamedScopesHolder.getScope(project, scopeName);
     }
-    if (namedScope == null && OPEN_FILES_SCOPE_NAME.equals(scopeName)) {
+    if (namedScope == null && GlobalSearchScopes.OPEN_FILES_SCOPE_NAME.equals(scopeName)) {
       return intersectWithContentScope(project, GlobalSearchScopes.openFilesScope(project));
     }
     if (namedScope == null && CURRENT_FILE_SCOPE_NAME.equals(scopeName)) {