Search code examples
eclipsepluginsrcpxtexte4

Integration of Xtext DSL editors and e4-based RCP


I am working on RCP application for editing dsl files.

For now I managed to create two editors using Xtext 2.5 that works fine in Eclipse (validation, cross references, etc.). Also there is e4 based RCP application skeleton with custom navigation tree (files are loaded from remote server not from local workspace).

Now I have to integrate those both of them. Unfortunately I didn't find any up to date tutorials about this topic that works for my case. Here are links that I tried:

  1. This blog post describes integration for Eclipse 3.x
  2. This one about e4 but version of Xtext is less than 2.5
  3. Here is a lot of information about RCP but I didn't found anything about plugins integration with RCP.
  4. There is similar question but it is not clear for me how to use obtained editor or how to get resourceProvider instance.

Does anyone have a reference to the relevant tutorial or sample?


Solution

  • According to Eclipse bug 401309 and various comments in the Eclipse forums XText editors are not compatible with a pure e4 RCP because they rely on lots of code from the 3.x compatibility layer.

    You can still create an Eclipse 3.x style RCP, as described in your second reference.