1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

2004-02-05 Alain Magloire

PR 51221
	Reformat Patch from Bogdan base on Thomas Fletcher original patch
	In a nutshell, it moves the search operation into a runnable which
	can be passed to a progress dialog.
This commit is contained in:
Alain Magloire 2004-02-05 19:56:27 +00:00
parent 8df8840f36
commit 65f227f889
2 changed files with 17 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2004-02-05 Alain Magloire
PR 51221
Reformat Patch from Bogdan base on Thomas Fletcher original patch
In a nutshell, it moves the search operation into a runnable which
can be passed to a progress dialog.
* search/org/eclipse/cdt/core/search/BasicSearchResultCollector.java
2004-01-26 John Camelon
Updated clients to use new Scanner logging service.

View file

@ -53,6 +53,14 @@ import org.eclipse.core.runtime.IProgressMonitor;
* Window>Preferences>Java>Code Generation>Code and Comments
*/
public class BasicSearchResultCollector implements ICSearchResultCollector {
IProgressMonitor fProgressMonitor = null;
public BasicSearchResultCollector() {
}
public BasicSearchResultCollector(IProgressMonitor monitor) {
fProgressMonitor = monitor;
}
public void aboutToStart() {
results = new HashSet();
@ -62,7 +70,7 @@ public class BasicSearchResultCollector implements ICSearchResultCollector {
}
public IProgressMonitor getProgressMonitor() {
return null;
return fProgressMonitor;
}
public IMatch createMatch(Object fileResource, int start, int end, ISourceElementCallbackDelegate node ) throws CoreException