Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Three metamodels in one ecore
Three metamodels in one ecore [message #429090] Wed, 08 April 2009 03:16 Go to next message
Rômulo  rpini is currently offline Rômulo rpiniFriend
Messages: 36
Registered: July 2009
Member
Hey guys,

Thanks for your help I managed to reference two other ecores in one, but
the final result was unexpected, because I want to do something like this:

I have 2 editors that I want to relate, so I will create a metamodel that
will has classes that will reference classes from the other two
metamodels. And when I run the application and open the emf editor, I want
to be able to instance elements from the two metamodel separetly.

Actually, I will have 2 xmi with information to populate the two
metamodels that my third metamodel will reference, so all I want is to
have a emf plugin that will be populated with 2 xmi and then I will
instance elements from the third metamodel and then reference the elements
that I've just loaded the XMIs.

Am I clear? My english isnt very good, so sorry if I am not clear.

And thanks for your help.

Best Regards,

Romulo
Re: Three metamodels in one ecore [message #429097 is a reply to message #429090] Wed, 08 April 2009 10:09 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Romulo,

Comments below.

Romulo Arpini wrote:
> Hey guys,
>
> Thanks for your help I managed to reference two other ecores in one,
> but the final result was unexpected, because I want to do something
> like this:
>
> I have 2 editors that I want to relate, so I will create a metamodel
> that will has classes that will reference classes from the other two
> metamodels. And when I run the application and open the emf editor, I
> want to be able to
to what?
> instance elements from the two metamodel separetly.
> Actually, I will have 2 xmi with information to populate the two
> metamodels that my third metamodel will reference,
Much like our mapping model can refer to two instances being mapped.
> so all I want is to have a emf plugin that will be populated with 2
> xmi and then I will instance
I guess you mean instantiate or is there a word missing?
> elements from the third metamodel and then reference the elements that
> I've just loaded the XMIs.
>
> Am I clear? My english isnt very good, so sorry if I am not clear.
It's slightly not clear, but I'm culturally sensitive. :-P
>
> And thanks for your help.
If your third model has containment references to either of the first
two models, the editor for the third model should be able to create
instances of the first to models into these containment references. If
you only have non-containment references, then you'd need to use the
same mechanism by which you got the third Ecore to refer to the first
two. I.e., you'd use Load Resource... in the third model's editor to
load resources with instances from the first two models, and then in the
cell editor for the properties of the non-containment references those
objects would be available to be referenced by the third model. I'm
pretty sure you're trying to do one of these two things, but I could
have imagined incorrectly....
>
> Best Regards,
>
> Romulo
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Three metamodels in one ecore [message #429110 is a reply to message #429097] Wed, 08 April 2009 18:48 Go to previous messageGo to next message
Rômulo  rpini is currently offline Rômulo rpiniFriend
Messages: 36
Registered: July 2009
Member
Ed, thanks a lot for your help. Yeah, I want to do exactly like you
figured and loading resources worked, thanks!

But now you said I m more interested in having containment references to
the two metamodels, i.e. to be able to create instances from the two
metamodels in the final plugin that you will relate both!

But how can I do that? I.e., have containment references?

Ed Merks wrote:

> Romulo,

> Comments below.

> Romulo Arpini wrote:
>> Hey guys,
>>
>> Thanks for your help I managed to reference two other ecores in one,
>> but the final result was unexpected, because I want to do something
>> like this:
>>
>> I have 2 editors that I want to relate, so I will create a metamodel
>> that will has classes that will reference classes from the other two
>> metamodels. And when I run the application and open the emf editor, I
>> want to be able to
> to what?
>> instance elements from the two metamodel separetly.
>> Actually, I will have 2 xmi with information to populate the two
>> metamodels that my third metamodel will reference,
> Much like our mapping model can refer to two instances being mapped.
>> so all I want is to have a emf plugin that will be populated with 2
>> xmi and then I will instance
> I guess you mean instantiate or is there a word missing?
>> elements from the third metamodel and then reference the elements that
>> I've just loaded the XMIs.
>>
>> Am I clear? My english isnt very good, so sorry if I am not clear.
> It's slightly not clear, but I'm culturally sensitive. :-P
>>
>> And thanks for your help.
> If your third model has containment references to either of the first
> two models, the editor for the third model should be able to create
> instances of the first to models into these containment references. If
> you only have non-containment references, then you'd need to use the
> same mechanism by which you got the third Ecore to refer to the first
> two. I.e., you'd use Load Resource... in the third model's editor to
> load resources with instances from the first two models, and then in the
> cell editor for the properties of the non-containment references those
> objects would be available to be referenced by the third model. I'm
> pretty sure you're trying to do one of these two things, but I could
> have imagined incorrectly....
>>
>> Best Regards,
>>
>> Romulo
>>
Re: Three metamodels in one ecore [message #429111 is a reply to message #429110] Wed, 08 April 2009 19:04 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Romulo,

Change the EReference's containment property to be true. But take note:
the GenFeature that wraps an EReference will have properties there were
set based on defaults that made the most sense when first it was
created. So the "Children" property will remain false and you'll either
need to create a new fresh GenModel or you'll need to fiddle with the
GenFeature's property to ensure it's used for showing children and to
support creating children...



Romulo Arpini wrote:
> Ed, thanks a lot for your help. Yeah, I want to do exactly like you
> figured and loading resources worked, thanks!
>
> But now you said I m more interested in having containment references
> to the two metamodels, i.e. to be able to create instances from the
> two metamodels in the final plugin that you will relate both!
>
> But how can I do that? I.e., have containment references?
> Ed Merks wrote:
>
>> Romulo,
>
>> Comments below.
>
>> Romulo Arpini wrote:
>>> Hey guys,
>>>
>>> Thanks for your help I managed to reference two other ecores in one,
>>> but the final result was unexpected, because I want to do something
>>> like this:
>>>
>>> I have 2 editors that I want to relate, so I will create a metamodel
>>> that will has classes that will reference classes from the other two
>>> metamodels. And when I run the application and open the emf editor,
>>> I want to be able to
>> to what?
>>> instance elements from the two metamodel separetly.
>>> Actually, I will have 2 xmi with information to populate the two
>>> metamodels that my third metamodel will reference,
>> Much like our mapping model can refer to two instances being mapped.
>>> so all I want is to have a emf plugin that will be populated with 2
>>> xmi and then I will instance
>> I guess you mean instantiate or is there a word missing?
>>> elements from the third metamodel and then reference the elements
>>> that I've just loaded the XMIs.
>>>
>>> Am I clear? My english isnt very good, so sorry if I am not clear.
>> It's slightly not clear, but I'm culturally sensitive. :-P
>>>
>>> And thanks for your help.
>> If your third model has containment references to either of the first
>> two models, the editor for the third model should be able to create
>> instances of the first to models into these containment references.
>> If you only have non-containment references, then you'd need to use
>> the same mechanism by which you got the third Ecore to refer to the
>> first two. I.e., you'd use Load Resource... in the third model's
>> editor to load resources with instances from the first two models,
>> and then in the cell editor for the properties of the non-containment
>> references those objects would be available to be referenced by the
>> third model. I'm pretty sure you're trying to do one of these two
>> things, but I could have imagined incorrectly....
>>>
>>> Best Regards,
>>>
>>> Romulo
>>>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Three metamodels in one ecore [message #429112 is a reply to message #429111] Wed, 08 April 2009 22:19 Go to previous messageGo to next message
Rômulo  rpini is currently offline Rômulo rpiniFriend
Messages: 36
Registered: July 2009
Member
Hey Ed, thanks again for your reply.

I tried here what you said but itŽs not like I wanted... I want to have
the entire models in the third ecore, i.e., in the emf editor, I want to
be able to create a complete editor for the 3 metamodels, for example,
initially I will be able to create 3 children, one that is the first
metamodel, one for the second and one for the third I created, and then,
this third will reference elements that will be created on the other two.

I think itŽs something like to have 3 packages on the ecore, but I cannot
copy & paste the metamodels to my ecore... is there any way?

Best Regards,

Romul

> Romulo,

> Change the EReference's containment property to be true. But take note:
> the GenFeature that wraps an EReference will have properties there were
> set based on defaults that made the most sense when first it was
> created. So the "Children" property will remain false and you'll either
> need to create a new fresh GenModel or you'll need to fiddle with the
> GenFeature's property to ensure it's used for showing children and to
> support creating children...



> Romulo Arpini wrote:
>> Ed, thanks a lot for your help. Yeah, I want to do exactly like you
>> figured and loading resources worked, thanks!
>>
>> But now you said I m more interested in having containment references
>> to the two metamodels, i.e. to be able to create instances from the
>> two metamodels in the final plugin that you will relate both!
>>
>> But how can I do that? I.e., have containment references?
>> Ed Merks wrote:
>>
>>> Romulo,
>>
>>> Comments below.
>>
>>> Romulo Arpini wrote:
>>>> Hey guys,
>>>>
>>>> Thanks for your help I managed to reference two other ecores in one,
>>>> but the final result was unexpected, because I want to do something
>>>> like this:
>>>>
>>>> I have 2 editors that I want to relate, so I will create a metamodel
>>>> that will has classes that will reference classes from the other two
>>>> metamodels. And when I run the application and open the emf editor,
>>>> I want to be able to
>>> to what?
>>>> instance elements from the two metamodel separetly.
>>>> Actually, I will have 2 xmi with information to populate the two
>>>> metamodels that my third metamodel will reference,
>>> Much like our mapping model can refer to two instances being mapped.
>>>> so all I want is to have a emf plugin that will be populated with 2
>>>> xmi and then I will instance
>>> I guess you mean instantiate or is there a word missing?
>>>> elements from the third metamodel and then reference the elements
>>>> that I've just loaded the XMIs.
>>>>
>>>> Am I clear? My english isnt very good, so sorry if I am not clear.
>>> It's slightly not clear, but I'm culturally sensitive. :-P
>>>>
>>>> And thanks for your help.
>>> If your third model has containment references to either of the first
>>> two models, the editor for the third model should be able to create
>>> instances of the first to models into these containment references.
>>> If you only have non-containment references, then you'd need to use
>>> the same mechanism by which you got the third Ecore to refer to the
>>> first two. I.e., you'd use Load Resource... in the third model's
>>> editor to load resources with instances from the first two models,
>>> and then in the cell editor for the properties of the non-containment
>>> references those objects would be available to be referenced by the
>>> third model. I'm pretty sure you're trying to do one of these two
>>> things, but I could have imagined incorrectly....
>>>>
>>>> Best Regards,
>>>>
>>>> Romulo
>>>>
>>
>>
Re: Three metamodels in one ecore [message #429113 is a reply to message #429112] Wed, 08 April 2009 22:33 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Romulo,

Comments below.

Romulo Arpini wrote:
> Hey Ed, thanks again for your reply.
>
> I tried here what you said but itŽs not like I wanted... I want to
> have the entire models in the third ecore, i.e., in the emf editor, I
> want to be able to create a complete editor for the 3 metamodels,
I'm not sure I follow. A complete editor is a UI thing. A complete
tree of instances is what the model would allow...
> for example, initially I will be able to create 3 children, one that
> is the first metamodel, one for the second and one for the third I
> created, and then, this third will reference elements that will be
> created on the other two.
I don't follow that last phrase even a little bit...
>
> I think itŽs something like to have 3 packages on the ecore,
I don't thing digressing into the model will help.
> but I cannot copy & paste the metamodels to my ecore... is there any way?
I'm completely lost now. Sorry...
>
> Best Regards,
>
> Romul
>
>> Romulo,
>
>> Change the EReference's containment property to be true. But take
>> note: the GenFeature that wraps an EReference will have properties
>> there were set based on defaults that made the most sense when first
>> it was created. So the "Children" property will remain false and
>> you'll either need to create a new fresh GenModel or you'll need to
>> fiddle with the GenFeature's property to ensure it's used for showing
>> children and to support creating children...
>
>
>
>> Romulo Arpini wrote:
>>> Ed, thanks a lot for your help. Yeah, I want to do exactly like you
>>> figured and loading resources worked, thanks!
>>>
>>> But now you said I m more interested in having containment
>>> references to the two metamodels, i.e. to be able to create
>>> instances from the two metamodels in the final plugin that you will
>>> relate both!
>>>
>>> But how can I do that? I.e., have containment references?
>>> Ed Merks wrote:
>>>
>>>> Romulo,
>>>
>>>> Comments below.
>>>
>>>> Romulo Arpini wrote:
>>>>> Hey guys,
>>>>>
>>>>> Thanks for your help I managed to reference two other ecores in
>>>>> one, but the final result was unexpected, because I want to do
>>>>> something like this:
>>>>>
>>>>> I have 2 editors that I want to relate, so I will create a
>>>>> metamodel that will has classes that will reference classes from
>>>>> the other two metamodels. And when I run the application and open
>>>>> the emf editor, I want to be able to
>>>> to what?
>>>>> instance elements from the two metamodel separetly.
>>>>> Actually, I will have 2 xmi with information to populate the two
>>>>> metamodels that my third metamodel will reference,
>>>> Much like our mapping model can refer to two instances being mapped.
>>>>> so all I want is to have a emf plugin that will be populated with
>>>>> 2 xmi and then I will instance
>>>> I guess you mean instantiate or is there a word missing?
>>>>> elements from the third metamodel and then reference the elements
>>>>> that I've just loaded the XMIs.
>>>>>
>>>>> Am I clear? My english isnt very good, so sorry if I am not clear.
>>>> It's slightly not clear, but I'm culturally sensitive. :-P
>>>>>
>>>>> And thanks for your help.
>>>> If your third model has containment references to either of the
>>>> first two models, the editor for the third model should be able to
>>>> create instances of the first to models into these containment
>>>> references. If you only have non-containment references, then you'd
>>>> need to use the same mechanism by which you got the third Ecore to
>>>> refer to the first two. I.e., you'd use Load Resource... in the
>>>> third model's editor to load resources with instances from the
>>>> first two models, and then in the cell editor for the properties of
>>>> the non-containment references those objects would be available to
>>>> be referenced by the third model. I'm pretty sure you're trying to
>>>> do one of these two things, but I could have imagined incorrectly....
>>>>>
>>>>> Best Regards,
>>>>>
>>>>> Romulo
>>>>>
>>>
>>>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Three metamodels in one ecore [message #429115 is a reply to message #429113] Wed, 08 April 2009 23:09 Go to previous messageGo to next message
Rômulo  rpini is currently offline Rômulo rpiniFriend
Messages: 36
Registered: July 2009
Member
ItŽs okay Ed, thanks again.

Let me try to be more clear...

I wanna create a metamodel that will reference Eclasses from other two
metamodels, right? So, I want in this ecore actually to have the entire
two metamodels.

Copy & paste doesnt seem to work.

I'd like to that, because on the emf editor, I want to be able to create a
complete tree, that will have essentially three subtrees: one for the
first metamodel, another for the second and finally one for the third, so
it'd be possible to create instances from the metamodels 'on the fly' and
having everything into one xmi.

Is it more clear now Ed?

Best Regards,

Romulo

Ed Merks wrote:

> Romulo,

> Comments below.

> Romulo Arpini wrote:
>> Hey Ed, thanks again for your reply.
>>
>> I tried here what you said but itŽs not like I wanted... I want to
>> have the entire models in the third ecore, i.e., in the emf editor, I
>> want to be able to create a complete editor for the 3 metamodels,
> I'm not sure I follow. A complete editor is a UI thing. A complete
> tree of instances is what the model would allow...
>> for example, initially I will be able to create 3 children, one that
>> is the first metamodel, one for the second and one for the third I
>> created, and then, this third will reference elements that will be
>> created on the other two.
> I don't follow that last phrase even a little bit...
>>
>> I think itŽs something like to have 3 packages on the ecore,
> I don't thing digressing into the model will help.
>> but I cannot copy & paste the metamodels to my ecore... is there any way?
> I'm completely lost now. Sorry...
>>
>> Best Regards,
>>
>> Romul
>>
>>> Romulo,
>>
>>> Change the EReference's containment property to be true. But take
>>> note: the GenFeature that wraps an EReference will have properties
>>> there were set based on defaults that made the most sense when first
>>> it was created. So the "Children" property will remain false and
>>> you'll either need to create a new fresh GenModel or you'll need to
>>> fiddle with the GenFeature's property to ensure it's used for showing
>>> children and to support creating children...
>>
>>
>>
>>> Romulo Arpini wrote:
>>>> Ed, thanks a lot for your help. Yeah, I want to do exactly like you
>>>> figured and loading resources worked, thanks!
>>>>
>>>> But now you said I m more interested in having containment
>>>> references to the two metamodels, i.e. to be able to create
>>>> instances from the two metamodels in the final plugin that you will
>>>> relate both!
>>>>
>>>> But how can I do that? I.e., have containment references?
>>>> Ed Merks wrote:
>>>>
>>>>> Romulo,
>>>>
>>>>> Comments below.
>>>>
>>>>> Romulo Arpini wrote:
>>>>>> Hey guys,
>>>>>>
>>>>>> Thanks for your help I managed to reference two other ecores in
>>>>>> one, but the final result was unexpected, because I want to do
>>>>>> something like this:
>>>>>>
>>>>>> I have 2 editors that I want to relate, so I will create a
>>>>>> metamodel that will has classes that will reference classes from
>>>>>> the other two metamodels. And when I run the application and open
>>>>>> the emf editor, I want to be able to
>>>>> to what?
>>>>>> instance elements from the two metamodel separetly.
>>>>>> Actually, I will have 2 xmi with information to populate the two
>>>>>> metamodels that my third metamodel will reference,
>>>>> Much like our mapping model can refer to two instances being mapped.
>>>>>> so all I want is to have a emf plugin that will be populated with
>>>>>> 2 xmi and then I will instance
>>>>> I guess you mean instantiate or is there a word missing?
>>>>>> elements from the third metamodel and then reference the elements
>>>>>> that I've just loaded the XMIs.
>>>>>>
>>>>>> Am I clear? My english isnt very good, so sorry if I am not clear.
>>>>> It's slightly not clear, but I'm culturally sensitive. :-P
>>>>>>
>>>>>> And thanks for your help.
>>>>> If your third model has containment references to either of the
>>>>> first two models, the editor for the third model should be able to
>>>>> create instances of the first to models into these containment
>>>>> references. If you only have non-containment references, then you'd
>>>>> need to use the same mechanism by which you got the third Ecore to
>>>>> refer to the first two. I.e., you'd use Load Resource... in the
>>>>> third model's editor to load resources with instances from the
>>>>> first two models, and then in the cell editor for the properties of
>>>>> the non-containment references those objects would be available to
>>>>> be referenced by the third model. I'm pretty sure you're trying to
>>>>> do one of these two things, but I could have imagined incorrectly....
>>>>>>
>>>>>> Best Regards,
>>>>>>
>>>>>> Romulo
>>>>>>
>>>>
>>>>
>>
>>
Re: Three metamodels in one ecore [message #429117 is a reply to message #429115] Wed, 08 April 2009 23:19 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Romulo,

Comments below.

Romulo Arpini wrote:
> ItŽs okay Ed, thanks again.
>
> Let me try to be more clear...
>
> I wanna create a metamodel that will reference Eclasses from other two
> metamodels, right?
Yes, you can definitely do that with a containment reference or a
non-containment reference.
> So, I want in this ecore actually to have the entire two metamodels.
Okay.
> Copy & paste doesnt seem to work.
How so?
> I'd like to that, because on the emf editor, I want to be able to
> create a complete tree, that will have essentially three subtrees: one
> for the first metamodel, another for the second and finally one for
> the third, so it'd be possible to create instances from the metamodels
> 'on the fly' and having everything into one xmi.
That's definitely possible and should "just work."
> Is it more clear now Ed?
Yes. I'd expect this to "just work."
>
> Best Regards,
>
> Romulo
>
> Ed Merks wrote:
>
>> Romulo,
>
>> Comments below.
>
>> Romulo Arpini wrote:
>>> Hey Ed, thanks again for your reply.
>>>
>>> I tried here what you said but itŽs not like I wanted... I want to
>>> have the entire models in the third ecore, i.e., in the emf editor,
>>> I want to be able to create a complete editor for the 3 metamodels,
>> I'm not sure I follow. A complete editor is a UI thing. A complete
>> tree of instances is what the model would allow...
>>> for example, initially I will be able to create 3 children, one that
>>> is the first metamodel, one for the second and one for the third I
>>> created, and then, this third will reference elements that will be
>>> created on the other two.
>> I don't follow that last phrase even a little bit...
>>>
>>> I think itŽs something like to have 3 packages on the ecore,
>> I don't thing digressing into the model will help.
>>> but I cannot copy & paste the metamodels to my ecore... is there any
>>> way?
>> I'm completely lost now. Sorry...
>>>
>>> Best Regards,
>>>
>>> Romul
>>>
>>>> Romulo,
>>>
>>>> Change the EReference's containment property to be true. But take
>>>> note: the GenFeature that wraps an EReference will have properties
>>>> there were set based on defaults that made the most sense when
>>>> first it was created. So the "Children" property will remain false
>>>> and you'll either need to create a new fresh GenModel or you'll
>>>> need to fiddle with the GenFeature's property to ensure it's used
>>>> for showing children and to support creating children...
>>>
>>>
>>>
>>>> Romulo Arpini wrote:
>>>>> Ed, thanks a lot for your help. Yeah, I want to do exactly like
>>>>> you figured and loading resources worked, thanks!
>>>>>
>>>>> But now you said I m more interested in having containment
>>>>> references to the two metamodels, i.e. to be able to create
>>>>> instances from the two metamodels in the final plugin that you
>>>>> will relate both!
>>>>>
>>>>> But how can I do that? I.e., have containment references?
>>>>> Ed Merks wrote:
>>>>>
>>>>>> Romulo,
>>>>>
>>>>>> Comments below.
>>>>>
>>>>>> Romulo Arpini wrote:
>>>>>>> Hey guys,
>>>>>>>
>>>>>>> Thanks for your help I managed to reference two other ecores in
>>>>>>> one, but the final result was unexpected, because I want to do
>>>>>>> something like this:
>>>>>>>
>>>>>>> I have 2 editors that I want to relate, so I will create a
>>>>>>> metamodel that will has classes that will reference classes from
>>>>>>> the other two metamodels. And when I run the application and
>>>>>>> open the emf editor, I want to be able to
>>>>>> to what?
>>>>>>> instance elements from the two metamodel separetly.
>>>>>>> Actually, I will have 2 xmi with information to populate the two
>>>>>>> metamodels that my third metamodel will reference,
>>>>>> Much like our mapping model can refer to two instances being mapped.
>>>>>>> so all I want is to have a emf plugin that will be populated
>>>>>>> with 2 xmi and then I will instance
>>>>>> I guess you mean instantiate or is there a word missing?
>>>>>>> elements from the third metamodel and then reference the
>>>>>>> elements that I've just loaded the XMIs.
>>>>>>>
>>>>>>> Am I clear? My english isnt very good, so sorry if I am not clear.
>>>>>> It's slightly not clear, but I'm culturally sensitive. :-P
>>>>>>>
>>>>>>> And thanks for your help.
>>>>>> If your third model has containment references to either of the
>>>>>> first two models, the editor for the third model should be able
>>>>>> to create instances of the first to models into these containment
>>>>>> references. If you only have non-containment references, then
>>>>>> you'd need to use the same mechanism by which you got the third
>>>>>> Ecore to refer to the first two. I.e., you'd use Load
>>>>>> Resource... in the third model's editor to load resources with
>>>>>> instances from the first two models, and then in the cell editor
>>>>>> for the properties of the non-containment references those
>>>>>> objects would be available to be referenced by the third model.
>>>>>> I'm pretty sure you're trying to do one of these two things, but
>>>>>> I could have imagined incorrectly....
>>>>>>>
>>>>>>> Best Regards,
>>>>>>>
>>>>>>> Romulo
>>>>>>>
>>>>>
>>>>>
>>>
>>>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Three metamodels in one ecore [message #429119 is a reply to message #429117] Thu, 09 April 2009 01:57 Go to previous messageGo to next message
Rômulo  rpini is currently offline Rômulo rpiniFriend
Messages: 36
Registered: July 2009
Member
THanks one more time, Ed.

Can you point me how to do that? Because in the end, how the final ecore
will be? 3 epackages each one associated with a metamodel? Copy the
package from ecore and paste to another really doesnt work here, but I
think I m doing something really stupid.

Sorry for my noobish question.

Best Regards,

Romulo
Re: Three metamodels in one ecore [message #429128 is a reply to message #429119] Thu, 09 April 2009 12:03 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Romulo,

Comments below.


Romulo Arpini wrote:
> THanks one more time, Ed.
>
> Can you point me how to do that? Because in the end, how the final
> ecore will be? 3 epackages each one associated with a metamodel? Copy
> the package from ecore and paste to another really doesnt work here,
> but I think I m doing something really stupid.
Which tool/technique are you using create your Ecore model? If it's
just the Sample Ecore Editor, or even the Ecore Tools graphical editor,
they both support a properties view in which you can set all the
different things in the Ecore model. Maybe you should buy the EMF
book... :-P
>
> Sorry for my noobish question.
>
> Best Regards,
>
> Romulo
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Overriding InitializeCopyCommand to increment ID
Next Topic:Ecore2Java ant task
Goto Forum:
  


Current Time: Fri Mar 29 02:13:33 GMT 2024

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

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

Back to the top