I have a e4 part displaying data in a table. If I click on an element, I would like to open another e4 part depending on the concrete model implementation behind the selection etc.
Therefore I have created a controller class in my app (it get's created and can be injected through an Addon etc.). I inject the ESelectionService there and now I tried several ways to get notified about selection. First through the standard @Inject...ACTIVE_SELECTION, which did not work. The method was called only once the controller was created.
At second I tried to register an SelectionListener on the ESelectionService . I figured out that the concrete implementation is of type ApplicationSelectionServiceImpl in my case and attaching a listener there throws an UnsupportedOperationException.
My main question now is, what is the best way in E4 to do, what I would like to do. For sure there would be solutions like attach a selection listener to the viewer and handle selections directly there etc. But is this still best practice?