Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » two kinds of models in GMF
two kinds of models in GMF [message #508998] Thu, 21 January 2010 04:48 Go to next message
SonglinPiao  is currently offline SonglinPiao Friend
Messages: 11
Registered: December 2009
Junior Member
These days I am confused with models in GMF. As we know , GMF can put the bridge between GEF and EMF .And GEF is implemented using MVC structure . Now I have already implemented a lot of logical classes. My question is that can these classes be models in GMF directly ? Or there are other corresponding models to these logical classes in GMF, which can only manage the shapes of the models? I mean two kinds of models. One is responsible for logical management , and the other is responsible for only shape management. I can't create each corresponding shape models by one by , because there so many logical classes. What I need is just a few shapes, rectangle ,triangle, circle and so on . In this case , how shall I decide the whole architecture? Is there anybody who already experienced these problems? Thank you!
Re: two kinds of models in GMF [message #509530 is a reply to message #508998] Fri, 22 January 2010 17:07 Go to previous message
Ali Koudri is currently offline Ali KoudriFriend
Messages: 118
Registered: July 2009
Senior Member
Le 21/01/2010 05:48, SonglinPiao a écrit :
> These days I am confused with models in GMF. As we know , GMF can
> put the bridge between GEF and EMF .And GEF is implemented using MVC
> structure .

I think GEF is a poor MVC implementation: indeed, you still need to
store information related to graphical view into the model. To me, GMF,
in addition to simplifying graphical editors generation, fills the
shortcomings of GEF intrducing a notational domain.

>Now I have already implemented a lot of logical classes. My
> question is that can these classes be models in GMF directly ? Or there
> are other corresponding models to these logical classes in GMF, which
> can only manage the shapes of the models? I mean two kinds of models.
> One is responsible for logical management , and the other is responsible
> for only shape management. I can't create each corresponding shape
> models by one by , because there so many logical classes. What I need is
> just a few shapes, rectangle ,triangle, circle and so on . In this case
> , how shall I decide the whole architecture? Is there anybody who
> already experienced these problems? Thank you!

I am not sure I have understood the whole thing but in GMF there is a
clear separation between logic class representation end their shapes,
allowing you to capitalize as much as you can the definition of figures.

Cheers.
Previous Topic:Copy Objects with ecoreutil.copy
Next Topic:How to connect inner nodes to external nodes through compartment
Goto Forum:
  


Current Time: Wed Apr 24 14:22:08 GMT 2024

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

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

Back to the top