Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Getting subclasses of a class
Getting subclasses of a class [message #253650] Sat, 31 May 2008 13:33 Go to next message
Eclipse UserFriend
Originally posted by: pschoenb.gmx.de

Hi,

since the Java reflection mechanism does not allow to find out the
subclasses of a class, I'd like to use the JDT tooling for that task.
However, I have two questions:

1. How do I do this exactly? Are there any examples?

2. How do I convert a Class object into an IType?

--
Regards,
Patrick
Re: Getting subclasses of a class [message #253658 is a reply to message #253650] Sat, 31 May 2008 19:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jack.NO.SPAM

Patrick Schoenbach a écrit :
> Hi,
>
> since the Java reflection mechanism does not allow to find out the
> subclasses of a class, I'd like to use the JDT tooling for that task.
> However, I have two questions:
>
> 1. How do I do this exactly? Are there any examples?
>
> 2. How do I convert a Class object into an IType?

You could search for "EclipseCON2005_Tutorial29.pdf" on the Internet. It
explains the best pratices of IType and type hierarchy.
Re: Getting subclasses of a class [message #253661 is a reply to message #253658] Sun, 01 June 2008 07:16 Go to previous message
Eclipse UserFriend
Originally posted by: pschoenb.gmx.de

On Sun, 01 Jun 2008 01:50:34 +0200, Jack wrote:

> Patrick Schoenbach a écrit :
>> Hi,
>>
>> since the Java reflection mechanism does not allow to find out the
>> subclasses of a class, I'd like to use the JDT tooling for that task.
>> However, I have two questions:
>>
>> 1. How do I do this exactly? Are there any examples?
>>
>> 2. How do I convert a Class object into an IType?
>
> You could search for "EclipseCON2005_Tutorial29.pdf" on the Internet. It
> explains the best pratices of IType and type hierarchy.

This is already helpful, thanks. But could someone please give me a
concrete code example how to create a subtype hierarchy that also takes
into account the classes of the referenced projects?

--
Regards,
Patrick
Previous Topic:[article] [announce] Automating the embedding of DSLs in JDT
Next Topic:RC3 wont start on Ubuntu: XPCOM Mozilla error
Goto Forum:
  


Current Time: Tue Apr 29 01:33:17 EDT 2025

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

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

Back to the top