Skip to content
Discussion options

You must be logged in to vote

Hi @Ginxss,

The background of this problem is, that the property view is usually bound in the general frontend module and not diagram specific, as the action dispatcher is. An action dispatcher is available per diagram container, and can of course be unbound if no diagram was opened yet.
To overcome this, you could retrieve the actionDispatcher from the currently opened/active GLSP diagram widget in the custom data service for example:

...
const widget = this.shell.activeWidget || this.shell.currentWidget;
if (widget instanceof GLSPDiagramWidget) {
   return widget.actionDispatcher;
}
...

I added another commit with a small working example to the previously used example branch, please see e…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Ginxss
Comment options

@ndoschek
Comment options

ndoschek Feb 1, 2023
Collaborator

Answer selected by Ginxss
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