Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Bind layout constraints to model
Bind layout constraints to model [message #696516] Thu, 14 July 2011 07:17 Go to next message
Andreas Scharf is currently offline Andreas Scharf
Messages: 18
Registered: September 2010
Junior Member
Hi,

is it possible to bind the x/y attribute in my model to the layout constraints for the diagram? In my use case I automatically generate my model file out of another file. My model file then already contains x/y coordinates which I want to use as layout information within my diagram.

Any suggestions?

Kind regards,
Andreas
Re: Bind layout constraints to model [message #701172 is a reply to message #696516] Sun, 24 July 2011 18:59 Go to previous message
Aurelien Pupier is currently offline Aurelien Pupier
Messages: 571
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

we have done this kind of things in form editor of Bonita Open Solution Studio.
The synchronisation is done in refreshBounds method of each editparts.
You can see it from aspect templates we are using: http://www.bonitasoft.org/websvn/filedetails.php?repname=Bonita+Open+Solution&path=%2Fbonita-studio%2Ftags%2Fbonita-studio-5.5%2Fplugins%2Forg.bonitasoft.studio-models%2Fform%2FGMFTemplates%2Faspects%2Fdiagram%2Feditparts%2FNodeEditPart.xpt

regards,


Aurélien Pupier - Bonitasoft S.A.
My company Eclipse-related blog
Previous Topic:One Shared Editing Domain for each data model
Next Topic:How to identify any Particular Component from GMF Editor
Goto Forum:
  


Current Time: Mon Oct 20 04:42:21 GMT 2014

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

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