Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to use ProgressMonitorDialog in Action (IActionDelegate2)
How to use ProgressMonitorDialog in Action (IActionDelegate2) [message #300721] Thu, 16 March 2006 06:57 Go to next message
Eclipse UserFriend
Originally posted by: a.heikhaus.cenit.de

Hello,

I have a problem using ProgressMonitorDialog in method runWithEvent(IAction action, Event event). I always get a Invalid Thread Access.

I then tried to use the Display.getCurrent().asyncExec() implementing Runnable and calling the ProgressMonitorDialog there. With the same result.

Is it common to call a ProgressMonitorDialog in an Action?
Some ideas? Thanks

André
Re: How to use ProgressMonitorDialog in Action ? (IActionDelegate2) [message #300990 is a reply to message #300721] Tue, 21 March 2006 11:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: a.heikhaus.cenit.de

Hello again,

I still failed to find a solution. Noone here, who can tell me something about that??

Thanks

André
Re: How to use ProgressMonitorDialog in Action ? (IActionDelegate2) [message #301048 is a reply to message #300990] Wed, 22 March 2006 10:44 Go to previous messageGo to next message
Eclipse UserFriend
What you described should work. That is:

Display.getDefault().asyncExec(new Runnable() {
run() {
// create and open a dialog
}
});

should work.

Michael

Heikhaus wrote:
> Hello again,
>
> I still failed to find a solution. Noone here, who can tell me something about that??
>
> Thanks
>
> André
Re: How to use ProgressMonitorDialog in Action ? (IActionDelegate2) [message #301049 is a reply to message #300990] Wed, 22 March 2006 10:51 Go to previous message
Eclipse UserFriend
What you described should work. That is:

Display.getDefault().asyncExec(new Runnable() {
run() {
// create and open a dialog
}
});

should work.

Michael
Heikhaus wrote:
> Hello again,
>
> I still failed to find a solution. Noone here, who can tell me something about that??
>
> Thanks
>
> André
Previous Topic:Using GCJ Builder on M$ Windows
Next Topic:SelectionProviderAction
Goto Forum:
  


Current Time: Mon Jun 23 00:00:17 EDT 2025

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

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

Back to the top