| Summary: | Check for UIThread in Graphics#getXXX methods | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Rüdiger Herrmann <ruediger.herrmann> | ||||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | enhancement | ||||||||
| Priority: | P3 | ||||||||
| Version: | unspecified | ||||||||
| Target Milestone: | 1.5 M1 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 341763 | ||||||||
| Attachments: |
|
||||||||
|
Description
Rüdiger Herrmann
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. |