How open a MessageDialog outside an UI thread? [message #300972] |
Tue, 21 March 2006 08:53  |
Eclipse User |
|
|
|
Originally posted by: nathalie.lepy.tiscali.fr
Hi,
I would like to display error information via a Message Dialog. I call
MessageDialog.openError(getAShell(), errorDialogTitle, mess), where
getAShell() returns a shell = new Shell(display), with display = new
display().
Then, I dispose the shell created.
The first time I run my plugin and that an error occured, the error dialog
is displayed, but the second time I get an error.
When an error occured, I'm in a part in my program outside a workbench
part. Is somebody knows how to call a MessageDialog outside an UI thread ?
Any help is welcomed !
Nath.
|
|
|
Re: How open a MessageDialog outside an UI thread? [message #300976 is a reply to message #300972] |
Tue, 21 March 2006 09:10  |
Eclipse User |
|
|
|
Originally posted by: eclipse.bettsockentraeger.de
Use syncExe in Display to display the error message dialog.
Nath wrote:
>
> Hi,
>
> I would like to display error information via a Message Dialog. I call
> MessageDialog.openError(getAShell(), errorDialogTitle, mess), where
> getAShell() returns a shell = new Shell(display), with display = new
> display(). Then, I dispose the shell created.
>
> The first time I run my plugin and that an error occured, the error
> dialog is displayed, but the second time I get an error.
> When an error occured, I'm in a part in my program outside a workbench
> part. Is somebody knows how to call a MessageDialog outside an UI thread ?
>
> Any help is welcomed !
>
>
> Nath.
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02887 seconds