same node definitions for subclass [message #234893] |
Tue, 30 June 2009 11:55 |
Eclipse User |
|
|
|
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.
|
|
|
|
|
|
Re: same node definitions for subclass [message #235092 is a reply to message #235078] |
Thu, 02 July 2009 11:19 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03767 seconds