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

Bug 319221

Summary: [Composite Structure Diagram] Delete InformationFlow when we delete the last InformationItem
Product: [Modeling] Papyrus Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: CoreAssignee: Ansgar Radermacher <ansgar.radermacher>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 0.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Bug detection by validation none

Description Vincent Lorenzo CLA 2010-07-08 03:25:34 EDT
When we delete the last InformationItem conveyed by an InformationFlow, this InformationFlow should be also deleted, 
because the multiplicity for the conveyed attribute is [1..*]
Comment 1 Ansgar Radermacher CLA 2013-04-11 04:29:59 EDT
 I guess, you deleted the InformationItem via the properties dialog (if not, please precise how - in any case, this is one way to do it). I think the proper solution would be to disallow deleting the last information flow in the properties dialog, i.e. the generated properties dialog should respect UML's multiplicity specification.
Comment 2 Ansgar Radermacher CLA 2013-04-11 04:55:10 EDT
There is an additional, more severe aspect of this error (this should be new error): Papyrus adds a visual link (solid line) in addition to the information flow. This line is not deletable (and does not even vanish when deleting the information flow). The bug in this case is that the line should never be there.
Comment 3 Ansgar Radermacher CLA 2013-04-11 10:01:46 EDT
Created attachment 229617 [details]
Bug detection by validation
Comment 4 Ansgar Radermacher CLA 2013-04-11 10:15:11 EDT
The "more severe" error above is described in bug 386011, this a general issue that is not specific to information flows.

I think, the current behavior it is acceptable: assuring that models are always valid would constrain the user: it is possible that a user wants to delete an item of the "conveyed" attribute before adding a new one.
Validation detects the problem, as shown in the attachment.