return createSearcher(engine, newSearchScope, visitor, searchPattern);
}
public final static TextSearcher createSearcher(IResource resource,
ResultVisitor visitor, Pattern searchPattern) {
final TextSearchScope searchScope = TextSearchScope.newSearchScope(
new IResource[] { resource }, Pattern.compile(".*"), true); //$NON-NLS-1$
return createSearcher(searchScope, visitor, searchPattern);
}