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

Bug 325013

Summary: [Element Edit Service] Add a relationship delete command when its source or target list becomes empty during a delete command
Product: [Modeling] Papyrus Reporter: Yann Tanguy <yann.tanguy>
Component: CoreAssignee: Yann Tanguy <yann.tanguy>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cletavernier
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 324966    

Description Yann Tanguy CLA 2010-09-10 17:07:13 EDT
Add a relationship delete command when its source or target list becomes empty during a delete command.

(remove the NamedElement from source / target of relationship, and customize the getDestroyReferenceCommand in dependency EditHelper to detect when source / target list becomes empty -> delete the relationship in this case)
Comment 1 Yann Tanguy CLA 2011-02-03 04:28:51 EST
In r3878 (0.8.0M4 Indigo):
- Added as NamedElement advice that acts on DirectedRelationship links.
Comment 2 Camille Letavernier CLA 2013-09-09 12:07:26 EDT
> - Added as NamedElement advice that acts on DirectedRelationship links.

I close this task