[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Update the properties of a link when he is created

hi

I also have a problem with the class the following link:

@gmf.link(source="from",target="to")
abstract class Link extends PropertyHolderElement, TypedElement {
attr LinkNavigability navigability;
ref ConnectableElement[1] from;
ref ConnectableElement[1] to;
ref Component fromContext;
ref Component toContext;
}


I wish that I automatically are assigned the values of the 4 elements from, to, fromContext, toContext.


for example if I create a component A with a connectable element B and another element component C with a connectable element D.

If I create a link between A and C I want to have in the properties links the following values:
from = b
to = c
fromContext = A
toContext = B


I adds a another source and target of the link?
Is there a way to solve this problem?

thank you very much

marco