Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 103505 - [browsing] Java Browser will not enable viewing Hierarchy for package in >1 folder
Summary: [browsing] Java Browser will not enable viewing Hierarchy for package in >1 f...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.2 M1   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 103648
Blocks:
  Show dependency tree
 
Reported: 2005-07-12 12:48 EDT by Bruce Gordon CLA
Modified: 2005-12-13 09:35 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bruce Gordon CLA 2005-07-12 12:48:43 EDT
1. Consider workspace/proj/src/test/com/a and workspace/proj/src/test/com/a  If
com.a is viwed in the PackageExplorer the View Hierarchy options works fine. If
one goes the the Java Browsing perspective and selects the proj then "a" shows
up in the packages, but the View Hierarchy option is unavailable.

2. In general, why can't one open the Hiearchy View on any aggregate: project,
folder or package, or group of packages. (If one opens on a Project the results
are bizarre-in my case I see mostly interfaces, and certainly not all classes).
Comment 1 Dirk Baeumer CLA 2005-07-13 09:22:27 EDT
Dani,

can you please comment. I think that this is a problem of the virtual packages ?

I opened feature request 103648 to support opening type hierarchy on multi
selection.
Comment 2 Dani Megert CLA 2005-07-13 09:42:05 EDT
The OpenTypeHierarchyAction does not handle LogicalPackage. This is a trivial
fix once bug 103648 has been fixed.
Comment 3 Markus Keller CLA 2005-07-13 12:43:33 EDT
I don't think part (1) of this bug depends on bug 103648.

I interpret the paths from comment 0 as a copy-paste problem. The setup was
meant like this:
- source folder /proj/src/ with package com.a
- source folder /proj/test/ with package com.a

Opening the type hierarchy on the logical package for com.a does not work. But
opening the type hierarchy on either of the two IPackageFragments shows the
hierarchy of the (combined) package com.a, probably since type hierarchy
computation is classpath-based and does not care about the physical structure.

So, the OpenTypeHierarchyAction could just open the type hierarchy on any of the
LogicalPackage's IPackageFragments.
Comment 4 Dani Megert CLA 2005-07-14 04:04:01 EDT
yep, you're right.
Comment 5 Dani Megert CLA 2005-07-14 04:54:26 EDT
Fixed in HEAD.
Comment 6 Philip Mayer CLA 2005-12-13 09:07:16 EST
Verified in I20051213-0010.