Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339820 - FilteredItemsSelectionDialog$RefreshCacheJob needs a context
Summary: FilteredItemsSelectionDialog$RefreshCacheJob needs a context
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: Workbench (show other bugs)
Version: 1.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.4 M6   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-13 04:28 EDT by Gunnar Wagenknecht CLA
Modified: 2011-03-14 08:37 EDT (History)
0 users

See Also:


Attachments
patch which fakes the context (33.98 KB, patch)
2011-03-13 04:28 EDT, Gunnar Wagenknecht CLA
ivan: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gunnar Wagenknecht CLA 2011-03-13 04:28:43 EDT
Created attachment 191074 [details]
patch which fakes the context

1.4 (close to M6)

java.lang.IllegalStateException: No context available outside of the request service lifecycle.
at org.eclipse.rwt.internal.service.ContextProvider.getContext(ContextProvider.java:107)
at org.eclipse.rwt.internal.service.ContextProvider.getSession(ContextProvider.java:140)
at org.eclipse.rwt.RWT.getLocale(RWT.java:271)
at org.eclipse.rwt.RWT$NLS.getISO8859_1Encoded(RWT.java:106)
at org.eclipse.ui.internal.WorkbenchMessages.get(WorkbenchMessages.java:1145)
at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$ContentProvider.getFilteredItems(FilteredItemsSelectionDialog.java:3030)
at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$ContentProvider.reloadCache(FilteredItemsSelectionDialog.java:2957)
at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog.reloadCache(FilteredItemsSelectionDialog.java:1010)
at org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$RefreshCacheJob.run(FilteredItemsSelectionDialog.java:1517)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
	

According to the FAQ this means it must be wrapped with UICallBack. Patch attached.
Comment 1 Ivan Furnadjiev CLA 2011-03-14 08:36:49 EDT
Thanks for the patch. Applied to CVS HEAD with a small change.