|Differents editors with the same diagram [message #840839]
||Tue, 10 April 2012 11:15
| Eduardo Fernández
Registered: October 2011
I'm developing an editor with Graphiti and I don't know how to face the fact of having two diagrams with the same EMF model but with different visual representation. The sequence is:
1. Create a new diagram of type A. Put elements and connections on the diagram (through its palette).
2. Create a new diagram of type B. The diagram should be populated with elements of diagram A (without connections) and this diagram allows other kinds of connections.
As you can see, both diagrams should be synchronized, if I draw new element in diagram A, this element have to be in diagram B.
I understand all the Graphiti concepts (or I think so ), but I found problems when I share the same EMF resource between the diagrams. I think the solution could be the share the AddFeature by using a custom listener that draw the element in both diagrams, but I don't really know how to implement this strategy using the Graphiti components.
Thanks in advance.
Powered by FUDForum
. Page generated in 0.01479 seconds