Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsCreating connector
https://www.eclipse.org/forums/index.php/mv/msg/175702/559816/#msg_559816
I need to create a Connector between two ports, I listened to the notification on the model when I create a Connector by hand and I discovered that the Connector is owned by the Class and not by the Port and that no notification is fired from Port, so I don't know if this code is right:
]]>123star 2010-09-19T10:30:40-00:00Re: Creating connector
https://www.eclipse.org/forums/index.php/mv/msg/175702/559822/#msg_559822
StructuredClassifier#createOwnedConnector(String) would do that for you:
Re: linking connector end with the port - what you are doing should work, but in the end, adding to the ends collection will result on setRole(port) on the connection end. IOW: