Displaying Special Characters in JFace Error Dialog [message #551994] |
Tue, 10 August 2010 09:07  |
Eclipse User |
|
|
|
Hi,
I am not able to display the "&" in the error dialog.
MessageDialog.openError(this.getShell(), "TITLE", "&");
When I try to execute,
MessageDialog.openError(this.getShell(), "TITLE", "&&&&");
It is displaying two characters in the dialog.
Is there any valid reason?
Regards, Aravind
|
|
|
Re: Displaying Special Characters in JFace Error Dialog [message #552139 is a reply to message #551994] |
Wed, 11 August 2010 00:36   |
Eclipse User |
|
|
|
On 10/08/10 6:37 PM, Aravindhan.A wrote:
> Hi,
>
> I am not able to display the "&" in the error dialog.
>
> MessageDialog.openError(this.getShell(), "TITLE", "&");
>
> When I try to execute,
>
> MessageDialog.openError(this.getShell(), "TITLE", "&&&&");
>
> It is displaying two characters in the dialog.
>
> Is there any valid reason?
The message is displayed using a Label, which accepts mnemonic chars.
See Javadoc of Label.setText() for more details.
--
- Prakash
Platform UI Team, IBM
www.eclipse-tips.com
|
|
|
Re: Displaying Special Characters in JFace Error Dialog [message #552142 is a reply to message #551994] |
Wed, 11 August 2010 00:36   |
Eclipse User |
|
|
|
On 10/08/10 6:37 PM, Aravindhan.A wrote:
> Hi,
>
> I am not able to display the "&" in the error dialog.
>
> MessageDialog.openError(this.getShell(), "TITLE", "&");
>
> When I try to execute,
>
> MessageDialog.openError(this.getShell(), "TITLE", "&&&&");
>
> It is displaying two characters in the dialog.
>
> Is there any valid reason?
The message is displayed using a Label, which accepts mnemonic chars.
See Javadoc of Label.setText() for more details.
--
- Prakash
Platform UI Team, IBM
www.eclipse-tips.com
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.46730 seconds