How to install ANTLR4 in Eclipse? (For titan plugin developers) [message #1722966] |
Wed, 10 February 2016 15:26 |
|
1. Use eclipse 4.4 or 4.5 (eclipse java sdk for plugin developers/rcp developers OR Eclipse IDE for Eclipse Committers)
2. Install XText 2.7.3 (and not higher) from http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/ .
3. Download antlr 4.3 from here: http://www.antlr.org/download/antlr-4.3-complete.jar
4. Install ANTLR4 Runtime and Apache POI 4.3.0 according to the Designer install guide ( from http://download.eclipse.org/tools/orbit/downloads/drops/R20150821153341/repository/ plugin update site)
5. Install ANTLR4IDE:
-Open Eclipse Luna (4.4)
-Go to: Help > Eclipse Marketplace...
-Search for antlr
-Choose ANTLR 4 IDE and click Install
-Restart Eclipse
6. Configure antlr4ide after installation.
The configuration dialog can be found on the Windows/Preferences/ ANTLR 4 / Tool path.
There is a category ANTLR Tool. Set "Tool is activated" and set the just installed antlr-4.3-complete.jar as distribution (see the picture ANTLR4.3.PNG).
There in the "Options" category the "Directory" path has to be set to "./src/". This will configure the antlr compiler to generate the Java output in the exact same folder where the ANTLR source files are located. This is needed to have a good package structure.
In the "Options" category it is also useful to:
Unset the option to generate a parse tree listener
Unset the option to generate parse tree visitors o Set the option the delete generated files, when clean build is triggered o Set the option to mark generated files as derived
Note: If you are use titanium you need more prerequisites described in the Eclipse_installationguide (for plgin users).
Br Jeno Balasko
-
Attachment: ANTLR4.3.PNG
(Size: 74.71KB, Downloaded 635 times)
|
|
|
|
Powered by
FUDForum. Page generated in 0.95264 seconds