How to extend an ecore meta model [message #1677541] |
Sun, 15 March 2015 19:29  |
Eclipse User |
|
|
|
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] |
Sun, 15 March 2015 20:13  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03184 seconds