Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Multiple Diagrams based on one model-file for the DomainModel
Multiple Diagrams based on one model-file for the DomainModel [message #895536] Fri, 13 July 2012 09:00 Go to previous message
Daniel P is currently offline Daniel P
Messages: 1
Registered: July 2012
Junior Member
Hello Graphiti-Community,

which way do you suggest to create multiple diagrams which are based on one model-file?

I have a Domain-Model with one root-element which holds a containment list with an arbitary number of child-elements and each child element has some attributes. Based on this Domain-Model I want to make each child element editable through a graphiti editor.

If I'm right this should work with one file for the domain-model and seperate files for each diagram representing one child of the root-element. I implemented this through overwirting FileService.createEmfFileForDiagram(URI diagramResourceUri, final Diagram diagram)" so that I provide one overall ResourceSet the created diagrams are placed in. Additionally, the ResourceSet contains the domain-model Resource. When a new diagram is created, I link the diagram to the chil-element of the domain-model.

This works fine as I can edit each child-element of the domain-root element through seperate graphiti editors. However, the problem is, when I create a new Diagram, the domain-model file is kind of "resettet". This means all content which has been added through editors gets removed from the domain-model file. When I start adding components again, all works perfect... unti I create a new Diagram.

Do you have any suggestions what I'm doing wrong?
 
Read Message
Read Message
Previous Topic:Error : Unable to find feature.xml
Next Topic:TransactionalEditingDomain and Resource
Goto Forum:
  


Current Time: Sat May 18 20:53:55 EDT 2013

Powered by FUDForum. Page generated in 0.01732 seconds