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

Bug 402800

Summary: Provide access to ApplicationContext in UISession
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: ivan
Version: 2.1   
Target Milestone: 2.1 M2   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Suggested patch none

Description Ralf Sternberg CLA 2013-03-08 19:39:21 EST
Being able to obtain the ApplicationContext from the UISession would reduce or even eliminate the need for UISession runnables. For example, instead of:

  uiSession.exec( new Runnable() {
    public void run() {
      RWT.getResourceManager().register( ... );
    }
  } );

the resource manager could be obtained directly from the UISession:

  uiSession.getApplicationContext().getResourceManager().register( ... );
Comment 1 Ralf Sternberg CLA 2013-03-08 19:44:25 EST
Created attachment 228164 [details]
Suggested patch
Comment 2 Ivan Furnadjiev CLA 2013-04-09 07:05:25 EDT
(In reply to comment #1)
> Created attachment 228164 [details]
> Suggested patch

I think it's reasonable to add this API. +1
Comment 3 Ralf Sternberg CLA 2013-04-09 12:14:25 EDT
Applied patch with commit c004ac297c5eeb069d8f7f88502d29602c913b78