IJavaSearchConstants.TYPE,
IJavaSearchConstants.DECLARATIONS,
SearchPattern.R_EXACT_MATCH | SearchPattern.R_CASE_SENSITIVE);
IJavaSearchScope scope =
SearchEngine.createJavaSearchScope(new IJavaElement[]{javaProject});
SearchRequestor requestor = new SearchRequestor();
SearchEngine engine = new SearchEngine();
SearchParticipant[] participants =
new SearchParticipant[]{SearchEngine.getDefaultSearchParticipant()};
engine.search(pattern, participants, scope, requestor, null);
ArrayList<IType> types = new ArrayList<IType>();
if (requestor.getMatches().size() > 0){
for (SearchMatch match : requestor.getMatches()){
if(match.getAccuracy() != SearchMatch.A_ACCURATE){
continue;
}
IJavaElement element = (IJavaElement)match.getElement();
if (element.getElementType() == IJavaElement.TYPE){