| Summary: | [Composite Structure Diagram] Delete Port from the model explorer fails when the Port appears in diagram | ||
|---|---|---|---|
| Product: | [Modeling] Papyrus | Reporter: | Yann Tanguy <yann.tanguy> |
| Component: | Core | Assignee: | Yann Tanguy <yann.tanguy> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | abderraouf.benyahia |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Yann Tanguy
The Port is deleted from the model but its view is not removed from diagram. This results from the diagram trying to recreate the EditPart for the Port view while the Port no more exists. The view is not remove during Port deletion because the OrphanViewPolicy is not installed on Port (and more generally affixed child owners) in the Composite Structure Diagram. Currently this EditPart is installed on the Diagram, and every compartment. It should be added on all EncapsulatedClassifiers supported in the diagram. Done in r2540. RemoveOrphanViewPolicy installed on Composite elements, and declaration of the Name EditPart also declared as Not orphan nodes in the RemoveOrphanViewPolicy. RemoveOrphanViewPolicy modified, replacing tests on Visual IDs by tests on View nature. BasicCompartment and DecorationNode views are always considered as non orphan nodes. (in r2541) *** Bug 317609 has been marked as a duplicate of this bug. *** |