Community
Participate
Working Groups
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.
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.
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.
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.