Decouple Xtext project from Eclipse Plugin (UI project) [message #1815161] |
Thu, 26 September 2019 08:07  |
Eclipse User |
|
|
|
Hi there
I am developing a DSL based on Xtext and I am wondering if it is somehow possible to decouple the language project from the Eclipse plugin.
The idea:
I have the DSL project (just the core Xtext project containing the grammar etc.) with the LSP (generic IDE; *.ide project) in one Git repository with its own Gradle build. I deploy it to a Maven repository as library to be used for standalone applications using the DSL and other IDE projects using the LSP. I further deploy this project to a P2 repository as an OSGi bundle.
I have a second, separate Git repository with the Eclipse plugin (the *.ui project) which gets the Xtext feature bundle from the P2 repository mentioned above. This project has of course to be build with Maven.
Anyone ever tried such a setup or knows that it can somehow work to decouple these two things (Xtext language vs. Eclipse plugin)?
I tried and I can deploy the Xtext project to my P2 and use it in the Eclipse plugin project as dependency, but finally you have the problem that some generated classes needed in the *.ui project (DslActivator, *DSLUiModule, etc.) are generated by the MWE2 workflow which is located in the Xtext project. I don't know if there is a way to generate just these UI-classes within the Eclipse plugin project. Thus, I see no way to decouple it like that... Am I right that there is no way or are there solutions for such a scenario?
Thanks in advance!
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 12.27112 seconds