Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to extend an ecore meta model
How to extend an ecore meta model [message #1677541] Sun, 15 March 2015 23:29 Go to next message
Arunkumar Ramaswamy is currently offline Arunkumar RamaswamyFriend
Messages: 57
Registered: April 2014
Member
Hi all,

Here is my usecase

I have ecore metamodel named sml (.sml as file name extension)
The metamodel may look like below
System<>----------->Component
This metamodel is a plugin and can be separatly installed.

My usecase is that another user should be able to extend this metamodel in a different plugin. For example, a user tried to inherit Component and create a metamodel (with same .sml as file extension) as below:
Component<>--------->Property

A user who installs first plugin must be able to create modelinstance1.ssml (with system and component instances) and if he installs second plugin also, he should be able to create modelinstance2.ssml (with system, component and property instances).

Please let me know how to create this second plugin.

Any help much appreciated.

Arun
Re: How to extend an ecore meta model [message #1677624 is a reply to message #1677541] Mon, 16 March 2015 00:13 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30452
Registered: July 2009
Senior Member
I think that's like the idea in this blog:

http://ed-merks.blogspot.ca/2008/01/creating-children-you-didnt-know.html

With that approach the editor for the base model will be able to create
instances from the second extending model.

On 16/03/2015 12:29 AM, Arunkumar Ramaswamy wrote:
> Hi all,
>
> Here is my usecase
>
> I have ecore metamodel named sml (.sml as file name extension)
> The metamodel may look like below
> System<>----------->Component
> This metamodel is a plugin and can be separatly installed.
>
> My usecase is that another user should be able to extend this
> metamodel in a different plugin. For example, a user tried to inherit
> Component and create a metamodel (with same .sml as file extension) as
> below:
> Component<>--------->Property
>
> A user who installs first plugin must be able to create
> modelinstance1.ssml (with system and component instances) and if he
> installs second plugin also, he should be able to create
> modelinstance2.ssml (with system, component and property instances).
>
> Please let me know how to create this second plugin.
>
> Any help much appreciated.
>
> Arun
Previous Topic:Correct usage of CDO Views
Next Topic:[Teneo] automatically creation of database
Goto Forum:
  


Current Time: Fri Sep 20 07:48:51 GMT 2019

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

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

Back to the top