[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: When can setFocus return false?

Michal Dobisek wrote:
If I get it correctly, the lesson learn is that no "rich" (i.e. involving unknown listeners) code should be executer directly from SWT event handlers, but rather display.asyncExec should be used to run them with "clean" stack trace. Is this correct?

Yes - long running operations should generally be run on a different thread and then use Display.syncExec() or Display.asyncExec() to update the UI.


Eric