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

Bug 339820

Summary: FilteredItemsSelectionDialog$RefreshCacheJob needs a context
Product: [RT] RAP Reporter: Gunnar Wagenknecht <gunnar>
Component: WorkbenchAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.4   
Target Milestone: 1.4 M6   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch which fakes the context ivan: iplog+

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.