Skip to content
Discussion options

You must be logged in to vote

Here is an alternative solution that worked for me:
Since retrieving the current selection and listening to selection changes are common use cases we have created a dedicated SelectionService that can be used for that. You could register your UIExtension as a SelectionListener in the SelectionService to receive change notifications.
Another benefit of using SelectionListeners over a SelectAction handler is that these listeners can also be dynamically deregistered during runtime.

I tested this with a small example extension at it seems to work fine:

@injectable()
export class MyUIExtension extends AbstractUIExtension implements EditModeListener, SelectionListener {
    static readonly ID = '…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@rsoika
Comment options

Comment options

You must be logged in to vote
6 replies
@tortmayr
Comment options

@rsoika
Comment options

@tortmayr
Comment options

@rsoika
Comment options

@rsoika
Comment options

Answer selected by rsoika
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants