Customize GMF editors [message #662808] |
Thu, 31 March 2011 23:29  |
Eclipse User |
|
|
|
Hi,
I am new with GMF templates. I would like help on:
- Do xpt templates for GMF modify generated models (gmfmap, gmftool,gmfgen, gmfgraph) as they customize the generated editor code?
- Is there any reverse transformation chain or generators:
e.g. ATL Flow Generators
e.g. IAML GMF Tools
i.e. .Reverse transformation: gmfgen --> .gmfmap --> ( .gmfgraph + .gmftool + .ecore ) ?
- Is posible to synchronize .gmfgen and .gmfmap with modified source code?
Thanks in advance.
|
|
|
|
|
|
|
|
|
|
Re: Customize GMF editors [message #664006 is a reply to message #663993] |
Thu, 07 April 2011 03:56   |
Eclipse User |
|
|
|
LD wrote on Thu, 07 April 2011 08:35 | Hi. Thank you Mickael, Ralph and Aurelien.
Sure Bonita Studio team is effective, the Award and the quality of the product talk really positive.
|
Thank you 
LD wrote on Thu, 07 April 2011 08:35 |
[Templates and Extensions ~Related Q.]
1. Templates in org.bonitasoft.studio-models/GMFTemplates/ are used for customizing this projects:
- (proj1) org.bonitasoft.studio.diagram/ (100% generated)
- org.bonitasoft.studio.diagram.custom/ (100% generated) Are the extensions generated too?
- org.bonitasoft.studio.common.diagram/ (100% generated)
|
org.bonitasoft.studio.diagram/ is generated
org.bonitasoft.studio.diagram.custom/ nothing is not generated, there are most of the subclass and providers that extends the generated code
g.bonitasoft.studio.common.diagram/ is not generated. We are using some classes in the generated code and also for the other diagram.
LD wrote on Thu, 07 April 2011 08:35 |
2. Templates in org.bonitasoft.studio-models/form/GMFTemplates/
- (proj2) org.bonitasoft.studio.diagram.form/ (100% generated)
- org.bonitasoft.studio.diagram.form.custom/ (x% generated)
|
- (proj2) org.bonitasoft.studio.diagram.form/ (100% generated)
- org.bonitasoft.studio.diagram.form.custom/ (0% generated)
LD wrote on Thu, 07 April 2011 08:35 |
3. Templates are not involved with generating:
- org.bonitasoft.studio.diagram.form.properties/
|
no
LD wrote on Thu, 07 April 2011 08:35 |
[Execution of Templates ~Related Q.]
4. I see some of the projects (i.e. proj1, proj2) are automatically generated by means of GMF Diagram Code Generation functionality. And similar with the EMF templates. But do you use any other mechanism to automate the generation such as an ANT script, MWE, particular eclipse LUNCH configurations or something else?
|
In development mode, we are using the classic right-click generate code on the model files.
For build process, we are using ant tasks to generate EMF and GMF code. It avoids to have desynchronisation between svn code and generated code.
LD wrote on Thu, 07 April 2011 08:35 |
[GMF models manipulation by transformation ~Related Q.]
5. I saw specific customizations of the .gmfgraph, .gmfmap such the required for having intemediate bpmn events in the border of an activity in bonita studio models project. Are this customizations done by hand, or do have scripts to manipulate those models such as the language EOL from Epsilon or the QVTO mentioned by Ralph?
|
For border items, I invite you to take a look to this blogpost: http://www.bonitasoft.org/blog/tutorial/how-to-create-and-cu stomize-boundary-items-in-eclipse-gmf/
Regards,
|
|
|
|
|
|
Re: Customize GMF editors [message #664170 is a reply to message #663375] |
Thu, 07 April 2011 13:22  |
Eclipse User |
|
|
|
Hi,
Quote: | Why do you choose to use a post-reconcile approcach and don't customize code generation at the generation? Some precise use cases? Easier code to read?
|
I use this for all changes to the generator model that are done by hand. My usecases are filling in the paths for aspect templates, building up the gen navigator, fixing a bug with expression labels etc. The transformation enables me to delete and generate the generator model without the need to set it up by hand after is was deleted and new created.
Actually I use this. The blog post is very helpful for beginners.
Why do you override addFixedChild and not addBorderItem?
Ralph
[Updated on: Thu, 07 April 2011 13:34] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.07941 seconds