Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Controlling ecore file name
Controlling ecore file name [message #422236] Tue, 26 August 2008 20:25 Go to next message
Pete Ellis is currently offline Pete EllisFriend
Messages: 85
Registered: July 2009
Member
Hello all,

I think I'm missing something basic here, and so thought I'd post a question
to the group.

I have 4 model packages as follows:

model.nodeArc
model.nodeArc.flow
model.nodeSegment
model.nodeSegment.flow

The nodeSegment model extends the nodeArc model, and likewise the
nodeSegment.flow model extends the nodeArc.flow model. The two flow models
are dependent on their respective node models. When generating the .ecore
and .genmodel files for these 4 models, EMF defaults the name of the .ecore
file to that of the package. Thus, it seems to want to create:

nodeArc.ecore
flow.ecore
nodeSegment.ecore
flow.ecore

Obviously the two flow.ecore files cannot exist together. Is there a way to
control the name of the .ecore file that gets generated? I'm sure that I
could change package names as a work around, but wanted to avoid this (to
maintain the symmetry in my subpackage structures).

Thanks for any feedback on this,
-Pete
Re: Controlling ecore file name [message #422241 is a reply to message #422236] Wed, 27 August 2008 04:24 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Pete,

Comments below

Pete Ellis wrote:
> Hello all,
>
> I think I'm missing something basic here, and so thought I'd post a question
> to the group.
>
> I have 4 model packages as follows:
>
> model.nodeArc
> model.nodeArc.flow
> model.nodeSegment
> model.nodeSegment.flow
>
> The nodeSegment model extends the nodeArc model, and likewise the
> nodeSegment.flow model extends the nodeArc.flow model. The two flow models
> are dependent on their respective node models. When generating the .ecore
> and .genmodel files for these 4 models, EMF defaults the name of the .ecore
> file to that of the package. Thus, it seems to want to create:
>
> nodeArc.ecore
> flow.ecore
> nodeSegment.ecore
> flow.ecore
>
> Obviously the two flow.ecore files cannot exist together.
Not in the same folder. Is that what you're doing?
> Is there a way to
> control the name of the .ecore file that gets generated?
The wizard page that comes up at the end allows you to edit the names of
the .ecore files
> I'm sure that I
> could change package names as a work around, but wanted to avoid this (to
> maintain the symmetry in my subpackage structures).
>
> Thanks for any feedback on this,
> -Pete
>
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Controlling ecore file name [message #422255 is a reply to message #422241] Wed, 27 August 2008 12:47 Go to previous message
Pete Ellis is currently offline Pete EllisFriend
Messages: 85
Registered: July 2009
Member
>> Is there a way to control the name of the .ecore file that gets
>> generated?

> The wizard page that comes up at the end allows you to edit the names of
> the .ecore files

Ah yes, of course! This was the missing piece... I thought that table
column was just informational; didn't occur to me to click around in there
and see if the fields were editable (which they certainly are).

Thanks,
-Pete
Previous Topic:xsd schema import
Next Topic:EMF databinding TableViewer
Goto Forum:
  


Current Time: Fri Apr 26 19:05:05 GMT 2024

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

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

Back to the top