Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF should use data from the model to display
GMF should use data from the model to display [message #91700] Thu, 11 January 2007 12:39 Go to next message
Eclipse UserFriend
Originally posted by: martin.tauber.t-online.de

Hello everybody.

GMF creates a .whatever containing the model file and a
..whatever_diagram file containing view specific data. Now some of that
data is in my model (like the position and the size of the object) how
can I make GMF use these?

Thanks
Martin
Re: GMF should use data from the model to display [message #91732 is a reply to message #91700] Thu, 11 January 2007 16:04 Go to previous message
Eclipse UserFriend
Originally posted by: NOSAPM.xyz.com

"Martin Tauber" <martin.tauber@t-online.de> wrote in message
news:eo5soc$nrb$1@utils.eclipse.org...
> Hello everybody.
>
> GMF creates a .whatever containing the model file and a .whatever_diagram
> file containing view specific data. Now some of that data is in my model
> (like the position and the size of the object) how can I make GMF use
> these?
>
> Thanks
> Martin

GMF is strongly dedicated to keeeping the semantics (aka "business" logic)
separated from the visuals. May be you can refactor these positions and
sizes
out of your model and let the GMFs notation model deal with them.
Still, If you really want to have it that way then override
"handleNotifications" in your EditParts and transfer the changes of these
parameters to the actual figures.
Good luck
Theo
Previous Topic:AssertionFailedExeption when creating diagram
Next Topic:how to use connection anchors with compartments?
Goto Forum:
  


Current Time: Wed Jul 16 12:42:46 EDT 2025

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

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

Back to the top