Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316977 - Event injection should be able to inject whole event object
Summary: Event injection should be able to inject whole event object
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: E4 (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 314052 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-06-15 17:00 EDT by Oleg Besedin CLA
Modified: 2012-12-13 15:00 EST (History)
3 users (show)

See Also:


Attachments
Patch (7.65 KB, patch)
2010-06-15 17:00 EDT, Oleg Besedin CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. ***