[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [pdt-dev] Usage of SearchEngine.createSuperHierarchyScope()

if you are looking for a specific type hierarchy I recommend using:
org.eclipse.dltk.core.IType.newSupertypeHierarchy(ISourceModule[],
IProgressMonitor)

can you tell me the context of your request?
Roy
-----Original Message-----
From: pdt-dev-bounces@xxxxxxxxxxx [mailto:pdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Robert Gruendler
Sent: Friday, June 19, 2009 5:33 PM
To: PDT Developers
Subject: [pdt-dev] Usage of SearchEngine.createSuperHierarchyScope()

Hi all,

i'm trying to search for all classes being or extending a specific class

inside a user defined library.

Right now, this approach doesn't return any results:

      IDLTKSearchScope projectScope = 
PHPModelUtils.createProjectSearchScope(scriptProject);
      IType[] types = PHPModelUtils.getTypes("baseClass", projectScope);

      IDLTKSearchScope taskScope = 
SearchEngine.createSuperHierarchyScope(type);
      IType[] classes = PHPModelUtils.getAllClasses(taskScope);



Is there any recommended way to search for a class hierarchy ?


thanks !

-robert
_______________________________________________
pdt-dev mailing list
pdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pdt-dev