[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: A shortcut behaving as a node extension

Hi Fabrice,

When a child is added to N2, the underlying element for the child is added to the shared underlying parent element. Furthermore, a notational node is added to N2. The corresponding notational node will be added to N1 by canonical update if the diagram for the N1 is synchronized. Note that even if the diagram is synchronized, you should be able to switch it off by adding a canonical style to N1 and forcing it not to be canonical using CanonicalStyle_Canonical feature.

Best regards,
Boris


Wailly wrote:
Dear all,

I need a specific behavior at the GMF level but I don't know how to get it:

Say you create two graphs G1 and G2 with a GMF Editor built from the same model.
In G1, you have a node N1 with some children.
In G2 you have a node N2 that you would like to be a reference to N1. So far, it is exactly as the GMF Shortcut functionality. However, adding a child to N2, I would like N1 to remain unchanged but the modification being held by N2 only.
So that N2 = (N1 + modifications).


To summarize, I would like a shortcut that behaves as a node overload instead as a pointer to the node.

Can you please advise me on how to get this?

Thank you,

Fabrice