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

Bug 358237

Summary: Save failed
Product: [Modeling] Ecoretools Reporter: Nicolas Bros <nicolas.bros>
Component: GeneralAssignee: Project Inbox <ecore-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cedric.brun
Version: 1.0   
Target Milestone: 2.0.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Nicolas Bros CLA 2011-09-20 08:47:01 EDT
When I tried to save, I got a "save failed" message an nothing was saved, resulting in lost work. See the attached stacktrace.
Comment 1 Nicolas Bros CLA 2011-09-20 08:50:12 EDT
When I tried to reopen the editor after the failed save, it failed too:

Unable to create editor ID org.eclipse.emf.ecoretools.diagram.part.EcoreDiagramEditorID: An exception was thrown during initialization

Stacktrace:
java.lang.ClassCastException
(yes, this is all I see in the error log)
Comment 2 Nicolas Bros CLA 2011-09-20 08:56:24 EDT
In fact, the EcoreTools editor also broke opening of my model file. When I try to open my model.ecore, I now also get:
Unable to create editor ID org.eclipse.emf.ecore.presentation.EcoreEditorID: An unexpected exception was thrown.
Stacktrace:
java.lang.ClassCastException


After restarting Eclipse, the ecore file opens again in the ecore editor. So I suspect the EcoreTools editor must have messed with runtime information, such as the Ecore metamodel in the EPackage registry.
Comment 3 Cedric Brun CLA 2014-01-06 08:43:12 EST
I can't reproduce that using EcoreTools 2.0, it should be pretty robust in this regard now that it is based on Sirius.