| [news.eclipse.tools.jdt] Re: How to trigger UI refreshes from a "job" |
See:
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