Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367101 - Log a warning if an EObject is deleted without a command being started
Summary: Log a warning if an EObject is deleted without a command being started
Status: CLOSED DUPLICATE of bug 464274
Alias: None
Product: EMFStore
Classification: Modeling
Component: ServerCore (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: backlog   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-19 11:56 EST by Max Hohenegger CLA
Modified: 2016-03-02 05:13 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***