Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359703 - Delete does not delete Elements with children property false on containment reference
Summary: Delete does not delete Elements with children property false on containment r...
Status: CLOSED FIXED
Alias: None
Product: ECP
Classification: Modeling
Component: Common (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: 0.8.9   Edit
Assignee: Maximilian Koegel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-03 08:56 EDT by Maximilian Koegel CLA
Modified: 2012-01-24 13:26 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maximilian Koegel CLA 2011-10-03 08:56:24 EDT
If the containment reference holding an element has the property children in the genmodel set to false, it does not get deleted.
Comment 1 Maximilian Koegel CLA 2011-10-03 08:57:13 EDT
Fixed by using EcoreUtil.delete() instead of DeleteCommand
Comment 2 Maximilian Koegel CLA 2011-10-03 09:02:40 EDT
fixed in maintenance branch only, will be ported on next forward port.