Bug 11739 - Dead branches in package/project Hierarchy View
Summary: Dead branches in package/project Hierarchy View
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P2 normal (vote)
Target Milestone: 2.0 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-19 17:34 EST by Peter Burka CLA
Modified: 2002-04-09 07:44 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Burka CLA 2002-03-19 17:34:25 EST
Build 20020214

If you select a package or project and select Open Type Hierarchy', a hierarchy 
view will open showing all of the classes in the package/project.  I just 
discovered this today, and it's a very cool feature.

However, the hierarchy seems to include 'dead' branches - that is, there are 
leaf nodes in the tree which are not members of the package or project.

I think that I've figured out why this happens:

Create two classes:

 package baz;

 public class Quux {
 	public static class FooBar {
	}
 }

and

 package foo;

 import baz.Quux;

 public class Bar extends Quux {

 } 

Now open a hierarchy view on package foo.

You'll get something like:

Object
  FooBar
  Quux
    Bar

FooBar is not in foo, nor is it a subclass of anything in foo, so it shouldn't 
be included in the hierarchy.
Comment 1 Martin Aeschlimann CLA 2002-03-28 05:14:53 EST
moving to JCore
Comment 2 Jerome Lanneluc CLA 2002-04-09 07:44:01 EDT
Now pruning dead branches when computing hierarchy on a region.