How to run - lucamarasca/Thesis GitHub Wiki
Follow those steps for installing full version:
1. Download xText
Help -> Install new Software -> Add -> Download from: http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/
2. Download and import
- Download The project
- Copy the project into the work-space
- Import The xText project in eclipse: File -> Import -> General -> Existing Project into workspace.
3. Run
- right click the grammar file (org.xtext.BPMN_translator -> src -> org.xtext -> BPMN_translator.xtext) -> run as -> Generate xText artifact
- Wait for generation to finish
- Right Click the folder: org.xtext.BPMN_translator -> Run as Eclipse Application.
4. Get Started
- Create a new blank java project
- Create a new File with the extension ".translator"
- A window will pop up asking if you want to convert the project in an xtext project -> yes
5. Usage
- In the file ".translator" you can write any kind of BPMN xml.
- Everytime a change will occur a new file with the translation in code will be generated.
6. Optional
For better understand how the parse tree will be generated is suggested to use ANTLRWorks: https://www.antlr3.org/works/ . Copy all the grammar in the file /org.xtext.BPMN_translator/src-gen/org/xtext/parser/antlr/internal/DebugInternalBPMN_translator.g into ANTLRWorks and run it: a graphical parse tree will be generated.
Follow those steps for installing portable version:
- Download .jar file
- Create somewhere a file with .translator extension
- Run .jar file