Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Regeneration and deleted files
Regeneration and deleted files [message #381464] Wed, 07 January 2004 02:01 Go to next message
Josh Allen is currently offline Josh AllenFriend
Messages: 31
Registered: July 2009
Member
If I delete an EClass from my model, or reload my model from an updated
XML schema which has a complexType removed, should the file for this class
be deleted when I regenerate the model code?

I assumed that any class or interface with an @generated tag in the
_class_ comment that didn't correspond to an EClass in the model would be
deleted, but when I try it the files are not actually deleted. I have
made no manual changes to the files.

Thanks,
Josh
Re: Regeneration and deleted files [message #381470 is a reply to message #381464] Wed, 07 January 2004 14:24 Go to previous messageGo to next message
Frank Budinsky is currently offline Frank BudinskyFriend
Messages: 478
Registered: July 2009
Senior Member
Joshua,

EMF never deletes files or unused imports. Those two things you need to do
manually.

Frank.


Joshua Allen wrote:

> If I delete an EClass from my model, or reload my model from an updated
> XML schema which has a complexType removed, should the file for this class
> be deleted when I regenerate the model code?
>
> I assumed that any class or interface with an @generated tag in the
> _class_ comment that didn't correspond to an EClass in the model would be
> deleted, but when I try it the files are not actually deleted. I have
> made no manual changes to the files.
>
> Thanks,
> Josh
Re: Regeneration and deleted files [message #381479 is a reply to message #381470] Wed, 07 January 2004 21:07 Go to previous messageGo to next message
Josh Allen is currently offline Josh AllenFriend
Messages: 31
Registered: July 2009
Member
Many thanks for the clarification. Unfortunately, I have a model which
has hundreds of classes, many of which have disappeared in the latest
version. Is there some metric I can use to determine which of the
remaining files are still required for the model, and which are not? I
tried looking at the modification date of each file, but it seems that
files that haven't required changes are not modified, so I can't use that.

Frank Budinsky wrote:

> Joshua,

> EMF never deletes files or unused imports. Those two things you need to do
> manually.

> Frank.


> Joshua Allen wrote:

> > If I delete an EClass from my model, or reload my model from an updated
> > XML schema which has a complexType removed, should the file for this class
> > be deleted when I regenerate the model code?
> >
> > I assumed that any class or interface with an @generated tag in the
> > _class_ comment that didn't correspond to an EClass in the model would be
> > deleted, but when I try it the files are not actually deleted. I have
> > made no manual changes to the files.
> >
> > Thanks,
> > Josh
Re: Regeneration and deleted files [message #381484 is a reply to message #381479] Thu, 08 January 2004 03:38 Go to previous messageGo to next message
Frank Budinsky is currently offline Frank BudinskyFriend
Messages: 478
Registered: July 2009
Senior Member
Joshua,

One simple approach would be to temporarily set the Model Directory property in
your generator model to some temp directory, regenerate, and see what files are
created there.

Frank.


Joshua Allen wrote:

> Many thanks for the clarification. Unfortunately, I have a model which
> has hundreds of classes, many of which have disappeared in the latest
> version. Is there some metric I can use to determine which of the
> remaining files are still required for the model, and which are not? I
> tried looking at the modification date of each file, but it seems that
> files that haven't required changes are not modified, so I can't use that.
>
> Frank Budinsky wrote:
>
> > Joshua,
>
> > EMF never deletes files or unused imports. Those two things you need to do
> > manually.
>
> > Frank.
>
> > Joshua Allen wrote:
>
> > > If I delete an EClass from my model, or reload my model from an updated
> > > XML schema which has a complexType removed, should the file for this class
> > > be deleted when I regenerate the model code?
> > >
> > > I assumed that any class or interface with an @generated tag in the
> > > _class_ comment that didn't correspond to an EClass in the model would be
> > > deleted, but when I try it the files are not actually deleted. I have
> > > made no manual changes to the files.
> > >
> > > Thanks,
> > > Josh
Re: Regeneration and deleted files [message #381534 is a reply to message #381484] Tue, 13 January 2004 01:27 Go to previous message
Josh Allen is currently offline Josh AllenFriend
Messages: 31
Registered: July 2009
Member
Frank,

Thanks again. That's essentially what I ended up doing, so I'm glad I was
thinking along the correct lines.

Josh

Frank Budinsky wrote:

> Joshua,

> One simple approach would be to temporarily set the Model Directory property
in
> your generator model to some temp directory, regenerate, and see what files
are
> created there.

> Frank.


> Joshua Allen wrote:

> > Many thanks for the clarification. Unfortunately, I have a model which
> > has hundreds of classes, many of which have disappeared in the latest
> > version. Is there some metric I can use to determine which of the
> > remaining files are still required for the model, and which are not? I
> > tried looking at the modification date of each file, but it seems that
> > files that haven't required changes are not modified, so I can't use that.
> >
> > Frank Budinsky wrote:
> >
> > > Joshua,
> >
> > > EMF never deletes files or unused imports. Those two things you need to
do
> > > manually.
> >
> > > Frank.
> >
> > > Joshua Allen wrote:
> >
> > > > If I delete an EClass from my model, or reload my model from an updated
> > > > XML schema which has a complexType removed, should the file for this
class
> > > > be deleted when I regenerate the model code?
> > > >
> > > > I assumed that any class or interface with an @generated tag in the
> > > > _class_ comment that didn't correspond to an EClass in the model would
be
> > > > deleted, but when I try it the files are not actually deleted. I have
> > > > made no manual changes to the files.
> > > >
> > > > Thanks,
> > > > Josh
Previous Topic:JRE disappears after installing emf
Next Topic:EMF 2.0
Goto Forum:
  


Current Time: Wed Apr 24 20:22:46 GMT 2024

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

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

Back to the top