Skip to main content



      Home
Home » Modeling » EMF » Extending a metamodel
Extending a metamodel [message #1691745] Thu, 09 April 2015 08:30 Go to next message
Eclipse UserFriend
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 264 times)
  • Attachment: Bmodel.jpg
    (Size: 31.89KB, Downloaded 286 times)
Re: Extending a metamodel [message #1691779 is a reply to message #1691745] Thu, 09 April 2015 11:14 Go to previous message
Eclipse UserFriend
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: Sun Aug 31 04:33:27 EDT 2025

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

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

Back to the top