SearchEngine engine = new SearchEngine();
SearchParticipant defaultSearchParticipant = SearchEngine.getDefaultSearchParticipant();
IDLTKSearchScope scope = SearchEngine.createSearchScope(searchProj);
engine.search(searchPattern, array(defaultSearchParticipant), scope, requestor, new NullProgressMonitor());
return requestor;
}
protected void testSearch(SearchPattern searchPattern, HashSet<IModelElement> expected) throws CoreException {
SearchRequestorResultCollector requestor = executeSearch(searchPattern);