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

Bug 363759

Summary: Provide UICallBack#deactivate(Display,String)
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: 2.0 M4   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 392976    
Bug Blocks:    

Description RĂ¼diger Herrmann CLA 2011-11-14 17:01:49 EST
An active UI callback is usually deactivated from a background thread. This leads to code like this:
UICallBack.runNonUIThreadWithFakeContext( display, new Runnable() {
  public void run() {
    UICallBack.deactivate( "foo" );
  }
} );
I suggest to provide a new method UICallBack#activate( Display, String ) to avoid the above code. The new method would run UICallBack.deactivate( String ) in the context of the given display.
Comment 1 Ralf Sternberg CLA 2012-11-02 11:24:38 EDT
This will probably become obsolete with fixing bug 392976.
Comment 2 Ralf Sternberg CLA 2012-12-17 14:42:05 EST
The new ServerPushContext can be stopped from a background thread (see bug 392976).