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

Bug 367101

Summary: Log a warning if an EObject is deleted without a command being started
Product: [Modeling] EMFStore Reporter: Max Hohenegger <eclipse>
Component: ServerCoreAssignee: Project Inbox <emfstore.servercore-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: emueller, mkoegel
Version: unspecified   
Target Milestone: backlog   
Hardware: All   
OS: All   
Whiteboard:

Description Max Hohenegger CLA 2011-12-19 11:56:04 EST
EcoreUtil.delete() alone appears to be sufficient to persistently delete an EObject; however, it only removes the objects references, which means it can be re-attached. Hence, EcoreUtil.delete() can be used to temporarily detach an EObject, but also to persistently delete it. Both inside a command.
 
To make it more clear how to use the framework, log a warning whenever EcoreUtil.delete() is called without a command being started.

See: https://bugs.eclipse.org/bugs/show_bug.cgi?id=365530
Comment 1 Edgar Mueller CLA 2016-03-02 05:13:43 EST

*** This bug has been marked as a duplicate of bug 464274 ***