Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to create modeless dialog and update it from UI thread?
How to create modeless dialog and update it from UI thread? [message #519476] Mon, 08 March 2010 18:08 Go to next message
MP Mising name is currently offline MP Mising nameFriend
Messages: 18
Registered: July 2009
Junior Member
I need to create a custom modeless dialog at the beginning of a process
and have it stay open during the process (during which the process will
be sending information to methods in the dialog to update elements
(labels) based on the stages of the process).

I've read about Display.asyncExec, but I can't figure out if this is
necessary and where/how this would be used in this case..

Anyone have experience with this?
Re: How to create modeless dialog and update it from UI thread? [message #519623 is a reply to message #519476] Tue, 09 March 2010 09:24 Go to previous message
Praveen  is currently offline Praveen Friend
Messages: 86
Registered: July 2009
Member
> I've read about Display.asyncExec, but I can't figure out if this is
> necessary and where/how this would be used in this case..
asyncExec is significantly used when you are in a different (non-UI)
thread and try to update the widgets/display from a non-UI thread. Also,
you can use this if you have certain code that has to be run after the
next reasonable oppurtunity (ie., after all the current events are
processed).
In your scenario, I don't find that the method asyncExec is really
required. HTH.
Previous Topic:SWT Combo and disable + colors
Next Topic:How to prevent tree node from collapse
Goto Forum:
  


Current Time: Thu Aug 22 22:41:26 GMT 2019

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

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

Back to the top