Bug 136738 - DeleteElementCommand leaves cross-resource-contained objects
Summary: DeleteElementCommand leaves cross-resource-contained objects
Status: RESOLVED FIXED
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 1.0   Edit
Hardware: PC Linux
: P1 major
Target Milestone: ---   Edit
Assignee: Christian Damus CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2006-04-13 15:49 EDT by Christian Damus CLA
Modified: 2010-07-19 12:23 EDT (History)
1 user (show)

See Also:


Attachments
Fix for the bug (4.94 KB, patch)
2006-04-17 14:16 EDT, Christian Damus CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Damus CLA 2006-04-13 15:49:05 EDT
The DeleteElementCommand disconnects cross-resource-contained objects from their eContainers but, unfortunately, it does not remove them from the contents of their eResource()s.  This results in the object not really being destroyed, because it is still reachable from some resource.
Comment 1 Christian Damus CLA 2006-04-17 14:16:33 EDT
Created attachment 38702 [details]
Fix for the bug

Attached a fix for the bug and a JUnit to test it.
Comment 2 Linda Damus CLA 2006-04-17 15:42:27 EDT
Reviewed and committed the patch.

Activity:
[136738] gmf_head cdamus 060417 DeleteElementCommand leaves cross-resource-contained objects
Comment 3 Eclipse Webmaster CLA 2010-07-19 12:23:59 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime EMF was the original product and component for this bug