
This project is an implementation of RAO modelling language in Eclipse, using Xbase.
-
Install Ubuntu Desktop or any other linux distribution
-
Install Java 8
IMPORTANT Latest version of openjdk at the moment of writing this (openjdk-8-jdk 8u66) crushes when using
SWT_AWTbridge. Oracle jdk distributions should be used instead. For debian-based linux distributions:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installerCheck java version:
java -versionIf output is different than (except version numbers):
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)set it manually
sudo update-alternatives --config javacd ~/Downloads
gunzip -c eclipse-dsl-neon-R-linux-gtk-x86_64.tar.gz | tar xvf -
cd eclipse
./eclipse- Git clone
raoxrepository
ssh-add ~/.ssh/github.openssh.private.key
git clone git@github.com:aurusov/raox.gitFile>Import>General>Existing Projects into Workspace``>Select root directory>/home/USERNAME/git/raox>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/raox'
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/raox/ru.bmstu.rk9.rao/../ru.bmstu.rk9.rao/src-gen
652 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning /home/drobus/git/raox/ru.bmstu.rk9.rao/../ru.bmstu.rk9.rao/model
652 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning /home/drobus/git/raox/ru.bmstu.rk9.rao/../ru.bmstu.rk9.rao.ui/src-gen
653 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning /home/drobus/git/raox/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=raoxRun
Window>Open Perspective>Other...>RaoFile>New>Project...>Rao>Rao Project>Next>>Project name:>- set project name
- choose model template
Finish- Models examples