Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Finding subtypes
Finding subtypes [message #604171] Thu, 14 January 2010 19:40 Go to next message
Eclipse UserFriend
Hello,

I would like to know if there is any way to find all subtypes of particular class from my plug-in. I have an IJavaElement which represents this class and ideally I would like to find all its subtypes represented also as IJavaElements, though even their qualified names could be sufficient..

If anyone knows solution to my problem I'd be very grateful for helping me.

Thanks in advance and best regards.
Michal Olejnik
Re: Finding subtypes [message #604179 is a reply to message #604171] Fri, 15 January 2010 03:52 Go to previous message
Eclipse UserFriend
Hello,

You will need your (runtime workspace) project to be a Java Project and use JDT API to list subtypes.
The code to use is parentType.newTypeHierarchy(project,null).getAllSubtypes(par entType).

I cross-posted this answer to JDT newsgroup/forum, which is more accurate for your question.

Regards,
--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Previous Topic:Finding subtypes
Next Topic:Welcome to eclipse.scalamodules
Goto Forum:
  


Current Time: Sat Jul 12 14:35:27 EDT 2025

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

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

Back to the top