Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to Generate (Model) Code deleting prev. gen. code?
How to Generate (Model) Code deleting prev. gen. code? [message #1123569] Wed, 02 October 2013 18:03 Go to next message
Michael Vorburger is currently offline Michael VorburgerFriend
Messages: 103
Registered: July 2009
Senior Member
Is there a way to have Generate (Model) Code deleting all prev. gen. code?

Some flag on the *.genmodel... or would this be possible with a custom Facade Helper Class?

I do understand that all the magic @generated merge "feature" would be lost - never mind.

Or is this an Enhancement? Bugzilla welcome, or waste of time?

Just a thought.
Re: How to Generate (Model) Code deleting prev. gen. code? [message #1124068 is a reply to message #1123569] Thu, 03 October 2013 06:37 Go to previous messageGo to next message
Mikael Barbero is currently offline Mikael BarberoFriend
Messages: 55
Registered: July 2009
Member
Hi,

You may want to have a look at EMF loophole https://github.com/mbarbero/emf-loophole. It lets you define a model on top of genmodel. It adds some nice features like generation of custom classes and what you want: deleting the generated files each time you re-generate.

Hope this helps.


Best regards,

Mikael Barbero
Obeo

[Updated on: Thu, 03 October 2013 06:40]

Report message to a moderator

Re: How to Generate (Model) Code deleting prev. gen. code? [message #1124373 is a reply to message #1124068] Thu, 03 October 2013 13:16 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi Mikael

Thanks for the reference.

You could make it clearer that the URLs are update sites.

Unfortunately I think the limitation that it doesn't work for
cross-referencing genmodels is a killer for me.

It would help to see an example and know what will happen before
installing something that may interfere with genmodel.

Regards

Ed Willink

On 03/10/2013 02:37, Mikael Barbero wrote:
> Hi,
>
> Have a look at EMF loophole https://github.com/mbarbero/emf-loophole.
> It lets you define a model on top of genmodel. It adds some nice
> features like generation of custom classes and what you want: deleting
> the generated files each time you re-generate.
>
> Hope this helps.
Re: How to Generate (Model) Code deleting prev. gen. code? [message #1124542 is a reply to message #1123569] Thu, 03 October 2013 16:43 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Michael,

Does your code contain any hand written changes? If not, you could just
delete the Java packages involved. If so, what are you expecting to
happen to that? If you define the model in Xcore (you can export your
existing *.genmodel to *.xcore) and generate to the default src-gen
folder, a clean build will delete all the generated code...


On 02/10/2013 8:03 PM, Michael Vorburger wrote:
> Is there a way to have Generate (Model) Code deleting all prev. gen.
> code?
>
> Some flag on the *.genmodel... or would this be possible with a custom
> Facade Helper Class?
>
> I do understand that all the magic @generated merge "feature" would be
> lost - never mind.
>
> Or is this an Enhancement? Bugzilla welcome, or waste of time?
>
> Just a thought.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:EMF-Databinding and associated attributes
Next Topic:EMF Installation
Goto Forum:
  


Current Time: Thu Apr 25 01:18:47 GMT 2024

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

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

Back to the top