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

Bug 316977

Summary: Event injection should be able to inject whole event object
Product: z_Archived Reporter: Oleg Besedin <ob1.eclipse>
Component: E4Assignee: Project Inbox <e4.runtime-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: emoffatt, laluz, ob1.eclipse
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Oleg Besedin CLA 2010-06-15 17:00:44 EDT
Created attachment 171995 [details]
Patch

At present event injection (@EventTopic, @UIEventTopic) injects data from the event's "org.eclipse.e4.data" property (EventUtils.DATA, IEventBroker.DATA).

That works well unless multiple data values have to be passed in the event.

The event injection can check the type of the variable we try to inject and, if it equals to the org.osgi.service.event.Event inject whole event.
Comment 1 Oleg Besedin CLA 2010-06-15 17:02:30 EDT
Patch applied to CVS Head.

Thanks goes to Eric for noticing this limitation!
Comment 2 Oleg Besedin CLA 2010-06-16 11:55:37 EDT
*** Bug 314052 has been marked as a duplicate of this bug. ***