|How to update existing diagrams, if domain model structure has changed? [message #1005489]
||Fri, 25 January 2013 16:31
| Nikolai Raitsev
Registered: July 2009
I need a little help for following scenario.
0.) We have a Non-EMF-Domain-Model (POJO's) (just for info)
1.) We have created a lot of graphiti diagrams, for existing domain model structure. E.g. we have a domain class Statement with member Name. This POJO is represented in Graphiti as a Connection with one TextDecorator, that shows the Name. All very simple and all that works very well.
2.) Now we changed the domain model: Statement is extended now with two additional members, CardinalityFrom and CardinalityTo. The AddConnectionFeature was rewritten/extended and all new Graphiti-Connection-representations of the Statement-class are with three TextDecorators now: CardinalityFrom, Name and CardinalityTo.
Overall domain model is automatically updated with default-values. But all the old representations of Statements shows allways the old structure. So the question is, how is it possible to update the graphical representation, according to the new structure, but without to change the positioning of the main object (here Connection)? I think, something like automatically "update hook" on loading the diagram?
Many thanks in advance and best regards,
Powered by FUDForum
. Page generated in 0.17421 seconds