Bug 57924 - Type Hierarchy does not display workspace classes until drill down
Summary: Type Hierarchy does not display workspace classes until drill down
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux-GTK
: P3 major (vote)
Target Milestone: 3.0 RC2   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-08 11:52 EDT by Nigel Daniels CLA
Modified: 2004-06-02 16:12 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nigel Daniels CLA 2004-04-08 11:52:07 EDT
I was able to see the problem in two ways:

If use the 'Open Type Hierachy' by right clicking a type in an included library
I do not see the descendants of that class from my own project. Note that there
are up to three layers in between the root type and my derived classes, these
are also from the libraries in use. 

However if I focus on one of the intermediate types then the types in my project
appear. If I then return to the root types hierachy the 'discovered' types are
there.

I came across this problem programatically by calling. In this code snippet
currentProject is of type IJavaProject :

<snip>

IType rootType = currentProject.findType(nameOfTheRootType);
ITypeHierarchy typeHierarchy = rootType.newTypeHierarchy(new NullProgressMonitor());
IType[] classArray = typeHierarchy.getAllClasses();

</snip>

In the returned array I did not find the classes in my project that I expected
to see but did see the intermediate classes from the libraries I was using.
Comment 1 Travis Hume CLA 2004-05-13 20:10:43 EDT
I confirm this behaviour.  Ctrl+T and F4 open emtpy hierarchies.  I haven't
determined the exact method of "fixing" this, but it involves opening a subclass
and then openening a hierarch on it.
Comment 2 Jerome Lanneluc CLA 2004-05-18 10:04:56 EDT
We've fixed several problems in hierarchies recently. Can you please try with 
a recent integration build? If you still see the problem, could you add 
detailed steps to reproduce it to this bug report?
Comment 3 Kim Horne CLA 2004-05-18 11:51:13 EDT
This is still happening in 200405180816.  For instance, if I open the hierarchy
on IWorkbench I get no children.  If you perform this on any interface, you will
only ever get interface children - never classes.
Comment 4 Jerome Lanneluc CLA 2004-05-18 12:12:25 EDT
Kim this is a separate issue. I've entered bug 62686 for you.
Comment 5 Jerome Lanneluc CLA 2004-06-02 07:01:38 EDT
Nigel, Travis, do you still see the problem in 3.0 RC1 ?
Comment 6 Travis Hume CLA 2004-06-02 12:42:02 EDT
Nope.  I checked RC1 yesterday and the one class that always had a problem is
fine now.
Comment 7 Jerome Lanneluc CLA 2004-06-02 16:12:26 EDT
Thanks. Please reopen if you see the problem again.