Community
Participate
Working Groups
The ConnectorEditHelper::getConfigureCommand(ConfigureRequest) method uses the UMLFactory static instance to create the binary connector's source and target ends. It is much better to use the Connector::createEnd() factory method, instead because (a) this simplifies the client code by implicitly adding the new end to the connector and (b) it ensures consistent creation of the correct UML implementation classes in Papyrus-RT (for the UML-RT implementation of the UML metamodel) The consequence for Papyrus-RT of the current approach in the edit-helper is that capsule inheritance scenarios of new connector creation will not work: the new connector's ends will not properly implement UML-RT semantics until the model is saved, closed, and opened again (which reconstitutes the connector ends with the correct implementation).
New Gerrit change created: https://git.eclipse.org/r/87351
Gerrit change https://git.eclipse.org/r/87351 was merged to [streams/2.0-maintenance]. Commit: http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=ca3803339074b0f22fd977747416f55af1e0edaa
New Gerrit change created: https://git.eclipse.org/r/87660
Gerrit change https://git.eclipse.org/r/87660 was merged to [master]. Commit: http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=3c3de71f9dfdbca3ef5a9324c7e2404b6e478671
(In reply to Eclipse Genie from comment #2) > Gerrit change https://git.eclipse.org/r/87351 was merged to > [streams/2.0-maintenance]. (In reply to Eclipse Genie from comment #4) > Gerrit change https://git.eclipse.org/r/87660 was merged to [master].