27-01-2012: Apparently the update site has not been working for the past few weeks because I removed too many files. The update site is now restored. The latest version of the plugin and the project files have been uploaded.
JLo still uses the older Java syntax. The zip file with the examples shows the syntax. Some of the example still use the dedicated parameter mechanism. These examples will be fully converted when the Scala syntax is used. The example in cityroadnoparam show how to connect subobjects with the dedicated parameter mechanism.
Examples: project.zip. This file contains the JLo class library and the examples. In addition, the java/ directory contains the Java source that is generated by the compiler. The bin/ directory contains the class files of the generated Java code. To use this project, choose "Import" in the File menu. Then choose "Existing Projects into Workspace". Then select the "Select archive file" option and select the project.zip archive file. Select the project "Test" for import. After that, Eclipse will run a full build of the prohect. Note that performing a full build takes a long time before you start to see the progress bar move. This is because of the initial clone of the entire model and the lack of support for lazy loading in Chameleon.
Note that the plugin is not yet stable, as not all possible Java constructs are correctly processed in the translation. Almost no type checking is done currently. Do not install this plugin in your main Eclipse application, but in a separate Eclipse installation! It is best to restart Eclipse after installing the plugin.
Our translator uses a lot of memory (it needs to load the entire Java API, and clones it during translation because lazy-loading is not supported yet). Therefore, you should set the heap size of the custom Eclipse install to 1500M.
Use the following eclipse update site to install the plugin: http://www.cs.kuleuven.be/~marko/update/
To create a JLo project, select create new project, and then choose Chameleon project. In the wizard, you can select JLo as the language. You can then add the files from the example project and refresh.
The plugin generates Java code if you save a file, and rebuilds everything if you clean the project. In the provided project, there is an ant file to compile the generated code, and some scripts to execute the code. The run_all script runs all the tests.
The Python 3 code is a self contained example: cityroad.py