### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: search/org/eclipse/jdt/core/search/SearchEngine.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/search/org/eclipse/jdt/core/search/SearchEngine.java,v retrieving revision 1.130 diff -u -r1.130 SearchEngine.java --- search/org/eclipse/jdt/core/search/SearchEngine.java 29 Mar 2006 03:14:01 -0000 1.130 +++ search/org/eclipse/jdt/core/search/SearchEngine.java 18 May 2006 10:18:55 -0000 @@ -540,15 +540,92 @@ /** * Searches for all top-level types and member types in the given scope. - * The search can be selecting specific types (given a package or a type name - * prefix and match modes). + * The search can be selecting specific types (given a package exact full name or + * a type name with specific match mode). + * + * @param packageName the exact package full name of the searched types.
+ * If you want to use a prefix or a wild-carded string for package, you need to use + * {@link #searchAllTypeNames(char[], int, char[], int, int, IJavaSearchScope, TypeNameRequestor, int, IProgressMonitor)} method instead. + * @param typeName the dot-separated qualified name of the searched type (the qualification include + * the enclosing types if the searched type is a member type), or a prefix + * for this type, or a wild-carded string for this type. + * @param matchRule type name match rule one of + * + * combined with {@link SearchPattern#R_CASE_SENSITIVE}, + * e.g. {@link SearchPattern#R_EXACT_MATCH} | {@link SearchPattern#R_CASE_SENSITIVE} if an exact and case sensitive match is requested, + * or {@link SearchPattern#R_PREFIX_MATCH} if a prefix non case sensitive match is requested. + * @param searchFor determines the nature of the searched elements + * + * @param scope the scope to search in + * @param nameRequestor the requestor that collects the results of the search + * @param waitingPolicy one of + * + * @param progressMonitor the progress monitor to report progress to, or null if no progress + * monitor is provided + * @exception JavaModelException if the search failed. Reasons include: + * + * @since 3.1 + */ + public void searchAllTypeNames( + final char[] packageName, + final char[] typeName, + final int matchRule, + int searchFor, + IJavaSearchScope scope, + final TypeNameRequestor nameRequestor, + int waitingPolicy, + IProgressMonitor progressMonitor) throws JavaModelException { + + TypeNameRequestorWrapper requestorWrapper = new TypeNameRequestorWrapper(nameRequestor); + this.basicEngine.searchAllTypeNames(packageName, SearchPattern.R_EXACT_MATCH, typeName, matchRule, searchFor, scope, requestorWrapper, waitingPolicy, progressMonitor); + } + + /** + * Searches for all top-level types and member types in the given scope. + * The search can be selecting specific types (given a package name using specific match mode + * and/or a type name using another specific match mode). * * @param packageName the full name of the package of the searched types, or a prefix for this * package, or a wild-carded string for this package. * @param typeName the dot-separated qualified name of the searched type (the qualification include * the enclosing types if the searched type is a member type), or a prefix * for this type, or a wild-carded string for this type. - * @param matchRule one of + * @param packageMatchRule one of + * + * combined with {@link SearchPattern#R_CASE_SENSITIVE}, + * e.g. {@link SearchPattern#R_EXACT_MATCH} | {@link SearchPattern#R_CASE_SENSITIVE} if an exact and case sensitive match is requested, + * or {@link SearchPattern#R_PREFIX_MATCH} if a prefix non case sensitive match is requested. + * @param typeMatchRule one of *