Search in sources :

Example 1 with ConstructorDeclarationPattern

use of org.eclipse.jdt.internal.core.search.matching.ConstructorDeclarationPattern in project xtext-eclipse by eclipse.

the class JdtBasedConstructorScope method collectContents.

public void collectContents(IJavaSearchScope searchScope, SearchRequestor searchRequestor) throws CoreException {
    SearchPattern pattern = new ConstructorDeclarationPattern(null, null, SearchPattern.R_PREFIX_MATCH);
    new SearchEngine().search(pattern, SearchUtils.getDefaultSearchParticipants(), searchScope, searchRequestor, new NullProgressMonitor());
}
Also used : ConstructorDeclarationPattern(org.eclipse.jdt.internal.core.search.matching.ConstructorDeclarationPattern) NullProgressMonitor(org.eclipse.core.runtime.NullProgressMonitor) SearchEngine(org.eclipse.jdt.core.search.SearchEngine) SearchPattern(org.eclipse.jdt.core.search.SearchPattern)

Aggregations

NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)1 SearchEngine (org.eclipse.jdt.core.search.SearchEngine)1 SearchPattern (org.eclipse.jdt.core.search.SearchPattern)1 ConstructorDeclarationPattern (org.eclipse.jdt.internal.core.search.matching.ConstructorDeclarationPattern)1