| Summary: | Provide access to ApplicationContext in UISession | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Ralf Sternberg <rsternberg> | ||||
| Component: | RWT | Assignee: | 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: |
|
||||||
Created attachment 228164 [details]
Suggested patch
(In reply to comment #1) > Created attachment 228164 [details] > Suggested patch I think it's reasonable to add this API. +1 Applied patch with commit c004ac297c5eeb069d8f7f88502d29602c913b78 |
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( ... );