Community
Participate
Working Groups
GMF Tooling already allows to model link the semantic properties with different bits of the visual appearance by the means of Pins. E.g, color, or image or just the the visibility of some parts of the figure may be automatically updated when the semantic property is changed. However the users at forum frequently asked for extension of this functionality to cover: - all possible elements of the gmfgraph model: - - borders, - - link decorations - - connections style (width, dash, etc) - - layout properties? - - the whole different shapes of the figure See e.g: http://www.eclipse.org/forums/index.php/t/497731/ Right now some of this is already possible to model via the CustomPin's but it is difficult to implement, not documented and would require toolsmith to write the custom templates anyway. In Luna, there should be better support for this, allowing to - - just define multiple choices for some parts of the gmf graph model, say instead of single Figure#border there may be a bunch of all the desired Borders defined in the GMF graph. - - transform such pack of the choices into some new kind of a Pin, representing, e.g the index of "active" border in list (taht is, a primitive value) - - in the map model link the pin to some OCL that produces the single int value of the "desired" index based on semantic model