Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[e4-dev] Using UIEventTopic with custom event property key

Hello,

I am able to handle events in the view using the UIEventTopic annotation. If i also want to inject data from a event the event has to be sent with a event property that has "org.eclipse.e4.data" as key (the value of the static field "IEventBroker.DATA").
Is it possible to specify another key for the data that has to be injected?

The reason for this question is that not all bundles sending events are e4 related (in my application only UI bundles have dependencies on e4). By requiring to use IEventBroker.DATA there will be an unneeded coupling to e4 (the coupling stays when using the string "org.eclipse.e4.data" directly, it is only implicit).

With kind regards,
Meers Davy

Back to the top