Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Several diagrams for large models
Several diagrams for large models [message #904967] Wed, 29 August 2012 09:37 Go to next message
Eclipse UserFriend
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 11:07 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Several diagrams for large models [message #905355 is a reply to message #905027] Thu, 30 August 2012 04:17 Go to previous messageGo to next message
Eclipse UserFriend
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 04:36 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Several diagrams for large models [message #905882 is a reply to message #905355] Fri, 31 August 2012 04:54 Go to previous messageGo to next message
Eclipse UserFriend
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 05:42 Go to previous message
Eclipse UserFriend
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: Mon Jul 21 19:22:26 EDT 2025

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

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

Back to the top