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

Bug 319275

Summary: [xtext.ecore] Provide MWE integration
Product: [Modeling] TMF Reporter: Sven Efftinge <sven.efftinge>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 Flags: sven.efftinge: helios+
Version: 1.0.0   
Target Milestone: SR1   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Patch adding a workflow component to set up the EcoreResourceServiceProvider stuff none

Description Sven Efftinge CLA 2010-07-08 10:21:09 EDT
In order to have the IResourceServiceProvider registered when executing a workflow without Equinox, we should provide a workflow component, which does the registration. Something like the following should be sufficient: 

Injector ecoreInjector = Guice.createInjector(new EcoreRuntimeModule());
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("ecore", ecoreInjector.getInstance(IResourceServiceProvider.class));
Comment 1 Sven Efftinge CLA 2010-07-09 09:55:51 EDT
Created attachment 173861 [details]
Patch adding a workflow component to set up the EcoreResourceServiceProvider stuff
Comment 2 Sven Efftinge CLA 2010-07-09 09:57:16 EDT
I couldn't run the included test (for some infrastructure problems ...). Could someone please apply, run the test and commit if it is ok (resp. fix any issues)?
Comment 3 Sven Efftinge CLA 2010-08-02 08:02:49 EDT
fixed in HEAD
Comment 4 Karsten Thoms CLA 2017-09-19 16:20:05 EDT
Closing bug which were set to RESOLVED before Eclipse Neon.0.