Project: Eclipse_Platform_UI
Bug 395426 [JFace] StatusDialog should escape ampersand in status message
Reported: 2012-11-29 17:49:14 | Status: verified fixed

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.

Files changed in fix:
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/StatusDialog.java tests/org.eclipse.ui.tests/Eclipse JFace Tests/org/eclipse/jface/tests/dialogs/AllTests.java tests/org.eclipse.ui.tests/Eclipse JFace Tests/org/eclipse/jface/tests/dialogs/StatusDialogTest.java