Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Create Dialog in seperate thread?
Create Dialog in seperate thread? [message #448701] Thu, 13 January 2005 16:02 Go to next message
Eclipse UserFriend
Originally posted by: jen.jenjennyjen.com

Ok, my problem is as follows: I have created a wizard. As part of the
'PerformFinish' function, I have created a seperate thread to carry out
finish actions. Within this thread, I am trying to create a dialog, but
this is presenting problems in the form of an SWTException: 'Invalid
Thread Access'.

so I was just wondering if this is at all possible. I have read the
elipse.help article 'threading issues' and have found no solutions.

Thanks,
Jen
Re: Create Dialog in seperate thread? [message #448866 is a reply to message #448701] Fri, 14 January 2005 09:12 Go to previous messageGo to next message
Stefan Pietsch is currently offline Stefan PietschFriend
Messages: 68
Registered: July 2009
Member
Hi Jen,

you can create widgets only in the main thread. I am using
Display.getCurrent().asyncExec

to solve it.

Bye Stefan

"Jen" <jen@jenjennyjen.com> schrieb im Newsbeitrag
news:cs663g$7p3$1@www.eclipse.org...
> Ok, my problem is as follows: I have created a wizard. As part of the
> 'PerformFinish' function, I have created a seperate thread to carry out
> finish actions. Within this thread, I am trying to create a dialog, but
> this is presenting problems in the form of an SWTException: 'Invalid
> Thread Access'.
>
> so I was just wondering if this is at all possible. I have read the
> elipse.help article 'threading issues' and have found no solutions.
>
> Thanks,
> Jen
>
Re: Create Dialog in seperate thread? [message #448868 is a reply to message #448866] Fri, 14 January 2005 09:52 Go to previous message
Eclipse UserFriend
Originally posted by: jen.jenjenniejen.com

Cheers Stefan,
Works perfectly!

Stefan Pietsch wrote:

> Hi Jen,

> you can create widgets only in the main thread. I am using
> Display.getCurrent().asyncExec

> to solve it.

> Bye Stefan

> "Jen" <jen@jenjennyjen.com> schrieb im Newsbeitrag
> news:cs663g$7p3$1@www.eclipse.org...
>> Ok, my problem is as follows: I have created a wizard. As part of the
>> 'PerformFinish' function, I have created a seperate thread to carry out
>> finish actions. Within this thread, I am trying to create a dialog, but
>> this is presenting problems in the form of an SWTException: 'Invalid
>> Thread Access'.
>>
>> so I was just wondering if this is at all possible. I have read the
>> elipse.help article 'threading issues' and have found no solutions.
>>
>> Thanks,
>> Jen
>>
Previous Topic:SWT_AWT in commercial projects?
Next Topic:IDocument modification
Goto Forum:
  


Current Time: Thu Nov 21 18:35:14 GMT 2019

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

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

Back to the top