org.eclipse.cdt.core.search
Class BasicSearchResultCollector
java.lang.Object
org.eclipse.cdt.core.search.BasicSearchResultCollector
- All Implemented Interfaces:
- ICSearchResultCollector
public class BasicSearchResultCollector
- extends Object
- implements ICSearchResultCollector
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicSearchResultCollector
public BasicSearchResultCollector()
BasicSearchResultCollector
public BasicSearchResultCollector(IProgressMonitor monitor)
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()
Copyright (c) IBM Corp. and others 2004. All Rights Reserved.