How should event propagation be handled with the new TypedListener API? #1254
-
In our application, we have a "container" composite, containing two controls. Whenever a listener is added to the composite, they are also added to the control by the overwritten
There are other classes like this, but the general idea is all the same: Have a common interface so that one doesn't have to worry about the internal structure of the control. With the changes done in 78943aa, this mechanism no longer works as most (if not all listeners) are added via the new Because My current workaround for this problem looks like this:
However, SWTEventListener is not supposed to be used in client code, which leads me to my question: Is there an intended way how this use-case should now be handled? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
That's right and TypedListener isn't supposed to be used either.
Making it public should make it possible again to use your approach, shouldn't it? Do you want to provide a PR to make it |
Beta Was this translation helpful? Give feedback.
Alternatively would it be a solution to override the type-specific methods to add listeners, like it was done in?
eclipse-tracecompass/org.eclipse.tracecompass#69