Possible bugs with code ITypeHierarchy? [message #215370] |
Wed, 24 March 2004 08:58  |
Eclipse User |
|
|
|
Originally posted by: duan-yonghong.sjtu.edu.cn
Hi,
In my program, I use
getSubtypes
public IType[] getSubtypes(IType type)
method in org.eclipse.jdt.core.ITypeHierarchy to get the direct
resolved subtypes of a given type.
When the project containing the given type locates in workspace,
it works well.
However, when the project is not in workspace, this method return
all resolved subtypes (direct and indirect) of the given type, other
than direct subtypes.
I have run my program in Eclipse version 2.1.2 and 2.1.3, and get
the same result.
I am worndering if it is a bug and whether it is fixed in Eclipse
3.0 ?
The getSubtypes method API description as follows:
getSubtypes
public IType[] getSubtypes(IType type)
Returns the direct resolved subtypes of the given type, in no particular
order, limited to the types in this type hierarchy's graph. If the type
is a class, this returns the resolved subclasses. If the type is an
interface, this returns both the classes which implement the interface and
the interfaces which extend it.
Parameters:
type - the given type
Returns:
the direct resolved subtypes of the given type limited to the types in this
type hierarchy's graph
Thank you for your attention!
Best Regards,
David Duan
SJTU
|
|
|
|
Powered by
FUDForum. Page generated in 0.02974 seconds