Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 343366

Summary: Make Display#getDefault() work with threadless life cycle
Product: [RT] RAP Reporter: Rüdiger Herrmann <ruediger.herrmann>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: 1.4 M7   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 341763    

Description Rüdiger Herrmann CLA 2011-04-20 07:08:36 EDT
Display#getDefault() currently accesses the UIThreadHolder from the RWTLifeCycle which is not present when RWT was configured to run with the threadless life cycle.
Display#getDefault() needs to be determined in a life cycle specific way.
Comment 1 Rüdiger Herrmann CLA 2011-05-04 07:25:51 EDT
Introduced LifeCycleUtil#setUIThread() and #getUIThread(). The LifeCycle implementations use #setUIThread() to store/clear the current ui thread. Display#getDefault() now asks LifeCycleUtil to find out which thread (if any) is the UI thread for the current session.
Changes are in CVS HEAD.