Bug 20969 - Java browsing views don't obey input element [browsing]
Summary: Java browsing views don't obey input element [browsing]
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Erich Gamma CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2002-06-25 14:48 EDT by John Arthorne CLA
Modified: 2002-08-15 09:27 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 John Arthorne CLA 2002-06-25 14:48:58 EDT
Build 20020625 (GM2)

This is an issue for post 2.0...

The java browsing views don't obey the input element of the workbench page that 
contains it.  For example, if I select a package in the java browsing packages 
view, and choose "Open in New Window", it just opens a new java browsing 
perspective on the entire workspace.  Similarly, if I open any perspective on a 
particular package, then open the "Type Browsing" view in that perspective, I 
would expect it to show me the types in that package.  Instead it seems to show 
all types in rt.jar as a default input.
Comment 1 John Arthorne CLA 2002-06-25 15:40:40 EDT
This is also true of the package explorer, depending on how the view is opened:

Turn on the preference "Open type hierarchy in new hierarchy perspective".

1) Select a package in a java browsing perspective, choose "Open In New Window"
2) In the new window, open the "Java" perspective

-> Notice that the package explorer is correctly showing that package as its 
input.

3) Close the new window, and return to the original java browsing perspective
4) Now select a package and choose "Open Type Hierarchy"
5) In the new window, open the "Java" perspective.

-> Notice that the package explorer is NOT showing the correct input.

The difference seems to be that in the first case, the window input is an 
IFolder, and in the second case the input is a package fragment.
Comment 2 Dirk Baeumer CLA 2002-07-29 10:57:01 EDT
Regarding the type hiararchy perspective. We did this on purpose because 
opening a type hierarchy can show types in the hierarchy that don't belong to 
the package. As a result "Show in Package Explorer" would not work correctly. 
So we decided to always use the root as input element.

But the Java Browsing perspective should honor the input element.
Comment 3 Dani Megert CLA 2002-08-15 09:27:53 EDT
Tested Java Browsing views against 2.0:
* When I select a package and then from the CONTEXT MENU select "Open in New
Window" I get a new window with the Java Browsing perspective that only contains
the Types and Members views.
* When I select a project and then from the CONTEXT MENU select "Open in New
Window" I get a new window withe the Java Browing perspective that only contains
the Packages, Types and Members views.