Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.search
Class BasicSearchResultCollector

java.lang.Object
  extended by org.eclipse.cdt.core.search.BasicSearchResultCollector
All Implemented Interfaces:
ICSearchResultCollector

public class BasicSearchResultCollector
extends Object
implements ICSearchResultCollector


Field Summary
 
Fields inherited from interface org.eclipse.cdt.core.search.ICSearchResultCollector
EXACT_MATCH, POTENTIAL_MATCH
 
Constructor Summary
BasicSearchResultCollector()
           
BasicSearchResultCollector(IProgressMonitor monitor)
           
 
Method Summary
 void aboutToStart()
          Called before the actual search starts.
 boolean acceptMatch(IMatch match)
           
 IMatch createMatch(BasicSearchMatch result, Object fileResource, int start, int end, org.eclipse.cdt.core.parser.ISourceElementCallbackDelegate node, IPath referringElement)
           
 IMatch createMatch(Object fileResource, int start, int end, org.eclipse.cdt.core.parser.ISourceElementCallbackDelegate node, IPath referringElement)
           
 void done()
          Called when the search has ended.
 IProgressMonitor getProgressMonitor()
          Returns the progress monitor used to report progress.
 Set getSearchResults()
           
 void setProgressMonitor(IProgressMonitor monitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicSearchResultCollector

public BasicSearchResultCollector()

BasicSearchResultCollector

public BasicSearchResultCollector(IProgressMonitor monitor)
Method Detail

aboutToStart

public void aboutToStart()
Description copied from interface: ICSearchResultCollector
Called before the actual search starts.

Specified by:
aboutToStart in interface ICSearchResultCollector

done

public void done()
Description copied from interface: ICSearchResultCollector
Called when the search has ended.

Specified by:
done in interface ICSearchResultCollector

getProgressMonitor

public IProgressMonitor getProgressMonitor()
Description copied from interface: ICSearchResultCollector
Returns the progress monitor used to report progress.

Specified by:
getProgressMonitor in interface ICSearchResultCollector
Returns:
a progress monitor or null if no progress monitor is provided

setProgressMonitor

public void setProgressMonitor(IProgressMonitor monitor)

createMatch

public IMatch createMatch(Object fileResource,
                          int start,
                          int end,
                          org.eclipse.cdt.core.parser.ISourceElementCallbackDelegate node,
                          IPath referringElement)
Specified by:
createMatch in interface ICSearchResultCollector

createMatch

public IMatch createMatch(BasicSearchMatch result,
                          Object fileResource,
                          int start,
                          int end,
                          org.eclipse.cdt.core.parser.ISourceElementCallbackDelegate node,
                          IPath referringElement)

acceptMatch

public boolean acceptMatch(IMatch match)
                    throws CoreException
Specified by:
acceptMatch in interface ICSearchResultCollector
Throws:
CoreException

getSearchResults

public Set getSearchResults()

Eclipse CDT
Pre-release 3.0

Copyright (c) IBM Corp. and others 2004. All Rights Reserved.