List of usage examples for org.eclipse.jdt.internal.core.search BasicSearchEngine createHierarchyScope
public static IJavaSearchScope createHierarchyScope(IType type, WorkingCopyOwner owner) throws JavaModelException
From source file:org.eclipse.jdt.core.search.SearchEngine.java
License:Open Source License
/** * Returns a Java search scope limited to the hierarchy of the given type. * When the hierarchy is computed, the types defined in the working copies owned * by the given owner take precedence over the original compilation units. * The Java elements resulting from a search with this scope will * be types in this hierarchy, or members of the types in this hierarchy. * * @param type the focus of the hierarchy scope * @param owner the owner of working copies that take precedence over original compilation units * @return a new hierarchy scope//ww w. ja v a 2 s .c o m * @exception JavaModelException if the hierarchy could not be computed on the given type * @since 3.0 */ public static IJavaSearchScope createHierarchyScope(IType type, WorkingCopyOwner owner) throws JavaModelException { return BasicSearchEngine.createHierarchyScope(type, owner); }