[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-patch] patch for BasicSearchResultCollector
|
This patch adds a setProgressMonitor() method and gets rid of some
warnings by removing the unneeded "throws CoreException" on the
createMatch() method declaration.
-Chris
Index: search/org/eclipse/cdt/core/search/BasicSearchResultCollector.java
===================================================================
retrieving revision 1.10
diff -u -r1.10 BasicSearchResultCollector.java
--- search/org/eclipse/cdt/core/search/BasicSearchResultCollector.java 5 Feb 2004 19:56:27 -0000 1.10
+++ search/org/eclipse/cdt/core/search/BasicSearchResultCollector.java 26 Feb 2004 19:19:49 -0000
@@ -73,13 +73,17 @@
return fProgressMonitor;
}
+ public void setProgressMonitor(IProgressMonitor monitor) {
+ fProgressMonitor = monitor;
+ }
+
public IMatch createMatch(Object fileResource, int start, int end, ISourceElementCallbackDelegate node ) throws CoreException
{
BasicSearchMatch result = new BasicSearchMatch();
return createMatch( result, fileResource, start, end, node );
}
- public IMatch createMatch( BasicSearchMatch result, Object fileResource, int start, int end, ISourceElementCallbackDelegate node ) throws CoreException {
+ public IMatch createMatch( BasicSearchMatch result, Object fileResource, int start, int end, ISourceElementCallbackDelegate node ) {
if( fileResource instanceof IResource )
result.resource = (IResource) fileResource;
else if( fileResource instanceof IPath )