[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] same node definitions for subclass
|
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.