ktmprabhu / spray

Automatically exported from code.google.com/p/spray
0 stars 0 forks source link

Model Data Synchronization #306

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

Using Spray, I have made several models each created from various ecore 
meta-models, say: A, B, C, and D. The problem is that there are model elements 
(such as attributes and references) that are common to all of the models. So 
suppose I modify a model element in A, I would like to see these modifications 
to be synchronized in the other models B, C, and D.

What is the best way to proceed? Can you please suggest some pointers regarding 
how to do this?

Original issue reported on code.google.com by Sfi...@gmail.com on 29 Oct 2013 at 12:45

GoogleCodeExporter commented 8 years ago
Why don't you extract this common elements in a separate meta model and let the 
other meta model inherit resp. reference them? On model level as well - you can 
have a common model file (derived from the common meta model) that contains 
elements that can be referenced by the other models. So there is no duplication 
and thus no synchronization is needed. 

If you want no common model, you may have a look at EMF notifications
http://www.vogella.com/articles/EclipseEMFNotification/article.html
as well as at Graphiti's update feature mechanism: 
http://www.eclipse.org/forums/index.php/t/489444/

Spray doesn't yet have built-in support for synchronization across independent 
models and diagram editors.

Original comment by de.abg.r...@gmail.com on 1 Nov 2013 at 6:40