| Summary: | Extension parser extension should not be declared in UI plugin | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Kai Kreuzer <kkreuzer> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | ed, kkreuzer, mike, sebastian.zarnekow, sven.efftinge |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Kai Kreuzer
The problem is that we need to use the guice Injector from the UI project in order to instantiate any components. Couldn't there be different injectors being used for core and UI plugin? The core injector should then be something similar to what is done in the standalone setup method. Do you have any other suggestion about how to get resources loaded if the UI plugin is not present? The ResourceFactory needs to be constructed by the injector from the UI bundle, because it needs components which live there (i.e. resources based container manager, etc.). If you don't want the UI bundle you could: 1) initialize programmatically using the standalone setup. 2) create a third bundle which contains the runtime extensions points only and maintains the injector. I'm closing this as won't fix as sufficient workarounds are available and the use case is rare. Please reopen if I've missed anything. see last comment This is a pain point for using Xtext in a Headless Eclipse Product - no plans to address this? We can probably "hack" something so that in the UI variant of our Product we use the Xtext UI plug-ins, and in the headless variant we use Standalone, or (... somehow...) custom Guice modules which initialize Xtext for use within Eclipse but without the UI parts. It would be nicer if Xtext offered this out of the box of course.. *** Bug 545238 has been marked as a duplicate of this bug. *** |