Community
Participate
Working Groups
Build Identifier: If you add a connector to a composite class and connect a port that has been added visually to the class but that is owned by a super-class, the connector is added to the super class, not the composite class. Reproducible: Always Steps to Reproduce: 1. Create a class and a port 2. Create a heir and drag the inherited port to the class. 3. Create a connection between the inherited port and an inner part
The error is not limited to inherited ports. A connector is also added to the wrong class, if owned ports are connected.
Created attachment 180608 [details] First fix A first patch which works after some testing. Modification: call deduceContainer with the parts with ports (if non null) instead of the ports.
Created attachment 180615 [details] Correction of earlier patch Correction of fix (copy&paste mistake: targetPartOrRole = target instead of ... = source)
*** Bug 326932 has been marked as a duplicate of this bug. ***
(r2951) The GraphNodeEditPolicy used by Port and Property have been modified in order to keep the source / target GraphicalEditPart as request parameters. During the creation the container of the new Connector is calculated by looking for a StructuredClassifier in graphical containers of the source / target. The container proposed by source and target should be the same. Let me know if this is ok for you (you can close the bug if its ok).
I close this task, don't hesitate to reopen in case current implementation does not match your expectations.