Defining common figures and edit parts [message #675815] |
Wed, 01 June 2011 11:34  |
Eclipse User |
|
|
|
Hello,
After generating gmfgen, gmfmap and gmfgraph I end up with edit parts and figures that define my model elements. Many of the elements are similar but there is nothing that ties them together in generated code (no common figures or edit parts from my customization perspective). I can refactor the code to extract common classes, but is there a way to do this for gmf editors? In gmfgraph I can create custom figure, so I guess it's doable for figures, but what about edit parts? Is this achievable by:
1.Define custom figure in gmfgraph
2.Generate gmfgen and edit parts will be created based on figure definitions in gmfgraph
I was also thinking about creating a common figure gallery and extending from those figures in my default gallery - not sure if this work as such.
My goal is to do as much customization in gmf editors so that my generated code is as much reusable as possible.
Thanks for your help,
Alex
|
|
|
|
|
Re: Defining common figures and edit parts [message #676389 is a reply to message #676323] |
Sat, 04 June 2011 00:49  |
Eclipse User |
|
|
|
Alex,
comments below...
Alex wrote on Fri, 03 June 2011 12:54Thanks Robert,
I was looking at GMFTools, but the last commit was back in October 2010 so I was not sure if project is still active.
It's still active. So far it serves our purpose, hence few commits lately.
Quote:So if I understand it correctly GMF does not provide a way to define common classes (figures/edit parts) in its editors, so this is where GMFTools come in?
GMF does not provide an easy way via modeling. You need to tweek the templates and/or Generator class, but you do not need GMFTools for that. The changes can be done without it.
Quote:
Also, what are your thoughts on Graphiti project and EuGENia?
I haven't used EuGENia yet, but had a look at Graphiti about a year ago. It appeared to be a replacement for GEF. So you don't get the EMF model synch stuff GMF provides but need to code it yourself. This left me concluding that there's going to be some "modeling project" coding a modeling environment ontop of Graphiti taking the role GMF took for GEF. Turns out I was right: The Spray project was started recently.
Quote:
Thanks,
Alex
Rob
|
|
|
Powered by
FUDForum. Page generated in 0.11147 seconds