Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323467 - SharedStateModule should not have priority over LanguageSpecificModules
Summary: SharedStateModule should not have priority over LanguageSpecificModules
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-24 04:34 EDT by Moritz Eysholdt CLA
Modified: 2017-09-19 16:09 EDT (History)
2 users (show)

See Also:
jan: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Eysholdt CLA 2010-08-24 04:34:01 EDT
Currently, a lanugage's Activator gives priority of the SharedStateModules over a a language's RuntimeModule and UIModule. Therefore, a language can not override the bindings provided by the SharedStateModule.

injectors.put("foo", Guice.createInjector(Modules.override(Modules.override(getRuntimeModule("foo")).with(getUiModule("foo"))).with(getSharedStateModule())));

It would be better if the language specific modules would have priority over the SharedStateModule since this would allow for easier language-specific-customization of global services.
Comment 1 Sebastian Zarnekow CLA 2010-09-21 07:35:51 EDT
Done.
Comment 2 Karsten Thoms CLA 2017-09-19 16:09:14 EDT
Closing bug which were set to RESOLVED before Eclipse Neon.0.