alexroldugin / spray

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

Containment element got lost #234

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
see 
http://groups.google.com/group/spray-users/browse_thread/thread/582d6c3c4f1b87db

I created and appended a little example to reproduce this problem occurs only, 
if you create a new diagram, create a new E2 instances and a new E3 instances 
and then save the diagram. In this case only the last created instance is saved.

If you create E2, save and then create further instances all instances will be 
saved.

new, E21, E31, E22, E32, save => only E32 saved.
new, E21, save, E31, E22, E32, save => E21, E31, E22, E32, saved.

Original issue reported on code.google.com by de.abg.r...@gmail.com on 6 Jan 2013 at 5:03

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 71efdff66f75.

Original comment by joswar...@gmail.com on 6 Jan 2013 at 6:51

GoogleCodeExporter commented 8 years ago
Problem was the the ModelService.getModel() sometimes returned a new root model 
object instead of returning the existing one. If you look into the ecore files 
in the contain.zip you will see it has multiple root elements, each with one of 
the created E2 or E3 elements in it.
Fixed the modelservice.

Original comment by joswar...@gmail.com on 6 Jan 2013 at 6:53