Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumssame node definitions for subclass
https://www.eclipse.org/forums/index.php/mv/msg/75220/234893/#msg_234893
Originally posted by: aurelien.pupier.esial.net
Hi,
I want to define an unique topnode in gmfmap for multiple class.
More precisely.
I have the inheritance:
A1 extends B
A2 extends B
I want to graphically represent A1 and A2 nearly the same and don't want to duplicate the top node.
What I don't want :
Mapping
+Top Node Reference <xxx:A1/nodeType>
+ [A great definition]
+Top Node Reference <xxx:A2/nodeType>
+ [The same great definition]
because code will be duplicate and as I want to do that for A1, A2, A3, ....
So I want to define a top node reference for the superclass :
Mapping
+Top Node Reference <xxx:B/nodeType>
+ [A great definition]
And To have with the palette to choose the type I want (A1, A2), How can I do that?
Is there a way to share definition node?
Thanks by advance for any hints.
If not understandable please tell me.]]>2009-06-30T11:55:03-00:00Re: same node definitions for subclass
https://www.eclipse.org/forums/index.php/mv/msg/75220/234952/#msg_234952
> Is there a way to share definition node?
No, it's not possible. You have to create two TopNodeReferences with corresponding
NodeMappings (the only difference will be DomainMetaElement: A1/A2)
-----------------
Alex Shatalin]]>Alexander Shatalin2009-07-01T11:09:49-00:00Re: same node definitions for subclass
https://www.eclipse.org/forums/index.php/mv/msg/75220/235061/#msg_235061
Originally posted by: aurelien.pupier.esial.net
Alex Shatalin a écrit :
> Hello Aurelien,
>
>> Is there a way to share definition node?
> No, it's not possible. You have to create two TopNodeReferences with
> corresponding NodeMappings (the only difference will be
> DomainMetaElement: A1/A2)
>
> -----------------
> Alex Shatalin
>
>
Maybe I had to wait for that : https://bugs.eclipse.org/bugs/show_bug.cgi?id=192945]]>2009-07-02T08:01:18-00:00Re: same node definitions for subclass
https://www.eclipse.org/forums/index.php/mv/msg/75220/235078/#msg_235078
I doubt it is helpful - as I mentioned NodeMappings in your situation will
hold different DomainMetaElement references...
BTW, it's not so hard to copy-paste corresponding model elements in EMF tree
editor..
-----------------
Alex Shatalin]]>Alexander Shatalin2009-07-02T11:13:25-00:00Re: same node definitions for subclass
https://www.eclipse.org/forums/index.php/mv/msg/75220/235092/#msg_235092
Originally posted by: aurelien.pupier.esial.net
Alex Shatalin a écrit :
> Hello Aurelien,
>
> I doubt it is helpful - as I mentioned NodeMappings in your situation
> will hold different DomainMetaElement references...
> BTW, it's not so hard to copy-paste corresponding model elements in EMF
> tree editor..
>
> -----------------
> Alex Shatalin
>
>
No it's not difficult but it will be more painful to maintain.]]>2009-07-02T11:19:06-00:00