[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: How to trigger UI refreshes from a "job"

See:

Platform Plugin Developer Guide > Programmer's Guide > SWT > Threading Issues.
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/faq.html#uithread
--


Michael Moser wrote:
Sorry for this maybe stupid question but I didn't find anything in the online help, so I would appreciate some hint or pointer:

I am writing an eclipse plugin and - trying to keep the platform responsive - I moved some heavyweight activity into a background "org.eclipse.core.runtime.jobs.Job".

But now I ran into the famous SWT thread problem: when that Job is done, it should trigger some view to update. How do I trigger such an update when that job/thread is not supposed to call SWT, i.e. what's the suggested alternative to org.eclipse.ui.part.ViewPart.refresh() that can be called from a Job?

Michael