|
Re: two kinds of models in GMF [message #509530 is a reply to message #508998] |
Fri, 22 January 2010 17:07 |
Ali Koudri 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.
|
|
|
Powered by
FUDForum. Page generated in 0.03471 seconds