Bug 5557

Summary: Incorrect hierarchy shown (not rooted at Object)
Product: [Eclipse Project] JDT Reporter: James Moody <James_Moody>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P1 CC: n.a.edgar
Version: 1.0   
Target Milestone: 2.0 M1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description James Moody CLA 2001-11-05 21:00:34 EST
I opened a hierarchy on CellEditor in the jface package. I got the following 
structure in the hierarchy view (the first few classes are not rooted at 
Object, and they come from javax.swing).

+-AbstractCellEditor
| +-DefaultCellEditor
|   +-BooleanEditor
|   +-GenericEditor
|     +-NumberEditor
+-DefaultTreeCellEditor
+-Object
  +-CellEditor
    +-CheckboxCellEditor
    ... (from here on is correct)
Comment 1 Martin Aeschlimann CLA 2001-11-12 11:05:55 EST
I use ITypeHierarchy.getRootClasses, which should only return Object.
Moving to JCore.
Comment 2 Jerome Lanneluc CLA 2001-11-13 06:58:54 EST
I could not reproduce neither in 1.0, nor in latest. This kind of problem is 
really dependent on the setup of the workspace.
However it looks like a duplicate of bug 5522 which is going to be fix in next 
integration build (20011113 ?). Could you please try it with this build?
Comment 3 Martin Aeschlimann CLA 2001-11-19 08:49:45 EST
*** Bug 5850 has been marked as a duplicate of this bug. ***
Comment 4 Martin Aeschlimann CLA 2001-11-19 08:52:03 EST
i added a fix in our code to handle the case where multiple roots are returned.
(Search for object and return it, or if not found, return all the roots)
Comment 5 Jerome Lanneluc CLA 2001-11-20 12:57:38 EST
With Martin's fix and the fix for bug 5522, I believe this cannot happen any 
longer.

Closing. (Please re-open if you see the problem again.)