|
|
Re: Regeneration and deleted files [message #381479 is a reply to message #381470] |
Wed, 07 January 2004 21:07 |
Josh Allen 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 |
Frank Budinsky 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 |
Josh Allen 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
|
|
|
Powered by
FUDForum. Page generated in 0.02591 seconds