|
Re: Displaying Special Characters in JFace Error Dialog [message #552139 is a reply to message #551994] |
Wed, 11 August 2010 04:36 |
Prakash G.R. Messages: 621 Registered: July 2009 |
Senior Member |
|
|
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 04:36 |
Prakash G.R. Messages: 621 Registered: July 2009 |
Senior Member |
|
|
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.03708 seconds