Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331328

Summary: [Element Edit Service] Destroy ConnectorEnd (Connector) when its role / partWithPort references becomes invalid
Product: [Modeling] Papyrus Reporter: Yann Tanguy <yann.tanguy>
Component: CoreAssignee: Yann Tanguy <yann.tanguy>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 324966    

Description Yann Tanguy CLA 2010-11-29 07:04:43 EST
Deleting a Port, Property or modifying a Property type can cause related Connector to become invalid.
In such a case the related connector should be deleted.
Comment 1 Yann Tanguy CLA 2010-11-29 07:13:54 EST
In r3380:

- ConnectorEnd deletion -> deletes Connector if it has less then 2 ends
- Property / Port deletion -> deletes ConnectorEnd referencing the deleted element as role or partWithPort
- Property type modification -> deleted ConnectorEnd referencing the modified Property as partWithPort (except if the role is still valid with the new type)