Community
Participate
Working Groups
It only makes sense to call these methods from the UIThread. We should add a check to enforce this restriction. When done, the extra check for display.getThread() == Thread.currentThread() can be removed from TextSizeDeterminationHandler#register()
Created attachment 193431 [details] Proposed fix Inserts a call to checkThread() at the beginning of each of the public methods. checkThread() only succeeds if there is a current display and its thread is the same as the current thread; otherwise an SWTException is thrown.
Created attachment 197489 [details] Proposed fix v2 Synced first patch with HEAD
The getXXX methods from Graphics now throw an SWTException if accessed from a non-UI-thread Changes are in CVS HEAD.