requestor.setReplacementLength(replacementLength);
requestor.setIgnoreAbstractClasses(ignoreAbstractClasses);
try {
IJavaElement[] elements = new IJavaElement[]{getJavaProject(resource)};
IJavaSearchScope scope = SearchEngine.createJavaSearchScope(elements);
new SearchEngine().searchAllTypeNames(null, null, SearchPattern.R_PATTERN_MATCH | SearchPattern.R_PREFIX_MATCH, searchFor, scope, requestor, IJavaSearchConstants.WAIT_UNTIL_READY_TO_SEARCH, null);
}
catch (CoreException exc) {
Logger.logException(exc);