try {
IJavaSearchScope hierarchyScope = SearchEngine.createHierarchyScope(superType);
IJavaSearchScope projectScope = SearchEngine.createJavaSearchScope(new IJavaElement[] { jproject });
IJavaSearchScope scope = new IntersectingJavaSearchScope(projectScope, hierarchyScope);
SearchEngine searchEngine = new SearchEngine();
char[] typeName = null;
char[] packageName = null;
if (!contentAssistRequest.getMatchString().isEmpty()) {
typeName = contentAssistRequest.getMatchString().toCharArray();
}
searchEngine.searchAllTypeNames(packageName, SearchPattern.R_PATTERN_MATCH, typeName, SearchPattern.R_PREFIX_MATCH | SearchPattern.R_CAMELCASE_MATCH, IJavaSearchConstants.CLASS, scope, new TypeNameRequestor() {
@Override
public void acceptType(int modifiers, char[] packageName, char[] simpleTypeName, char[][] enclosingTypeNames, String path) {
String sPackageName = new String(packageName);
int priority = PRIORITY_LOWER_1;
if (sPackageName.startsWith("com.sun.javafx")) {