DevBoost / JaMoPP

JaMoPP can parse Java source and byte code into EMF-based models and vice versa. It preserves source formatting and can be used for code analysis and refactoring.
17 stars 18 forks source link

Documentation for getting started #37

Open Elothis opened 5 years ago

Elothis commented 5 years ago

Hello everyone,

I would like to start using JaMoPP to generate an Ecore Model from existing Java-Code and eventually be able to write changes done to that model back into the Java source code.

The website seems to be down for me, so I dont know how to get any information/tutorials on how to start doing that. I currently have downloaded JaMoPP 1.4 via the Eclipse Market Place, restarted Eclipse but do not know what to do now at all - I do not even see anything having changed in my Eclipse, cannot find any new context menu entries etc., so I dont have any idea on how to start getting towards my goal of extracting a model from a Java Project to then propagate changes back to the code made to that model.

Could anyone help me out and provide me with some basic documentation/How-To's/Beginner tutorials of some sort?

Thank you very much.

jjohannes commented 5 years ago

Unfortunately we had to take down the old website for several reasons. But it did not include much documentation/information anyway (unfortunately).

I plan to update the README in this repository with all available documents about JaMoPP to preserve the little documentation we have. The website URL will then link to the README.

Regarding your concrete issue: Once you have installed JaMoPP, you should be able to open a Java file with the EMF model editor. The model is then created in memory and you can explore it in the editor. If you save the file from the editor as an XMI file, you should have an XMI representation of the Java class.

If you want to use JaMoPP programmatically to load and transform Java code, you can use and adjust the JaMoPPC.java code.