Skip to main content



      Home
Home » Modeling » EMF » [EMF] Generation Gap EcoreGenerator
[EMF] Generation Gap EcoreGenerator [message #1620606] Tue, 17 February 2015 04:54 Go to next message
Eclipse UserFriend
Hello,

if i customize code in a emf model, i use the org.eclipse.emf.mwe2.ecore.EcoreGenerator. Same like here https://christiandietrich.wordpress.com/2013/07/26/use-of-ecoregenerator-to-customize-emfs-generated-java-classes/

But the key word "Custom" doesn't work for the edit code. Does anybody know a Generator for the edit code to use Generation Gap? Or know what i have to do in org.eclipse.emf.mwe2.ecore.EcoreGenerator?

Thanks Smile
Re: [EMF] Generation Gap EcoreGenerator [message #1621449 is a reply to message #1620606] Tue, 17 February 2015 17:38 Go to previous messageGo to next message
Eclipse UserFriend
Dennis,

I think the MWE folks only cared about the model code not the edit and
editor code, so I don't think anything supports that.

On 17.02.2015 10:54, Dennis Melzer wrote:
> Hello,
>
> if i customize code in a emf model, i use the
> org.eclipse.emf.mwe2.ecore.EcoreGenerator. Same like here
> https://christiandietrich.wordpress.com/2013/07/26/use-of-ecoregenerator-to-customize-emfs-generated-java-classes/
>
>
> But the key word "Custom" doesn't work for the edit code. Does anybody
> know a Generator for the edit code to use Generation Gap? Or know what i
> have to do in org.eclipse.emf.mwe2.ecore.EcoreGenerator?
>
> Thanks :)
Re: [EMF] Generation Gap EcoreGenerator [message #1622181 is a reply to message #1621449] Wed, 18 February 2015 05:13 Go to previous messageGo to next message
Eclipse UserFriend
Ed Merks wrote on Tue, 17 February 2015 17:38

I think the MWE folks only cared about the model code not the edit and
editor code, so I don't think anything supports that.



Yes i know, but my hope is that anybody (itemis people) can show what i have to do. Or maybe the expense is too high for this feature.

[Updated on: Wed, 18 February 2015 05:13] by Moderator

Re: [EMF] Generation Gap EcoreGenerator [message #1622221 is a reply to message #1620606] Wed, 18 February 2015 05:45 Go to previous messageGo to next message
Eclipse UserFriend
Le 17/02/2015 10:54, Dennis Melzer a écrit :
> Hello,

Hi.

> if i customize code in a emf model, i use the
> org.eclipse.emf.mwe2.ecore.EcoreGenerator. Same like here
> https://christiandietrich.wordpress.com/2013/07/26/use-of-ecoregenerator-to-customize-emfs-generated-java-classes/
>
>
> But the key word "Custom" doesn't work for the edit code. Does anybody
> know a Generator for the edit code to use Generation Gap? Or know what i
> have to do in org.eclipse.emf.mwe2.ecore.EcoreGenerator?

I believe https://github.com/mbarbero/emf-loophole, which automates this
pattern, supports it for the .edit part (no mention of the editor part).
I have not tested it though.


--
Pierre-Charles David - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: [EMF] Generation Gap EcoreGenerator [message #1622615 is a reply to message #1622221] Wed, 18 February 2015 11:24 Go to previous messageGo to next message
Eclipse UserFriend
Pierre-Charles David wrote on Wed, 18 February 2015 05:45
Le
I believe https://github.com/mbarbero/emf-loophole, which automates this
pattern, supports it for the .edit part (no mention of the editor part).
I have not tested it though.

--
Pierre-Charles David - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


Hi,

thanks for your quick reply.
The Project doesn't exist. Is the project private?
The model and edit part is completely enough for my code generation

Best Regards

[Updated on: Wed, 18 February 2015 11:38] by Moderator

Re: [EMF] Generation Gap EcoreGenerator [message #1632320 is a reply to message #1622615] Tue, 24 February 2015 02:48 Go to previous messageGo to next message
Eclipse UserFriend
Dennis Melzer wrote on Wed, 18 February 2015 17:24

Hi,

thanks for your quick reply.
The Project doesn't exist. Is the project private?
The model and edit part is completely enough for my code generation


The project does exist, and is public: it just seems the Eclipse forum software mishandled the URL I gave and included the trailing comma in the link. The proper URL is: https://github.com/mbarbero/emf-loophole
Re: [EMF] Generation Gap EcoreGenerator [message #1632328 is a reply to message #1632320] Tue, 24 February 2015 02:53 Go to previous message
Eclipse UserFriend
Cool Cool
I will try it.
Thanks a lot.

Is there a possibility to generate the Code (gengapmodel) without IDE e.g. with MWE2 or direkt maven?

[Updated on: Tue, 24 February 2015 02:57] by Moderator

Previous Topic:CDI annotations - customize generated code
Next Topic:EMF-FACET
Goto Forum:
  


Current Time: Tue Jul 15 02:57:45 EDT 2025

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

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

Back to the top