Bug 47743 - Open type hiearchy problems [type hierarchy]
Summary: Open type hiearchy problems [type hierarchy]
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-28 16:20 EST by Kent Johnson CLA
Modified: 2004-02-12 11:39 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Johnson CLA 2003-11-28 16:20:32 EST
M5

Start by adding the project org.eclipse.jdt.ui.examples.javafamily to your 
workspace.

1. Now open a type hierarchy on the package org.eclipse.search.internal.core 
from the source folder coresearch-experiment. Notice that some types such 
AndQuery are not there.

2. Select both packages in the source folder coresearch-experiment. Notice 
that 'Open Type Hierarchy' is not a choice on the menu... but if you select the 
source folder coresearch-experiment, it is available.
Comment 1 Dirk Baeumer CLA 2003-12-01 04:09:48 EST
These are two different issues:

1.) this is very likely a core issue

2.) UI should support multiple homogenous selections.
Comment 2 Martin Aeschlimann CLA 2003-12-01 12:41:05 EST
Reproduced. Seems to be a problem in the type hierarchy:
The hierarchy should contain children for 'InternalSearchQuery'

For point 2., this works as designed, the type hierarchy view does not support 
multiple inputs. Please file a feature request. Moving this bug to JDT core.
Comment 3 Jerome Lanneluc CLA 2003-12-17 09:48:58 EST
RegionBasedTypeHierarchy.pruneDeadBranches() consider that a branch is dead as 
soon as one type of this branch is not part of the region. 

Should fix to consider that a branch is dead if all types of the branch are not 
part of the region.
Comment 4 Jerome Lanneluc CLA 2004-01-07 07:12:32 EST
Fixed pruneDeadBranches() and added regression tests 
TypeHierarchyTests.testRegion1() and testRegion2()
Comment 5 David Audel CLA 2004-02-12 11:39:03 EST
Verified for 3.0M7