Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Unified Diff: editor/tools/plugins/com.google.dart.tools.search/src/com/google/dart/tools/search/internal/core/text/ExternalFilesOfScopeCalculator.java

Issue 10386033: Filter unwanted file types from editor text search scope. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.search/src/com/google/dart/tools/search/internal/core/text/ExternalFilesOfScopeCalculator.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.search/src/com/google/dart/tools/search/internal/core/text/ExternalFilesOfScopeCalculator.java (revision 7420)
+++ editor/tools/plugins/com.google.dart.tools.search/src/com/google/dart/tools/search/internal/core/text/ExternalFilesOfScopeCalculator.java (working copy)
@@ -55,12 +55,14 @@
}
private void visit(File root) throws CoreException {
- if (root.isDirectory()) {
- for (File file : root.listFiles()) {
- visit(file);
+ if (textSearchScope.contains(root)) {
+ if (root.isDirectory()) {
+ for (File file : root.listFiles()) {
+ visit(file);
+ }
+ } else {
+ files.add(root);
}
- } else {
- files.add(root);
}
}
}
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.search/src/com/google/dart/tools/search/internal/ui/text/TextSearchScopeFilter.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698