Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Extending a metamodel
Extending a metamodel [message #1691745] Thu, 09 April 2015 12:30 Go to next message
Arunkumar Ramaswamy is currently offline Arunkumar RamaswamyFriend
Messages: 57
Registered: April 2014
Member
I have two metamodels Amodel and Bmodel as shown in figure
index.php/fa/21491/0/
index.php/fa/21492/0/

Bmodel extends a class(Baseclass) in Amodel

My end result should be:
1) I should be able to create a model.Amodel with instances of all classes in Amodel and Bmodel metamodel.
2) I should be able to create a model.Bmodel with only instances in Bmodel metamodel.

I proceeded as followed
1) Created ecore modeling project for Amodel
2> Created ecore modeling project for Bmodel and add Amodel in project dependence and extended in Bmodel

Now I have Amodel.gen and Bmodel.gen in both projects. My question is where to generate .edit and .editor plugins. I am getting a lot of unresolved imports when i generate in both projects or either one of them.

Any help much appreciated.
Any other ideas for getting the same end result are also welcomed.

Thanks
  • Attachment: Amodel.jpg
    (Size: 41.60KB, Downloaded 152 times)
  • Attachment: Bmodel.jpg
    (Size: 31.89KB, Downloaded 164 times)
Re: Extending a metamodel [message #1691779 is a reply to message #1691745] Thu, 09 April 2015 15:14 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30554
Registered: July 2009
Senior Member
This sounds like a pretty standard arrangement. I'd expect you'd be
able to generate all the projects, and that the MANIFEST.MFs would have
dependencies where needed to resolve the imports. Do the unresolved
imports exist and just the dependency is missing?

On 09/04/2015 2:30 PM, Arunkumar Ramaswamy wrote:
> I have two metamodels Amodel and Bmodel as shown in figure
>
>
>
> Bmodel extends a class(Baseclass) in Amodel
>
> My end result should be:
> 1) I should be able to create a model.Amodel with instances of all classes in Amodel and Bmodel metamodel.
> 2) I should be able to create a model.Bmodel with only instances in Bmodel metamodel.
>
> I proceeded as followed
> 1) Created ecore modeling project for Amodel
> 2> Created ecore modeling project for Bmodel and add Amodel in project dependence and extended in Bmodel
>
> Now I have Amodel.gen and Bmodel.gen in both projects. My question is where to generate .edit and .editor plugins. I am getting a lot of unresolved imports when i generate in both projects or either one of them.
>
> Any help much appreciated.
> Any other ideas for getting the same end result are also welcomed.
>
> Thanks
Previous Topic:[EMF] ResourceSetImpl.getResource does not behave in the same way calling it twice
Next Topic:Serialisation of EMF-Model to XML file takes several hours
Goto Forum:
  


Current Time: Tue Oct 22 13:46:07 GMT 2019

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

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

Back to the top