Hey Uffe,
thanks for the warm welcome and your support. However, I think you got me wrong. I know how to get the Connector from an Element. What I don't know is, how to get the classifier of a connector. In my case (UML Object Diagram), the Connector is a link, i.e., an instance of a UML Association from my UML class model. When accessing the connector (that represents some link), I want to access its classifier, i.e., its Association.
I made a little example of a
House and a
Room class, connected by a
rooms Association. There is an instance of
House called
myHouse (yielding
myHouse : House) and an instance of
Room called
myRoom (yielding
myRoom : Room). They are connected by an anonymous instance of
rooms yielding
:rooms.
My JScript-Code iterates all EA.Elements of type Object and finds
myHouse, gets all its EA.Connectors and finds its Connectors.
Question: How can I get the name (i.e.,
:rooms) of this Connector and its classifier (i.e.,
rooms). Regarding the name: it is
not set as the Name of the Connector. I use
Context Menu > Advanced > Instance Classifier... (Ctrl+L) on the connector and choose
rooms from the list of available classifiers. Subsequently,
:rooms appears in the diagram (BTW this didn't work with my old EA 12ish version where
:rooms would not show up in the diagram).


Regards
Martin