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

Bug 328798

Summary: IResourceServiceProvider.Registry is accessed directly
Product: [Modeling] TMF Reporter: Ali AKAR <ali.akar82>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ali AKAR CLA 2010-10-27 04:31:27 EDT
Build Identifier: tmf-xtext-SDK-1.0.1

If you try to override the IResourceServiceProvider.Registry which is implemented by ResourceServiceProviderRegistryImpl by overridden the SharedModule , your instance will be called but not initialized by the extension and the content registry reader (ExtensionResourceServiceProviderRegistryReader). In both readers, the the singleton is accessed directly, where it should be injected instead.


Reproducible: Always
Comment 1 Sven Efftinge CLA 2012-11-19 08:34:54 EST
It's now done in the activator of org.eclispe.xtext, where no injector is available. Also replacing the registry implementation doesn't seem to be a good idea.