Lines 190-226
Link Here
|
190 |
|
190 |
|
191 |
/** |
191 |
/** |
192 |
* Returns a Java search scope limited to the hierarchy of the given type and to a given project. |
192 |
* Returns a Java search scope limited to the hierarchy of the given type and to a given project. |
193 |
* The Java elements resulting from a search with this scope will be types in this hierarchy, |
|
|
194 |
* or members or enclosing types of the types in this hierarchy. |
195 |
* <p> |
196 |
* By default, hierarchy scopes include all direct and indirect supertypes and subtypes of the |
197 |
* focus type. This method, however, allows to restrict the hierarchy to true subtypes, |
198 |
* neither including supertypes nor the focus type itself. |
199 |
* </p> |
200 |
* <p> |
201 |
* By default, hierarchy scopes include also member types and enclosing types of those types |
202 |
* that actually span the hierarchy. This method, however, allows to inhibit this behavior, |
203 |
* by passing <code>true</code> to the parameter <code>noMemberTypes</code>. |
204 |
* </p> |
205 |
* |
206 |
* @param project the project to which to constrain the search, or <code>null</code> if |
207 |
* search should consider all types in the workspace |
208 |
* @param type the focus of the hierarchy scope |
209 |
* @param onlySubtypes if true only subtypes of <code>type</code> are considered |
210 |
* @param noMemberTypes if true do not consider member or enclosing types of types in the given type hiearchy |
211 |
* @param owner the owner of working copies that take precedence over original compilation units, |
212 |
* or <code>null</code> if the primary working copy owner should be used |
213 |
* @return a new hierarchy scope |
214 |
* @exception JavaModelException if the hierarchy could not be computed on the given type |
215 |
* @deprecated Will be removed shortly before 3.6M5. Use {@link #createStrictHierarchyScope(IJavaProject, IType, boolean, boolean, WorkingCopyOwner)} instead. |
216 |
* @since 3.6 |
217 |
*/ |
218 |
public static IJavaSearchScope createHierarchyScope(IJavaProject project, IType type, boolean onlySubtypes, boolean noMemberTypes, WorkingCopyOwner owner) throws JavaModelException { |
219 |
return BasicSearchEngine.createHierarchyScope(project, type, onlySubtypes, noMemberTypes, owner); |
220 |
} |
221 |
|
222 |
/** |
223 |
* Returns a Java search scope limited to the hierarchy of the given type and to a given project. |
224 |
* The Java elements resulting from a search with this scope will be types in this hierarchy. |
193 |
* The Java elements resulting from a search with this scope will be types in this hierarchy. |
225 |
* <p> |
194 |
* <p> |
226 |
* Unlike the <code>createHierarchyScope</code> methods, this method creates <em>strict</em> |
195 |
* Unlike the <code>createHierarchyScope</code> methods, this method creates <em>strict</em> |