Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Possible bugs with code ITypeHierarchy?
Possible bugs with code ITypeHierarchy? [message #215370] Wed, 24 March 2004 08:58 Go to next message
Eclipse UserFriend
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
Re: Possible bugs with code ITypeHierarchy? [message #215551 is a reply to message #215370] Wed, 24 March 2004 23:56 Go to previous message
Eclipse UserFriend
Originally posted by: akiezun.cuthis.mit.edu.andthis

if you think it's a bug, please enter a bugzilla report
component is JDT CORE
a.
Previous Topic:Notifying event loop
Next Topic:Possible bugs with ITypeHierarchy?
Goto Forum:
  


Current Time: Sat May 03 13:32:29 EDT 2025

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

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

Back to the top