public void locateMatches(SearchDocument[] indexMatches, SearchPattern pattern, IJavaSearchScope scope, SearchRequestor requestor, IProgressMonitor monitor) throws CoreException { if (monitor != null && monitor.isCanceled()) return; // filter out null matches List filtered = new ArrayList(); SearchDocument match = null; for (int i = 0; i < indexMatches.length; i++) { if (DEBUG) System.out.println("found possible matching JavaSearchDocumentDelegate: " + indexMatches[i]); //$NON-NLS-1$ match = indexMatches[i]; if (match != null) { // some matches may be null, or if the index is out of date, // the file may not even exist if (match instanceof JavaSearchDocumentDelegate && ((JavaSearchDocumentDelegate) match).getFile().exists()) filtered.add(match); } } indexMatches = (SearchDocument[]) filtered.toArray(new SearchDocument[filtered.size()]); SearchEngine.getDefaultSearchParticipant().locateMatches(indexMatches, pattern, scope, requestor, monitor); }
participant.locateMatches(matches, pattern, scope, requestor, monitor==null ? null : new SubProgressMonitor(monitor, 50));
participant.locateMatches(matches, pattern, scope, requestor, monitor==null ? null : new SubProgressMonitor(monitor, 50));
participant.locateMatches(matches, pattern, scope, requestor, monitor==null ? null : new SubProgressMonitor(monitor, 50));
getWorkingCopies(enclosingElement), participant); participant.locateMatches( documents, pattern,
getWorkingCopies(enclosingElement), participant); participant.locateMatches( documents, pattern,
getWorkingCopies(enclosingElement), participant); participant.locateMatches( documents, pattern,
getWorkingCopies(enclosingElement), participant); participant.locateMatches( documents, pattern,
getWorkingCopies(enclosingElement), participant); participant.locateMatches( documents, pattern,
getWorkingCopies(enclosingElement), participant); participant.locateMatches( documents, pattern,
participant.locateMatches(matches, pattern, scope, requestor, iterationMonitor.split(50));
participant.locateMatches(matches, pattern, scope, requestor, iterationMonitor.split(50));
participant.locateMatches(matches, pattern, scope, requestor, iterationMonitor.split(50));