ChangeRoutingPointsOperation Handler not updating the notation source model #1541
-
I have implemented a custom EMFOperationHandler to handle adding / removing routing points of the GEdgeView. While debugging, the handler gets activated correctly and gets the correct input data. The commands created seem to be executable as well. This is reflected in the GModelFactory directly afterwards as well, where the bendpoints are getting retrieved correctly. The problem is that the source model *.notation file is not getting updated to include the bendPoints that were added / removed. When I add a hardcoded bendPoint in the notation source model, it gets rendered but as soon as I move the edge, the bendPoints gets forgotton and not replaced with the correct position, resetting to zero bendPoints again. What is the error here?
Thank you so much for your support! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @xXNicksdaXx, at first glance your implementation looks correct and should work.
So this means that at the time of the GModel computation the bendpoints are infact correctly placed in the source notation model. Otherwise the GModelFactory would already be incorrect. Maybe some other operation is interferes here and resets the bendpoints afterwards? |
Beta Was this translation helpful? Give feedback.
Hi @xXNicksdaXx,
at first glance your implementation looks correct and should work.
So this means that at the time of the GModel computation the bendpoints are infact correctly placed in the source notation model. Otherwise the GModelFactory would already be incorrect.
Maybe some other operation is interferes here and resets the bendpoints afterwards?