Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Multiple Diagrams for 1 Domain Model
Multiple Diagrams for 1 Domain Model [message #889739] Tue, 19 June 2012 14:25 Go to next message
Matthias N is currently offline Matthias NFriend
Messages: 66
Registered: June 2012
Member
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 Go to previous messageGo to next message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

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,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: Multiple Diagrams for 1 Domain Model [message #889747 is a reply to message #889745] Tue, 19 June 2012 14:32 Go to previous messageGo to next message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hum I answered too quickly.
Why do you have several genmodel? You need only one I think.


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: Multiple Diagrams for 1 Domain Model [message #889749 is a reply to message #889747] Tue, 19 June 2012 14:33 Go to previous messageGo to next message
Matthias N is currently offline Matthias NFriend
Messages: 66
Registered: June 2012
Member
I 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 ?
Re: Multiple Diagrams for 1 Domain Model [message #889758 is a reply to message #889749] Tue, 19 June 2012 14:41 Go to previous message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Matthias N wrote on Tue, 19 June 2012 16:33
I 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 Smile
I don't remember why we use OpenEditPolicy and not Related DIagram feature.


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Previous Topic:GMF Tooling Runtime Missing in Juno 4.2 RC2/RC3
Next Topic:How to arrange the property
Goto Forum:
  


Current Time: Fri Apr 19 08:47:16 GMT 2024

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

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

Back to the top