Skip to content

IDE Setup

Doc SoC edited this page Mar 27, 2020 · 13 revisions

Eclipse

Since this is an Xtext project you need an Eclipse IDE to work on it. Download the Eclipse IDE for Java and DSL Developers from here. The latest version of Eclipse we worked with is 2019-12.

Additional requirements

Before you can import the project, you have to install the Tycho Configurator m2e connector:

  1. Start your Eclipse
  2. Open the maven preferences page: Window -> Preferences -> Maven
  3. Under Discovery press the button Open Catalog and search for Tycho. You should find the Tycho Configurator:
  1. Select the Configurator and press Finish.
  2. An eclipse installation wizard will appear. Go through the wizard to finish the installation and restart eclipse.

Importing the project

After having installed the Tycho Configurator you can import the project with as an existing maven project:

Choose the directory in which you cloned the project as root directory and select all projects:

Build in Eclipse

The imported project will have a lot of build errors. This is because some Xtext sources have to be generated first. An Eclipse launch configuration called 'GenerateContextMappingDSLInfrastructure' is delivered with the project:

Run this launch configuration (yes, even if there are build errors). As soon this has completed, please execute a clean build with Project -> Clean... -> Clean all projects.

That's it. You should have a clean workspace without build errors now.

Clone this wiki locally