Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How open a MessageDialog outside an UI thread?
How open a MessageDialog outside an UI thread? [message #300972] Tue, 21 March 2006 08:53 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
>
>
>
Previous Topic:Eclipse jars, Javadoc location, Eclipse 3.1 and Eclipse 3.2
Next Topic:Error: Cannot connect to VM
Goto Forum:
  


Current Time: Tue Jul 22 15:52:16 EDT 2025

Powered by FUDForum. Page generated in 0.02887 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top