
This project is an implementation of RDO modelling language in Eclipse, using xtext.
- Install Ubuntu Desktop or any other linux distribution
- Download Eclipse IDE for Java and DSL Developers
sudo apt-get install openjdk-8-jdk # for debian-based distributions
cd ~/Downloads
gunzip -c eclipse-dsl-luna-SR2-linux-gtk-x86_64.tar.gz | tar xvf -
cd eclipse
./eclipse- Git clone
rdo-xtextrepository
ssh-add ~/.ssh/github.openssh.private.key
git clone git@github.com:aurusov/rdo-xtext.gitFile>Import>General>Existing Projects into Workspace``>Select root directory>/home/USERNAME/git/rdo-xtext>Finish- Wait for the workspace to build and get tons of errors
ru.bmstu.rk9.rao/src/ru.bmstu.rk9.rao/Rao.xtext>Run As>Generate Xtext Artifacts>Proceed*ATTENTION* It is recommended to use the ANTLR 3...pressy
0 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Registering platform uri '/home/drobus/git/rdo-xtext'
637 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Adding generated EPackage 'org.eclipse.xtext.common.types.TypesPackage'
644 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning /home/drobus/git/rdo-xtext/ru.bmstu.rk9.rao/../ru.bmstu.rk9.rao/src-gen
652 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning /home/drobus/git/rdo-xtext/ru.bmstu.rk9.rao/../ru.bmstu.rk9.rao/model
652 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning /home/drobus/git/rdo-xtext/ru.bmstu.rk9.rao/../ru.bmstu.rk9.rao.ui/src-gen
653 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning /home/drobus/git/rdo-xtext/ru.bmstu.rk9.rao/../ru.bmstu.rk9.rao.tests/src-gen
5720 [main] INFO clipse.emf.mwe.utils.GenModelHelper - Registered GenModel 'http://www.bmstu.ru/rk9/rao/Rao' from 'platform:/resource/ru.bmstu.rk9.rao/model/generated/Rao.genmodel'
27489 [main] INFO text.generator.junit.Junit4Fragment - generating Junit4 Test support classes
27496 [main] INFO text.generator.junit.Junit4Fragment - generating Compare Framework infrastructure
27550 [main] INFO .emf.mwe2.runtime.workflow.Workflow - Done.
[!] If your output differs from the one above by a lot of errors mentioning
RULE_ANY_OTHER, you should run the generation process again and again until the bulid is succesfull. This is Xtext/Antlr bug caused by complex rules supporting unicode identifiers in grammar, sorry for the inconvenience
Run>Run Configurations...>Eclipse Application>New>Name=runtime-EclipseXtext>Location=${workspace_loc}/../runtime-EclipseXtext>Run- Ignore this if you use Java version 8 or later. Eclipse Platform may freeze during its launch. This happens due to the unsufficient permgen size available to Eclipse. To prevent that, add
-XX:MaxPermSize=256Mto VM arguments in Run Configuration. - And that's it.
Window>Open Perspective>Other...>RaoFile>New>Project...>Rao>Rao Project>Next>>Project name:>- set project name
- choose model template
Finish- Models examples