Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 71710

Summary: [KeyBindings] ALT+S does not open Source menu, no mnemonic for Search menu
Product: [Eclipse Project] Platform Reporter: Randy Hudson <hudsonr>
Component: UIAssignee: Douglas Pollock <douglas.pollock>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: jh, markus.kell.r, ppshah
Version: 3.0   
Target Milestone: 3.1 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Randy Hudson CLA 2004-08-10 11:05:00 EDT
Open a Java editor and press ALT+S.  The source menu should open.
Not that Search appears in the menubar without a mnemonic.  Maybe this causes a 
comflict.
Comment 1 Douglas Pollock CLA 2004-08-10 13:54:16 EDT
Which build? 
Comment 2 Randy Hudson CLA 2004-08-10 14:47:32 EDT
3.0.0
Comment 3 Douglas Pollock CLA 2004-08-10 14:52:02 EDT
I do not see this behaviour.  Do you have any key bindings defined that start 
with "Alt+S"?  Which plug-ins do you have installed?  etc., etc. 
Comment 4 Randy Hudson CLA 2004-08-10 15:16:11 EDT
I noticed that in my Debug perspective, Search has the A underlined.  But not 
in the java perspective.  Before opening this bug, I walked across the hall and 
reproduced it on my teammates workbench, which also happened to be in the Java 
perspective.  But for him Debug perspective is working OK also.

He only has GEF, Sleak, and the RelEng plug-ins installed. I have EMF and UML2 
installed as well, and some more stuff.  It seems like it may be related to 
something persisted in the workspace settings.  If I bring up a different 
workspace, the problem is not present.
Comment 5 Randy Hudson CLA 2004-08-13 10:41:21 EDT
So I'm at a loss as to how to describe steps to reproduce.  All I know is that 
I've reproduced this on the next clostest workspace to me.  In both mine and 
Pratik's Java perspective, Search is missing the mnemonic, and ALT+S is broken.
Comment 6 Randy Hudson CLA 2004-08-13 10:50:37 EDT
OK, got the steps for 3.0.0:

1) Create a brand new workspace
2) Open the Java Perspective
3) Right-click to close the Resource Perspective
4) Close the Hierarchy View
5) Open the Navigator View
6) Customize Perspective->Commands->add the "Team" commands to the toolbar.
7) Save Pespective As Java, overwriting the default.
8) Window->New Window

Note that "Search" appears without the 'a' underlined.  In the previous window 
it is underlined.  I'm going to guess that this is why "&Source" is not 
working, but even if it isn't it's a bug.
Comment 7 Jesper Hertel CLA 2004-08-30 06:26:03 EDT
Exactly the same problem here. It's a big problem for me, as I only use the
keyboard.
Comment 8 Markus Keller CLA 2004-08-30 08:49:06 EDT
This is probably due to bug 15670.

Missing mnemonic for search menu is due to invalid menu (re-)definition in
org.eclipse.jdt.junit: label is "Search" (non-NLSed), but should be "Se&arch" (I
just filed bug 72873 for this).
Comment 9 Jesper Hertel CLA 2004-08-30 09:29:46 EDT
Thank you very much, Markus!

For the impatient user: This concrete fix can be made directly in the Eclipse
installation directory to solve the problem immediately, until there is a new
version of Eclipse/junit with this corrected:

Correct line 230 in plugins\org.eclipse.jdt.junit_3.0.0\plugin.xml from

               label="Search"
to
               label="Se&arch"

and restart Eclipse. This makes both the Se&arch menu and &Source menu work again.
Comment 10 Randy Hudson CLA 2004-08-30 10:46:24 EDT
I'm confused about the non-NLSed statement.  If "Search" is not externalized in 
Junit, does that mean that this is a translation problem in other locales?

Is there fix potential 3.0.1 or 3.0.2?
Comment 11 Douglas Pollock CLA 2004-08-30 11:10:51 EDT
I'm marking this as a duplicate of Bug 72873, as I've not been able to 
reproduce this bug and Markus seems to feel that this can be fixed by Bug 
72873.  Bug 15670 will remain open. 

*** This bug has been marked as a duplicate of 72873 ***
Comment 12 Douglas Pollock CLA 2004-09-21 15:37:35 EDT
Moving on to the M2 milestone, just to make it easier to track when these bugs 
were dealt with.