Community
Participate
Working Groups
Build F3, running latest NL fragments. Go to Window>Customize Perspective>Other... Select Java Element Creation In traditional chinese, the elements on the right pane have mnemonics, though it doesn't make sense in this context... will attach a screencap. Now go to Java Search These elements have extra mnemonics as well. A screencap for this will follow as well. This bug was opened in response to TPRS ID=155
Created attachment 1531 [details] Extra mnemonics in Java Element Creation
Created attachment 1532 [details] Extra mnemonics in Java Search
the mnemonics were removed since F3 pls verify in 20020620
The actions still have a mnemonics defined in their label (see plugin.properties file). Removing the mnemonic there would remove it from all menus as well and I could find a way to provide a different string for the action to be displayed in the customize dialog. Moving to platform for commenting. I don't know how to fix this without removing the mnemonic for the menus as well.
JDT should not remove the mnemonics from its labels. The perspective customization dialog tries to strip off the mnemonics when showing the text for items. This works for mnemonics indicated using "&?" in the label, but not those using " (?)". See ActionSetLabelProvider and DialogUtil.removeAccel. Could change DialogUtil.removeAccel to handle the " (?)" pattern as well, although it's conceivable that this could trim off a real part of the label, not just the mnemonic.
I have changed DialogUtil to handle both Latin and non-Latin accelerators. This functionality is also required by the LightweightActionDescriptor so it should be called there too. The issue is that LightweightActionDescriptor is not a dialog and not in org.eclipse.ui.internal.dialogs (it is in org.eclipse.ui.internal). I have 2 options here 1) Have a reference to org.eclipse.ui.internal.dialogs in org.eclipse.ui.internal 2) Make another utility in org.eclipse.ui.internal and have the one in org.eclipse.ui.internal.dialogs refer to it (to avoid breaking API). Nick what is your preference?
Checking the other classes in org.eclipse.ui.internal there are already references to org.eclipse.ui.internal.dialogs so I released the changes into DialogUtil and had LightweightActionDescriptor refer to it. Released to HEAD and 2.01
Marking as closed.