[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: None-UI thread model updates and Display.getCurrent() returning null.

Randy Hudson wrote:
It's too late, syncExec doesn't help you. Between the model change and your listener being notified, the viewer may have been disposed.

Can it hurt? Using syncExec() is one of the common causes of deadlock. Of course it depends on the type of notification.



It takes a real man to use syncExec! :P

I see your point about it being too late though. The model change is occurying outside of the GUI thread, so you really have no idea when this time is, also my model is in a database, it could take 5 minutes to update, then fire the event afterwards...


CL