Hello.
I'm writing a JFace & SWT application. It has a worker thread who does
some periodic data checking. If it detects some changes on the data,
the UI should be refreshed.
But SWT's UI mechanism is not allowed to call 'refresh' method from
other threads than UI thread. (It raises SWT exception.)
How can I solve this problem?
----
Is there any way to make periodic jobs in the UI thread? (like windows
WM_TIMER message)
Thanks in advance.
iwongu
Dick Wad - 01 Aug 2004 14:15 GMT
You can use syncExec() and asyncExec(). Use timerExec() to get WM_TIMER messages.
Dick
javaswing - 05 Aug 2004 03:47 GMT
You can see this article
http://publib.boulder.ibm.com/infocenter/wsphelp/index.jsp?topic=/org.eclipse.pl
atform.doc.isv/guide/swt_threading.htm
you must use another thread to update your ui...^_^