Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 2.65 KB

README.md

File metadata and controls

25 lines (22 loc) · 2.65 KB

Xtext Editor for EAST-ADL with Artifacts Relevant for the MODELSWARD'23 Position Paper "Exploiting Meta-Model Structures in the Generation of Xtext Editors"

This repository contains an Xtext-based editor for a textual concrete syntax of the EAST-ADL meta-model, called EATXT. The editor is used to explore what a textual syntax for EAST-ADL can look like and contains artifacts and examples as demonstrations means for the MODELSWARD'23 Position Paper "Exploiting Meta-Model Structures in the Generation of Xtext Editors".

Setting Up the Development Workspace

  1. Download the Eclipse Modeling Tools, ideally using the Eclipse Installer.
  2. In the Eclipse installation, install the additional component "Xtext Complete SDK", either using "Update Software" or the Eclipse Marketplace.
  3. Clone this repository.
  4. Import releng/org.bumble.eatxt.target and load its target definition org.bumble.eatxt.target.target.
  5. Import all plugins in the folder plugins
    • If build paths of some of these plugins are not correct as folders like src-gen or xtend-gen are missing, just create corresponding empty folders in these plugins via right-click -> New -> Folder. Their contents are generated later.
    • The project might still contain build errors at this point since some of the artifacts are created in the next steps. Please ignore these errors for now.
  6. In the project org.bumble.eatxt, open the equally named source folder, right-click on Eatxt.xtext, and select "Run as" -> "Generate Xtext Artifacts"
  7. After the Xtext infrastructure is generated, start the Eclipse runtime instance by right-clicking on org.eclipse.eatxt.ide and selection "Run as" -> "Eclipse Application"

Setting Up the Runtime Workspace

  1. Import the project examples/org.bumble.eatxt.examples.
  2. Experiment with the file MODELSWARD23.eatxt.

Artifacts Relevant for the MODELSWARD'23 Position Paper "Exploiting Meta-Model Structures in the Generation of Xtext Editors"

As explained in the paper, there are the following relevant artifacts in the project org.bumble.eatxt:

  1. src/org.bumble.eatxt.templates/EatextTemplateFragment.xtend: Described in Section 4.1
  2. src/org.bumble.eatxt.contentassist/EatextContentAssistFragment.xtend: Described in Section 4.2
  3. src/org.bumble.eatxt.formatting2/EatxtFormatter2Fragment.xtend: Described in Section 4.3
  4. src/org.bumble.eatxt/Activator.java: Described in Section 4.4