| Summary: | [Composite Structure Diagram] A connector is added to wrong class, if it connects an inherited port | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Papyrus | Reporter: | Ansgar Radermacher <ansgar.radermacher> | ||||||
| Component: | Core | Assignee: | Ansgar Radermacher <ansgar.radermacher> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | ali.koudri, vincent.lorenzo, yann.tanguy | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Ansgar Radermacher
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. |