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

Bug 332563

Summary: Generate and use public constant for Injector key
Product: [Modeling] TMF Reporter: Karsten Thoms <karsten.thoms>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: sven.efftinge
Version: 1.0.1   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Karsten Thoms CLA 2010-12-14 14:06:29 EST
In the generated Activator the Injector is stored with a generated string key. Sometimes it is required to retrieve the Injector from the Activator and then it is necessary to look up that string. It would be more convenient if the key is available as a public constant, defined e.g. in the Activator.
Comment 1 Sven Efftinge CLA 2010-12-15 03:39:08 EST
The injector shouldn't be accessed directly. Could you elaborate on the use cases you have.
It's in the end no big deal to do this, but it could encourage people to access the injector more often then necessary because it is more convenient. So I would like to close it as won't fix unless I missed a common use case to obtain the injector.
Comment 2 Sven Efftinge CLA 2010-12-27 17:29:09 EST
see comment #2