[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Working Thread + View Updates

Marcos schrieb:
I have been looking in the newsgroup but I haven't found any possible solution.

I have a working thread and a View (ViewPart) with a table viewer. I want the working thread to add log messages as new items in the table.

I have tried with synchronized methods without success. Should I use "PlatformUI.getWorkbench().getDisplay().asyncExec"? Or somehow send messages to the my content provider class (implements "IStructuredContentProvider")? Which is the right way to do that?

You need to sync-back using Display#syncExec/asyncExec.

Tom


-- B e s t S o l u t i o n . at -------------------------------------------------------------------- Tom Schindl JFace-Committer --------------------------------------------------------------------