Multiple Diagrams for 1 Domain Model [message #889739] |
Tue, 19 June 2012 14:25  |
Eclipse User |
|
|
|
Hi,
can you tell me if this is possible with GMF:
I have 1 big domain model. What I am trying to do is to have multiple diagram editors. With each diagram editor, I only want to edit a small part of the domain model but I always want use the same underlying instance of the domain model.
So:
First, I will create my domain model: model.ecore
Second, I will create n GMF projects, each representing one diagram editor.
The structure will look as follows:
MyEditor
+ src
+ META-inf
+ model
+ GMF Editor 1
+ GMF Editor 1.genmodel
+ GMF Editor 1.gmfgen
+ GMF Editor 1.gmfmap
+ GMF Editor 1.gmftool
+ GMF Editor 1.gmfgraph
+ GMF Editor 2
+ GMF Editor 2.genmodel
+ GMF Editor 2.gmfgen
+ GMF Editor 2.gmfmap
+ GMF Editor 2.gmftool
+ GMF Editor 2.gmfgraph
+ GMF Editor 3
+ GMF Editor 3.genmodel
+ GMF Editor 3.gmfgen
+ GMF Editor 3.gmfmap
+ GMF Editor 3.gmftool
+ GMF Editor 3.gmfgraph
+ model.ecore
Is this approach okay, do I keep sth. in mind ?!
|
|
|
Re: Multiple Diagrams for 1 Domain Model [message #889745 is a reply to message #889739] |
Tue, 19 June 2012 14:30   |
Eclipse User |
|
|
|
Hi,
it seems okay.
We are doing it at Bonitasoft (for 2 editors only).
Some keywords for your further investigation:
- OpenEditPolicy in order to navigate between diagrams (easy)
- Shared Editing Domain in order to be able to edit several diagrams on the same model instance at the same time (hard)
Regards,
|
|
|
|
|
Re: Multiple Diagrams for 1 Domain Model [message #889758 is a reply to message #889749] |
Tue, 19 June 2012 14:41  |
Eclipse User |
|
|
|
Matthias N wrote on Tue, 19 June 2012 16:33I aggree, my fault.
One more question, If I use the "Related Diagrams" feature, the desired diagram editor opens. Doesn't it edit the same domain model automatically ?
It should. it seems to be an even easier way than using OpenEditPolicy 
I don't remember why we use OpenEditPolicy and not Related DIagram feature.
|
|
|
Powered by
FUDForum. Page generated in 0.03903 seconds