This repository contains an Xtext-based editor for a textual concrete syntax of the EAST-ADL meta-model. The editor is used to explore what a textual syntax for EAST-ADL can look like and how the existing Eclipse infrastructure can be used to create a blended modelling environment for EAST-ADL which blends textual, graphical, and tree-based editors.
-
Download the code of projects
- Paste the link https://github.com/blended-modeling/eatxt into the browser and open the page.
- Log into a Github account which has been invited to the project.
- Open a terminal/shell and navigate to a folder where you would like to store the project locally.
- Type
git clone https://github.com/blended-modeling/eatxt
. The source code will now be cloned in the sub-foldereatxt
.
-
Open the code in Eclipse
- If you do not have Eclipse installed on your system, download an Eclipse RCP from https://eclipse.org/download and install it.
- Start Eclipse and select a suitable workspace. We recommend creating a new one.
- In the
File
menu, chooseImport...
- Select
Existing projects into workspace
- Select the folder into which you cloned the source code
-
Install Xtext
- In the
Help
menu, selectEclipse Marketplace
- Search "xtext" and then install it
- Once finished installing, restart the Eclipse IDE
- In the
-
Reload the target definition
- Find the project "org.bumble.eatxt.target"
- Double click on the file "org.bumble.eatxt.target.target" to open it in the target definition editor.
- In the right-top corner, click "Set as Active Target Platform"
This can take a couple of minutes. Afterwards, all compilation errors should have disappeared.
-
Generate the EAText editor
- Open the project
src/org.bumble.eatxt
folder in theorg.bumble.eatxt
project. - Right click on the
.mwe2
file and chooseRun As
->MWE2 workflow
from the context menu.
- Open the project
-
Use the EAText editor.
- Find the project
org.bumble.eatxt
. - Right click on it and select
Run As
->Eclipse Application
in the context menu. A new Eclipse RCP instance starts. - click
Create a project
orFile
->Project
and create a generic project. - Create a new file with the extension
.eatxt
in the new project. On double click, it opens in the EAText editor. - Alternatively, import the
org.bumble.eatxt.example
project into your runtime Eclipse RCP and use one of the files there.
- Find the project