Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 66471 - Changing Perspective Bar Layout Mangles Search Menus [JUnit]
Summary: Changing Perspective Bar Layout Mangles Search Menus [JUnit]
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.0 RC3   Edit
Assignee: Erich Gamma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 66881 (view as bug list)
Depends on: 65512
Blocks:
  Show dependency tree
 
Reported: 2004-06-10 05:08 EDT by CLA
Modified: 2004-06-18 13:19 EDT (History)
1 user (show)

See Also:


Attachments
workbench.xml file (32.41 KB, text/plain)
2004-06-10 05:10 EDT, CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description CLA 2004-06-10 05:08:00 EDT
I200406070800
Win XP
Java Sun 1.4.2_04

Search menus are being lost when closing and opening Perspective menu icons on 
the menu bar resulting in this in the log:

!SESSION Jun 10, 2004 09:41:13.301 --------------------------------------------
-
eclipse.buildId=I200406070800
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
!ENTRY org.eclipse.ui 4 4 Jun 10, 2004 09:41:13.301
!MESSAGE Unable to find Action Set: org.eclipse.help.internal.ui.HelpActionSet
!ENTRY org.eclipse.ui 4 4 Jun 10, 2004 09:41:13.311
!MESSAGE Unable to find Action Set: org.eclipse.help.ide.HelpSearchActionSet
!ENTRY org.eclipse.ui 4 4 Jun 10, 2004 09:42:39.716
!MESSAGE Unable to find Action Set: org.eclipse.help.internal.ui.HelpActionSet
!ENTRY org.eclipse.ui 4 4 Jun 10, 2004 09:42:39.726
!MESSAGE Unable to find Action Set: org.eclipse.help.ide.HelpSearchActionSet
!SESSION Jun 10, 2004 09:43:47.73 ---------------------------------------------
-
eclipse.buildId=I200406070800
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
!ENTRY org.eclipse.ui 4 4 Jun 10, 2004 09:43:47.73
!MESSAGE Invalid Menu Extension (Path is invalid): junit.actions.GotoTestAction


I'm using the R21 Presentation with the perspective bar docked on the left.  
Something is being mangled in 
the .metadata\.plugins\org.eclipse.ui.workbench.xml file.

Here's how I reproduce:

Prerequisites
--------------

1. Ensure you're using the R21 presentation (don't know if this is important, 
but just in case) with the Perspective Bar docked on Left (not "Top Left").

2. Delete the .metadata\.plugins\org.eclipse.ui.workbench.xml file to start 
clean.


Actions
-------

1. Launch Eclipse (should be in Resources Perspective) and open a file in the 
Editor.  Open the Java Perspective.  Note that the Java Perspective icon over-
write the Resource Perspective icon.  Note that there is a Search->Referring 
Tests... menu item.

2. Dock the Perspective Bar on the Top Right (get this from right click 
context menu).

3. Close all Perspectives on the Bar (get this from right click context menu).

4. Click on the "Open a Perspective" button and open "CVS Repository 
Exploring", then "Team Synchronizing",  then "Debug", then "Java", 
then "Resource (default)".

5. Dock the Bar on the left again and open up a Java file again.

6. Now close Eclipse.

7. Launch Eclipse.  The Search menu item is no longer there.  This is written 
to the log:

!SESSION Jun 10, 2004 10:02:28.225 --------------------------------------------
-
eclipse.buildId=I200406070800
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
!ENTRY org.eclipse.ui 4 4 Jun 10, 2004 10:02:28.225
!MESSAGE Invalid Menu Extension (Path is invalid): junit.actions.GotoTestAction



PB
Comment 1 CLA 2004-06-10 05:10:51 EDT
Created attachment 11857 [details]
workbench.xml file

Here's my .metadata\.plugins\org.eclipse.ui.workbench\workbench.xml file.
Comment 2 CLA 2004-06-10 05:17:59 EDT
Correction:

Prerequisites stage 2 should read:

2. Delete the .metadata\.plugins\org.eclipse.ui.workbench\workbench.xml file 
in the workspace to start clean.


Note - I just followed my own steps and coudn't reproduce.  I'm looking for 
the missing ingredient.
Comment 3 CLA 2004-06-10 05:20:36 EDT
I had to close and re-open Eclipse a couple of times.

PB
Comment 4 Debbie Wilson CLA 2004-06-10 10:03:11 EDT
JUnit is owned by JDT/UI.  Letting them take first crack at this one.
Comment 5 CLA 2004-06-10 19:28:33 EDT
Well, as I use this Integration build more and more, the GotoTestAction is 
disappearing without having to do anything:

!SESSION Jun 11, 2004 00:24:38.93 ---------------------------------------------
-
eclipse.buildId=I200406070800
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
!ENTRY org.eclipse.ui 4 4 Jun 11, 2004 00:24:38.93
!MESSAGE Invalid Menu Extension (Path is invalid): junit.actions.GotoTestAction

PB
Comment 6 CLA 2004-06-10 19:34:02 EDT
Whatever the perspective, view, presentation, or whatever, this menu item is 
disappearing.

PB
Comment 7 CLA 2004-06-10 19:51:33 EDT
Narrowed it down some more:

it's when the Java perspective is opened.  With all perspectives closed, open 
the Java perspective.  Then close and open Eclipse a few times.  Then the menu 
item disappears.

PB
Comment 8 CLA 2004-06-11 08:51:46 EDT
I just tried this again in I200406110010 with a new workspace and the default 
(new) look and feel.

At first the Search->Referring Tests... menu item was there.  But then I 
addded the follwing Perspectives to the Perspective Bar:

Java
Debug
CVS Repository Exploring
Team Synchronizing

I selected the Java Perspective and opened a Java file.  I quit Eclipse and 
restarted and the menu item was gone.

This is in the log:

!SESSION Jun 11, 2004 13:44:08.312 --------------------------------------------
-
eclipse.buildId=I200406110010
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

!ENTRY org.eclipse.ui 4 4 Jun 11, 2004 13:44:08.312
!MESSAGE Unable to find Action Set: org.eclipse.help.internal.ui.HelpActionSet

!ENTRY org.eclipse.ui 4 4 Jun 11, 2004 13:44:08.328
!MESSAGE Unable to find Action Set: org.eclipse.help.ide.HelpSearchActionSet
!SESSION Jun 11, 2004 13:45:11.484 --------------------------------------------
-
eclipse.buildId=I200406110010
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

!ENTRY org.eclipse.ui 4 4 Jun 11, 2004 13:45:11.484
!MESSAGE Invalid Menu Extension (Path is invalid): junit.actions.GotoTestAction


PB



Comment 9 Erich Gamma CLA 2004-06-11 09:00:21 EDT
I think we understand this one. You are running into the problem described in  
bug# 15684.

We need to apply the same workaround for the JDT JUnit action set and also 
contribute a defintion of the search menu in jdt.junit
Comment 10 Erich Gamma CLA 2004-06-16 04:14:17 EDT
approved by Dirk & Erich
Comment 11 Erich Gamma CLA 2004-06-17 04:59:02 EDT
fixed by 1) adding a definition of the required search menu and 2) adding 
action set part associations with the Java views

fix reviewed by Dirk

Comment 12 Erich Gamma CLA 2004-06-17 06:43:48 EDT
*** Bug 66881 has been marked as a duplicate of this bug. ***
Comment 13 Markus Keller CLA 2004-06-18 13:19:37 EDT
Verified in 200406180800 that the Search menu is stable and the log stays clean.