Home » Modeling » EMF » How can I integrate ecore models?
| | | | | |
Re: How can I integrate ecore models? [message #1697334 is a reply to message #1697308] |
Wed, 03 June 2015 09:05 |
eunjung park Messages: 72 Registered: April 2015 |
Member |
|
|
Hi Ed,
Thank you for your explanation.
Sorry for incomplete my explanation.
Yes, M1, M2, M3 are model packages, and E1, E2,.. are elements.
"When you
create the GenModel, you should be sure to reuse the GenPackages from
the GenModels for M1 and M2 so you generate new projects containing only
things for M3 and reusing the things it needs from M1 and M2."
How can I inform the EMF that I reuse the GenPacages from existing Models?
Is there any way?
Another thing is that I would like to have one tool which includes all applications of the M1, M2, M3 packages. Is this possible?
Thank you so much.
Best Regards,
Eunjung Park
|
|
|
Re: How can I integrate ecore models? [message #1697337 is a reply to message #1697334] |
Wed, 03 June 2015 09:20 |
Ed Merks Messages: 33139 Registered: July 2009 |
Senior Member |
|
|
The wizard has a "Referenced generator models" section. Perhaps
http://ed-merks.blogspot.de/2008/01/creating-children-you-didnt-know.html is
of interest.
On 03/06/2015 11:05 AM, eunjung park wrote:
> Hi Ed,
>
> Thank you for your explanation.
> Sorry for incomplete my explanation.
> Yes, M1, M2, M3 are model packages, and E1, E2,.. are elements.
>
> "When you create the GenModel, you should be sure to reuse the
> GenPackages from the GenModels for M1 and M2 so you generate new
> projects containing only things for M3 and reusing the things it needs
> from M1 and M2."
> How can I inform the EMF that I reuse the GenPacages from existing
> Models?
> Is there any way?
>
> Another thing is that I would like to have one tool which includes all
> applications of the M1, M2, M3 packages. Is this possible?
>
> Thank you so much.
> Best Regards,
> Eunjung Park
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| | | | |
Re: How can I integrate ecore models? [message #1697550 is a reply to message #1697398] |
Thu, 04 June 2015 19:34 |
eunjung park Messages: 72 Registered: April 2015 |
Member |
|
|
Hi Ed,
I could find editable attributes.
Thank you so much.
By the way, how about integrating models by using independent project and project dependency?
For example, Model1 is developed by Project1(P1), M2 is developed by Project2(P2).
What I'm thinking is that I make a Integrated model M3 in P3(elements from M1, elements from M2, and newly defined elements) and P3 has dependency on P1 and P2.
I tried to do it and it was successful.
Finally, I want to have P1, P2, P3 in one application.
By the way, is this way reasonable?
Thanks again.
Best Regards,
Eunjung Park
|
|
|
Re: How can I integrate ecore models? [message #1697569 is a reply to message #1697550] |
Fri, 05 June 2015 05:20 |
Ed Merks Messages: 33139 Registered: July 2009 |
Senior Member |
|
|
Eunjung,
Comments below.
On 04/06/2015 9:35 PM, eunjung park wrote:
> Hi Ed,
>
> I could find editable attributes.
The editors are not so user friendly or obvious, and the Gen* things
have way too many properties, but such is life...
> Thank you so much.
> By the way, how about integrating models by using independent project
> and project dependency?
Yes that's a common scenario.
> For example, Model1 is developed by Project1(P1), M2 is developed by
> Project2(P2).
> What I'm thinking is that I make a Integrated model M3 in P3(elements
> from M1, elements from M2, and newly defined elements) and P3 has
> dependency on P1 and P2.
Yes, that's fine.
> I tried to do it and it was successful.
Of course.
> Finally, I want to have P1, P2, P3 in one application. By the way, is
> this way reasonable?
It's extremely common. In Oomph we use EMF a lot (of course), and have
more than a dozen models, many of them related in much this way, and
then used together in our Eclipse Installer application as well as in a
normal Eclipse IDE application.
> Thanks again.
>
> Best Regards,
> Eunjung Park
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| |
Re: How can I integrate ecore models? [message #1697650 is a reply to message #1697646] |
Fri, 05 June 2015 15:53 |
Ed Merks Messages: 33139 Registered: July 2009 |
Senior Member |
|
|
Eunjung,
If you have two Ecore Models in the same project (generally avoid that),
they should have a single GenModel or they'll ovewrite each other's
changes (especially for the .edit and .editor projects).
I think the warning you're talking about is that the plugin.xml doesn't
exist, but the model should always generated a plugin.xml, so I'm not
sure why that would go wrong. Is it empty? Does it generate an empty
one if you delete it?
On 05/06/2015 5:04 PM, eunjung park wrote:
> Hi,
>
> Thank you so much.
> I have another problem related to integrate models.
> I make a new ecore file from existing ecore file and the two ecore
> files are in the same model directory (i.e. same project).
> I used ecore tool which supports to make a ecore model visually.
> The problem is that when I tried to generate codes, there were
> warning, saying that "A plug-in manifest must contain at least one
> extension or extension point".
> Why does this problem occur and How can I solve this problem?
> Thank you every time.
> Regards,
> Eunjung Park
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| |
Goto Forum:
Current Time: Sat Apr 20 13:32:53 GMT 2024
Powered by FUDForum. Page generated in 0.04625 seconds
|