Bug 500077 - EditingDomainServices fails to retrieve the adapter factory for some elements
Summary: EditingDomainServices fails to retrieve the adapter factory for some elements
Status: CLOSED FIXED
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.0.1   Edit
Assignee: Project inbox CLA
QA Contact: Julien Dupont CLA
URL:
Whiteboard:
Keywords: triaged
Depends on: 495129
Blocks:
  Show dependency tree
 
Reported: 2016-08-22 11:05 EDT by Pierre-Charles David CLA
Modified: 2016-11-04 10:15 EDT (History)
4 users (show)

See Also:


Attachments

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