Community
Participate
Working Groups
Ampersand characters in status messages cause the succeeding character to be shown as a mnemonic. For example IStatus status= new Status( IStatus.ERROR, "plug.in", "peter&mary" ) statusDialog.updateStatus( status ); shows this status message peter_m_ary I suggest to escape the ampersand character in status messages.
There's org.eclipse.jface.action.LegacyActionTools.escapeMnemonics(String) used by org.eclipse.jface.action.StatusLineContributionItem PW
Created attachment 224182 [details] Proposed solution These changes escape ampersand characters as suggested in comment #1. The accompanying test case relies on the fact that there exists a single CLabel within the dialog which displays the status message. I'm happy to change that if there is another way to obtain the message when shown.
Released as http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=7147bbedd962edf38b8e43ff47bd45c4412b2fe3 Thanx Rüdiger. PW
Verified in I20121210-2000.