Bug 90220 - [launching] Run as submenu mnemonics constantly changing
Summary: [launching] Run as submenu mnemonics constantly changing
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: accessibility, usability
Depends on:
Blocks:
 
Reported: 2005-04-04 15:54 EDT by Randy Hudson CLA
Modified: 2009-08-30 02:20 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Hudson CLA 2005-04-04 15:54:50 EDT
The "run as.." submenu has numbers as mnemonics. Those numbers are constantly
changing depending on what is selected, so learning the mnemonics is almost
impossible.

The lunch name should jave the mnemonic in it, and it should not change based on
what other launches are available.  For example, "&SWT Application".
Comment 1 Kevin Barnes CLA 2005-04-04 16:00:15 EDT
It's a dynamic menu that others can contribute to. There's no way of determining what other 
mnemonics are used.
Comment 2 Randy Hudson CLA 2005-04-04 17:36:43 EDT
The menu is not dynamic. For a given context and Eclipse product, the menu is 
the same over and over and over. It doesn't change.  The Run history on the 
other hand does change and is a function of previous launches.

The "run as" menu is extensible, but so is every menu. There are no guarantees 
anywhere mnenomics are used, but that doesn't mean it's wrong to use them. How 
do you know that "Open Type" and "Open Resource" don't use the same mnemonic?
Comment 3 Jared Burns CLA 2005-04-04 19:26:34 EDT
I agree that this should work the way Randy describes. I like menus that behave
this way (web browser "bookmarks" menus, Windows start menu, etc.).
Comment 4 Darin Wright CLA 2005-04-05 12:54:49 EDT
Just to clarify: the menu *is* dynamic. It's contents change based on what is 
selected. That being said, it would be possible for accelerators to be placed 
in the shortcut labels. The troublesome part is that shortcuts (and labels) 
are extensible, so choosing an accelerator that does not conflict can become a 
difficult task (i.e. who knows what downstream plug-ins will contribute?).

Since this feature existed in the same format in 3.0, we do not intend to 
change in 3.1 at this point, as it would also require all existing extensions 
to modify their contribution to include an accelerator. 

Deferred for future consideration.
Comment 5 Randy Hudson CLA 2005-04-05 13:14:07 EDT
> "It's contents change based on what is selected"

The same is true of every context menu in eclipse, yet mnemonics are used 
everywhere else but here.

This is a worsening/regression of behavior introduced by a new 3.1 feature.  
Because this affects translation, it needs to be addressed now since it can't 
be fixed in a point release.
Comment 6 Jared Burns CLA 2005-04-05 13:17:27 EDT
Ideally, I think we'd just put the mnemonic on the first letter and if there are
collisions, the user could just hit the key multiple times to cycle through.
That's how my favorite apps on both Linux and Windows behave, but I'm not sure
SWT works that way.
Comment 7 Darin Wright CLA 2005-04-05 13:41:06 EDT
Also note that the launch shortcuts already provide key bindings. For 
example, "Launch as Java application" - Alt-Shift-D, J. That's even better 
than "Shift-F10, D, D, right arrow, X" (isnt't it?).
Comment 8 Randy Hudson CLA 2005-04-05 14:18:27 EDT
I find it easier to press ALT+R, S, J.  Note that the R is visible on the menu, 
invoking it shows the next keystroke, etc. The 3-key combination is not visible 
until you actually drop down both menus.

Jared, SWT will give you the OS behavior. If two menuitems both start with J, 
then pressing J twice will work. But you cannot mix mnemonics and no 
mnemonics.  If one item has J defined as a mnemonic and the other has an 
implicit J, the implicit one is unreachable.  It's all or none.
Comment 9 Denis Roy CLA 2009-08-30 02:20:46 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.