|Serialization Questions [message #988446]
||Thu, 29 November 2012 17:03
| Nick Collier
Registered: July 2009
I've got a node in my diagram called Node. It has an id property of type String and an Action property of type Action. Action is an EClass in my emf model. Action is never displayed or created in the diagram proper. It is only presented to the user through a custom property sheet that is displayed when the user clicks on Node. The property sheet binds the Action's properties to some widgets. This binding seems to work fine and I can see the action's properties update in the debugger. However there are two problems.|
1. Changing the action's properties doesn't result in the diagram being marked as dirty.
2. The action never gets saved when the diagram is saved.
I figure the first of these has something to do with the action being hidden from the diagram code in some way. It doesn't get created via the diagram so it doesn't get hooked into the notification system. How can I mimic that process when I create an Action programmatically?
The second I'm stumped as it looks like the underlying model does contain the action's new properties but its just not getting saved.
Powered by FUDForum
. Page generated in 0.01966 seconds