ECLIPSE Questions and Answers

Explain how to access UI objects from a non-ui thread?

To access UI objects from a non-ui thread, use command

Display.getDefault().asyncExec(new Runnable()…)

This will cause the run() method of the runnable to be invoked by the user-interface thread at the next reasonable opportunity.