1.

How To Access Ui Objects From A Non-ui Thread?

Answer»

Use Display.getDefault().asyncExec(NEW Runnable()…) Display.asyncExec causes the run() method of the runnable to be INVOKED by the user-interface thread at the NEXT reasonable opportunity. The CALLER of this method continues to run in parallel, and is not notified when the runnable has completed.

Use Display.getDefault().asyncExec(new Runnable()…) Display.asyncExec causes the run() method of the runnable to be invoked by the user-interface thread at the next reasonable opportunity. The caller of this method continues to run in parallel, and is not notified when the runnable has completed.



Discussion

No Comment Found