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

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

Issue 10387008: External file text search engine support. (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/core/text/TextSearchEngine.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.search/src/com/google/dart/tools/search/core/text/TextSearchEngine.java (revision 7355)
+++ editor/tools/plugins/com.google.dart.tools.search/src/com/google/dart/tools/search/core/text/TextSearchEngine.java (working copy)
@@ -13,17 +13,14 @@
*/
package com.google.dart.tools.search.core.text;
-import com.google.dart.tools.search.internal.core.text.TextSearchVisitor;
+import com.google.dart.tools.search.internal.core.text.TextSearchExecutor;
import com.google.dart.tools.search.internal.ui.SearchPlugin;
-import java.util.regex.Pattern;
-
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.resources.IFile;
+import java.util.regex.Pattern;
-
/**
* A {@link TextSearchEngine} searches the content of a workspace file resources for matches to a
* given search pattern.
@@ -55,15 +52,11 @@
*/
public static TextSearchEngine createDefault() {
return new TextSearchEngine() {
+ @Override
public IStatus search(TextSearchScope scope, TextSearchRequestor requestor,
Pattern searchPattern, IProgressMonitor monitor) {
- return new TextSearchVisitor(requestor, searchPattern).search(scope, monitor);
+ return new TextSearchExecutor(requestor, searchPattern).search(scope, monitor);
}
-
- public IStatus search(IFile[] scope, TextSearchRequestor requestor, Pattern searchPattern,
- IProgressMonitor monitor) {
- return new TextSearchVisitor(requestor, searchPattern).search(scope, monitor);
- }
};
}
@@ -80,17 +73,4 @@
public abstract IStatus search(TextSearchScope scope, TextSearchRequestor requestor,
Pattern searchPattern, IProgressMonitor monitor);
- /**
- * Uses a given search pattern to find matches in the content of workspace file resources. If a
- * file is open in an editor, the editor buffer is searched.
- *
- * @param requestor the search requestor that gets the search results
- * @param scope the files to search in
- * @param searchPattern The search pattern used to find matches in the file contents.
- * @param monitor the progress monitor to use
- * @return the status containing information about problems in resources searched.
- */
- public abstract IStatus search(IFile[] scope, TextSearchRequestor requestor,
- Pattern searchPattern, IProgressMonitor monitor);
-
}

Powered by Google App Engine
This is Rietveld 408576698