Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Is there a way to delete all generated code?
Is there a way to delete all generated code? [message #508913] Wed, 20 January 2010 17:17 Go to next message
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 428
Registered: September 2009
Senior Member
The subject says all :)

I would like to clean-up a project from all EMF-generated code in order
to do a clean rebuild.

Is it possible?
I have a model derived from annotated java and deleting all @generated
methods is a bit tedious.

TiA
Mauro
Re: Is there a way to delete all generated code? [message #508933 is a reply to message #508913] Wed, 20 January 2010 17:43 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30623
Registered: July 2009
Senior Member
Mauro,

When you regenerate, all old @generated things that haven't been
regenerated are automatically swept out (with the exception of imports,
because they can't be annotated, and entire files, because they might
contain hand written code) so there's no need for a manual step. In any
case, no, there's no way to delete all @generated things.


Mauro Condarelli wrote:
> The subject says all :)
>
> I would like to clean-up a project from all EMF-generated code in
> order to do a clean rebuild.
>
> Is it possible?
> I have a model derived from annotated java and deleting all @generated
> methods is a bit tedious.
>
> TiA
> Mauro
Previous Topic:dialog box to confirm delete
Next Topic:EObject to String
Goto Forum:
  


Current Time: Wed Nov 13 09:35:39 GMT 2019

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

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

Back to the top