Project: Eclipse_Platform_UI
Bug 19651 Team menu disapear from Hierarchy and Packages view.
Reported: 2002-06-07 15:34:10 | Status: resolved fixed

Build F2 Steps: 1) Open eclipse with an new workspace. 2) Open java perspective and close resouce perspective. 3) Create a Java Project "TestProject" 4) Create a Java class "TestClass" 5) Past the following code in the TestClass and save it. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ public class TestClass { static class InnerClass extends Runnable { public void run() { } } } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 6)Change preference->Workbench->Perspective to open perspective in new window. 7)Change preference->Java to "Open a new Type Hierarchy Perspective" 8)Exit workbench and restart it. 9) Select the TestClass (the class not the unit) in the package view and popup menu -> The team menu is there (disabled but it does not matter). 10 Exit workbench and restart it. (Again) 11) Select the word InnerClass in the text editor and press F4 12) Popup menu on the new hierarchy view -> Team menu is not there but that is "OK" since it is a inner class. 13) Select the word TestClass in the new text editor and press F4 -> The team menu is not there but it should since it is not a inner class. 14) You should have 3 opened windows. Close the two new windows. 15) Select the TestClass in the package view and popup menu -> The team menu is not there anymore. It was there in the step "9". Note: TestClass.java is not in any CVS repository but I first saw the problem with a file managed by CVS.

Files changed in fix:
bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/ObjectContributorManager.java