|Re: How to act on presentation out of non-Display Thread [message #37342 is a reply to message #37274]
||Fri, 12 December 2008 14:31
Originally posted by: eclipse-news.rizzoweb.com|
On 12/12/2008 6:57 AM, Christoph Höger wrote:
> 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?
You can get the Display from any widget that you have a reference to by
You can also call PlatformUI.getWorkbench().getDisplay().
Hope this helps,
Powered by FUDForum
. Page generated in 0.02043 seconds