Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Problem using Java Search Engine(Can't find what I want)
Problem using Java Search Engine [message #717090] Fri, 19 August 2011 09:15 Go to next message
Eclipse UserFriend
Hi, I am trying to develop a plugin for eclipse and I am trying to use SearchEngine class to find all classes in a project that extend a given class..

I am using this pattern:

SearchPattern.createPattern("package.of.the.class.Class", IJavaSearchConstants.TYPE, IJavaSearchConstants.IMPLEMENTORS, SearchPattern.R_EXACT_MATCH);

Shouldn't this work?
It is only returning classes that extend that class directly, not classes that extend a subclass of that one. How can I have it to do that?

Thank you.
Re: Problem using Java Search Engine [message #717171 is a reply to message #717090] Fri, 19 August 2011 14:06 Go to previous messageGo to next message
Eclipse UserFriend
Look at ITypeHierarchy.
Re: Problem using Java Search Engine [message #717210 is a reply to message #717171] Fri, 19 August 2011 15:43 Go to previous message
Eclipse UserFriend
Thank you, I was able to do it using that interface and searching for each of the subclasses.
Previous Topic:ASTParser setEnvironment which paths to use
Next Topic:How to use ASTRewrite to update/add contents to a method?
Goto Forum:
  


Current Time: Sat Feb 08 17:48:38 GMT 2025

Powered by FUDForum. Page generated in 0.03983 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top