Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332563 - Generate and use public constant for Injector key
Summary: Generate and use public constant for Injector key
Status: CLOSED WONTFIX
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.1   Edit
Hardware: Macintosh Mac OS X
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-14 14:06 EST by Karsten Thoms CLA
Modified: 2010-12-27 17:29 EST (History)
1 user (show)

See Also:


Attachments

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