Have searched through the documentation, but cannot seem to find a clever approach that solves what i am trying to achieve.
Is it possible to detect whether the selected element has changed?
Or get the changed element when the diagram changes? Then i could match against the current selected element.
Any feedback is much appreciated!