Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Doubt about ITypeHierarchy.getRootClasses()
Doubt about ITypeHierarchy.getRootClasses() [message #259264] Fri, 27 March 2009 11:52 Go to next message
Eclipse UserFriend
Hello

in which situations does ITypeHierarchy.getRootClasses() return more
than one class?

Isn't an ITypeHierarchy always a tree?

Shouldn't there always exist a unique root, say "java.lang.Object" or
the last successfully resolved class?

Best regards,
Mário
Re: Doubt about ITypeHierarchy.getRootClasses() [message #259399 is a reply to message #259264] Tue, 07 April 2009 10:29 Go to previous message
Eclipse UserFriend
Usually, there is indeed just a single root class (java.lang.Object).

But if you e.g. remove the JRE SystemLibrary from the build path of a
Java project and then compute the type hierarchy on a package, then
there may be multiple roots (which you can e.g. see in the Type
Hierarchy view).

Markus
Previous Topic:RefactoringUI should be able to be subclassed?
Next Topic:Call Hierachy can't traverse
Goto Forum:
  


Current Time: Tue Apr 22 16:55:55 EDT 2025

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

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

Back to the top