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

Bug 500077

Summary: EditingDomainServices fails to retrieve the adapter factory for some elements
Product: [Modeling] Sirius Reporter: Pierre-Charles David <pierre-charles.david>
Component: CoreAssignee: Project inbox <sirius.core-inbox>
Status: CLOSED FIXED QA Contact: Julien Dupont <julien.dupont>
Severity: normal    
Priority: P3 CC: cedric.brun, julien.dupont, laurent.redor, maxime.porhel
Version: unspecifiedKeywords: triaged
Target Milestone: 4.0.1   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 495129    
Bug Blocks:    

Description Pierre-Charles David CLA 2016-08-22 11:05:00 EDT
+++ This bug was initially created as a clone of Bug #495129 +++

The context is in EcoreTools + Sirius 4.0.0 .
The problem might not be that visible in other contexts, ecoretools is a bit special in this regard. 

In EcoreTools some model elements are resolved from the EcoreRegistry and might not come from the session's resourceSet : most notably datatypes from Ecore.ecore itself.

In such a case EditingDomainServices.getEditingDomain(EObject) fails to retrieve any editing domain on this object and as such most of the services will fail later one because of the lack of AdapterFactory for those objects.
Comment 1 Pierre-Charles David CLA 2016-08-22 11:05:31 EDT
Cloned to report the fix in Sirius 4.0.1.
Comment 2 Pierre-Charles David CLA 2016-08-23 04:59:25 EDT
Fixed by 70732e47a4ea7fd774852162ce8b921f2284a2d8.
Comment 3 Pierre-Charles David CLA 2016-11-04 10:15:19 EDT
Available in Sirius 4.0.1. See https://wiki.eclipse.org/Sirius/4.0.1.