Clarification needed at "1.8. Sending events to the Eclipse 4 IEventBroker" #1279
CLOSED
Submitted 5 months ago
Some of the sentences are not completely clear. Please check them, maybe these are worth to rewrite.
Chapter: "1.8. Sending events to the Eclipse 4 IEventBroker"
To send event via dependency injection and the IEventBroker, you also need to add the "org.eclipse.e4.data" in your event send from event admin.
— so does that mean that it is a must to always create a Map and add the entry
properties.put("org.eclipse.e4.data", target);
to it? The earlier examples used only a string as a topic and an arbitrary Object, e.g.
broker.post(TaskEventConstants.TOPIC_TODO_NEW, todo);
Another issue is that there is this sentence after the code example:
The above code would be believed
— it’s not finished.
Please login to write a comment.
Comments
Hi Robert,
I fails to understand why this text is unclear to you…
Just kidding, the text was definitely incorrect, misleading and incomplete.
I re-wrote it and added an example. Hope this makes in clearer. Please re-open if this text is not work clear enough.
Best regards, Lars
Update live in 5 minutes….