Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to act on presentation out of non-Display Thread
How to act on presentation out of non-Display Thread [message #587016] Fri, 12 December 2008 11:57
Christoph Höger is currently offline Christoph HögerFriend
Messages: 40
Registered: July 2009
Member
Hello,

I am still working on
http://www.eclipse.org/newsportal/article.php?id=770&gro up=eclipse.platform.pde#770

I've found that jdt uses SourceViewer.changePresentation() on every
(AST-)reconcile event. I tried that, but it of course does not work
because the reconciling occurs in a non-display thread.
I'm aware of Display.getCurrent().asyncExec() which solves the problem
from the other side (being in a Display Thread and wanting to compute
something in the background), Is there a way like
Display.getSomeDisplay().asyncExec()? Or do I have to save the Display on
my own somewhere and reuse it? Or should I setup a Display thread to
handle the redraw event from reconciling (and sleep the rest of the time)?

Any advice welcome

Christoph
Previous Topic:PDE Build fails on Linux with Java returned: 13
Next Topic:Forcing TextHover window to stay.
Goto Forum:
  


Current Time: Wed Aug 04 00:23:28 GMT 2021

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

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

Back to the top