Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Several diagrams for large models
Several diagrams for large models [message #904967] Wed, 29 August 2012 13:37 Go to next message
Mickaël Vera is currently offline Mickaël VeraFriend
Messages: 8
Registered: February 2012
Junior Member
Hi,

I'm discovering GMF.

What functionnalities does GMF offer to edit very large models that don't fit in a single diagram as a large UML models with hundreds of classes ?

Is it possible to create several diagrams in the same editor and have some entities of the edited model in several diagrams ? Are these information persisted ?

Thanks for any answer.

Regards,
Mickaël
Re: Several diagrams for large models [message #905027 is a reply to message #904967] Wed, 29 August 2012 15:07 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Mickaël,

By default, each diagram is a separate resource so you'd have one editor
per diagram; each diagram can show a subset of the underlying model.


On 29/08/2012 3:37 PM, Mickaël Vera wrote:
> Hi,
>
> I'm discovering GMF.
>
> What functionnalities does GMF offer to edit very large models that
> don't fit in a single diagram as a large UML models with hundreds of
> classes ?
>
> Is it possible to create several diagrams in the same editor and have
> some entities of the edited model in several diagrams ? Are these
> information persisted ?
>
> Thanks for any answer.
>
> Regards,
> Mickaël


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Several diagrams for large models [message #905355 is a reply to message #905027] Thu, 30 August 2012 08:17 Go to previous messageGo to next message
Mickaël Vera is currently offline Mickaël VeraFriend
Messages: 8
Registered: February 2012
Junior Member
Thanks Ed,

If I understand correctly, I can use one large file containing my model in a XMI file natively persisted by EMF. And several "resource" files corresponding each one to a diagram. Each resource file should be opened in its own editor.

But how can I add an entity to several diagrams ? The palette allows me to create entities but how to add in a diagram B an entity E created in a diagram A ?

Regards,
Mickaël
Re: Several diagrams for large models [message #905366 is a reply to message #905355] Thu, 30 August 2012 08:36 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Mickaël,

This kind of case comes up with Ecore Tools for editing diagrams for
*.ecore files. Of course Ecore models can have references to other
Ecore models (because of super types or feature types, for example).
The outline view contains all the loaded resources and you can drag an
object from that outline to the diagram to produce a graphical rendering
for it. So I suppose you can consider that a bit like a palette, but it
doesn't create new objects for the model, but rather "diagram wrappers"
for existing instances in the model.


On 30/08/2012 10:17 AM, Mickaël Vera wrote:
> Thanks Ed,
>
> If I understand correctly, I can use one large file containing my
> model in a XMI file natively persisted by EMF. And several "resource"
> files corresponding each one to a diagram. Each resource file should
> be opened in its own editor.
>
> But how can I add an entity to several diagrams ? The palette allows
> me to create entities but how to add in a diagram B an entity E
> created in a diagram A ?
> Regards,
> Mickaël


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Several diagrams for large models [message #905882 is a reply to message #905355] Fri, 31 August 2012 08:54 Go to previous messageGo to next message
Arto Jarvinen is currently offline Arto JarvinenFriend
Messages: 32
Registered: May 2010
Location: Sweden
Member
Hi,

I'm only just experimenting with this myself but I've created a cut-n-paste operation within and between diagrams that create additional graphical views pointing at the same domain object. I use the ???ViewProvider.createNode() method to create new "nodes", i.e. graphical elements in a diagram. It takes the domain object (semantic model object) as an argument. It all has to be wrapped into commands executed on the command stack etc etc. See my blog for additional info and links. particularly this post: http://www.ostrogothia.com/process/?p=2001.

Arto




Re: Several diagrams for large models [message #905907 is a reply to message #904967] Fri, 31 August 2012 09:42 Go to previous message
Mickaël Vera is currently offline Mickaël VeraFriend
Messages: 8
Registered: February 2012
Junior Member
Thanks for your answers, I have information I was looking for.

Mickaël
Previous Topic:UndoableModelPropertySheetEntry and ComboBoxCellEditor validation problem
Next Topic:Multiple notation elements referencing the same domain element
Goto Forum:
  


Current Time: Thu Apr 18 08:53:26 GMT 2024

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

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

Back to the top