Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 344643

Summary: [Eugenia] GenerateAllDelegate do not call the FixGenModelDelegate (request)
Product: [Modeling] Epsilon Reporter: Silvia <sil.s06>
Component: CoreAssignee: Antonio Garcia-Dominguez <agarcdomi>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: agarcdomi
Version: unspecifiedKeywords: usability
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Silvia CLA 2011-05-03 17:15:28 EDT
Hi, I'm writing because when customizations are done to the GenModel with an eol module, the synchronization (i.e. with the FixGenModel.eol) is not automatically called. Therefore, manual steps are required. The generateAllDelegate is called when using -> Eugenia -> Generate GMF Editor for both ecore and emf models.

I checked the source code (snv -> trunk) and this functionality is not even included there. I would appreciate if it can be included:

Eugenia project -> Class -> GenerateAllDelegate

// Do Emfatic to Ecore transformation
....
// Do Ecore to GenModel transformation
....

//TODO Include: //Do FixGenModel :)
....

// Do Ecore  to GmfTool, GmfGraph and GmfMap
// Do GmfMap to GmfGen
// Do FixGmfGen
// Generate code from EMF


Thanks.
Silvia
Comment 1 Silvia CLA 2011-05-03 18:03:05 EDT
Hi again. I forgot to include that the customization of the GenModel is not applied neither when the GenModel is generated from the .ecore file. So it would be interesting to have this automatization too. Although is more important to have the complete automatization when using the Generate GMF editor action.

Thanks.
Comment 2 Antonio Garcia-Dominguez CLA 2013-02-13 06:30:51 EST
(In reply to comment #1)
> Hi again. I forgot to include that the customization of the GenModel is not
> applied neither when the GenModel is generated from the .ecore file. So it
> would be interesting to have this automatization too. Although is more
> important to have the complete automatization when using the Generate GMF
> editor action.
> 
> Thanks.

Hi Silvia,

This bug was fixed shortly after your report, particularly on SVN r1744 (March 2012). Sorry for the delay in the update.

The "Generate EMF GenModel" menu entry has its own polishing transformation, "Ecore2GenModel.eol". The FixGenModelDelegate and its polishing transformation "FixGenModel.eol" is called from the "Synchronize EMF GenModel" menu entry.

I've fixed the documentation regarding this (see "What models can I access from the ECore2GMF.eol and FixGMFGen.eol transformations?"):

http://eclipse.org/epsilon/doc/articles/eugenia-polishing/

You're welcome,
Antonio