Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Differents editors with the same diagram
Differents editors with the same diagram [message #840839] Tue, 10 April 2012 15:15
Eduardo Fernández is currently offline Eduardo FernándezFriend
Messages: 7
Registered: October 2011
Junior Member

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 Very Happy), 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.

Any idea?

Thanks in advance.

Eduardo Fernández.
Previous Topic:Diagram layouts
Next Topic:The strange case of the eProxy EObject as a Business Object
Goto Forum:

Current Time: Tue Aug 04 12:05:45 GMT 2020

Powered by FUDForum. Page generated in 0.01915 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top