Undo Command doesn't unset model attributes [message #1768480] |
Wed, 19 July 2017 10:42 |
Ken Mersado Messages: 19 Registered: October 2014 |
Junior Member |
|
|
Hi All,
I have problem with Undo Command in Graphiti.
First of all, i have implemented default features (add, move, resize, etc..) and custom features of Graphiti.
The features when executed will update/set the attributes of the underlying models link to pictogram elements. My diagram editor then will detect changes via INotifyChangedListener and execute my custom update feature (which extends AbstractUpdateFeature) to update the shapes in the editor.
But, when i invoke the undo (ctrl+z), it only undo the changes made in the shapes/pictogram elements and not the changes in the model.
1. Is my way in handling/updating shapes correct?
2. If so, why does the undo (ctrl+z) doesn't work on my models?
Thanks,
Ken
[Updated on: Wed, 26 July 2017 06:40] Report message to a moderator
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03895 seconds