Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Posting high priority events to the UI event queue
Posting high priority events to the UI event queue [message #643289] Mon, 06 December 2010 11:55 Go to next message
Levente Mising name is currently offline Levente Mising nameFriend
Messages: 3
Registered: December 2010
Junior Member
Dear gurus,
Is there a way to post a high priority event to the UI event queue?
If I use Display.asyncExec(), the event is added to the end of the queue. What I would like is that my event to be processed ASAP, in front of already queued events.
Cheers,
Levente
Re: Posting high priority events to the UI event queue [message #643886 is a reply to message #643289] Wed, 08 December 2010 15:33 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Levente,

There isn't a way to insert an asyncExec() block ahead of others in the
queue. The only way to make it run sooner than previously-posted blocks is
to syncExec() it instead, which runs it immediately in the UI thread.

Grant


"Levente" <levente@abstraco.com> wrote in message
news:idiimh$oav$1@news.eclipse.org...
> Dear gurus,
> Is there a way to post a high priority event to the UI event queue?
> If I use Display.asyncExec(), the event is added to the end of the queue.
> What I would like is that my event to be processed ASAP, in front of
> already queued events.
> Cheers,
> Levente
>
Previous Topic:Cant receive keyPressed event in Mac when using Japanese input(Hiragana)
Next Topic:Re: How to enlarge a line in a Table (SWT)
Goto Forum:
  


Current Time: Sun May 31 02:05:06 GMT 2020

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

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

Back to the top