Getting subclasses of a class [message #253650] |
Sat, 31 May 2008 13:33  |
Eclipse User |
|
|
|
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 #253661 is a reply to message #253658] |
Sun, 01 June 2008 07:16  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.06243 seconds