ObeoNetwork / M2Doc

The M2Doc technology enables the generation of Office Open XML documents from models.
http://obeonetwork.github.io/M2Doc/
Eclipse Public License 1.0
36 stars 22 forks source link

How to install ? #160

Closed AlawnWong closed 7 years ago

AlawnWong commented 7 years ago

How to install ?

ylussaud commented 7 years ago

If you want to use it inside Eclipse you can use the last release p2 repository:

https://s3-eu-west-1.amazonaws.com/obeo-m2doc-releases/M2Doc_0.9.9/repository

you can add the repository in the Eclipse Help/Install new software/... menu. I don't know the GUI status for launching a generation but If you plan yo use it programmatically you can use the source repository and have a look at https://github.com/ObeoNetwork/M2Doc/blob/master/plugins/org.obeonetwork.m2doc/src/org/obeonetwork/m2doc/util/M2DocUtils.java

M2DocUtils.parse(URI templateURI, IQueryEnvironment queryEnvironment) M2DocUtils.validate(DocumentTemplate documentTemplate, IReadOnlyQueryEnvironment queryEnvironment, Map<String, Set> types) M2DocUtils.generate(DocumentTemplate documentTemplate, IReadOnlyQueryEnvironment queryEnvironment, Map<String, Object> variables, URI destination)

The validation is optional but this recommended when writing M2Doc templates.

For an example on how to use the code see https://github.com/ObeoNetwork/M2Doc/blob/master/tests/org.obeonetwork.m2doc.tests/src/org/obeonetwork/m2doc/test/AbstractTemplatesTestSuite.java

Hope it will help you.

cbrun commented 7 years ago

You might want to checkout the User guide to discover the UIs

https://github.com/ObeoNetwork/M2Doc/blob/master/plugins/org.obeonetwork.m2doc.doc/doc/user/M2Doc%20User%20Guide.textile

ohaegi commented 7 years ago

Sorry AlawnWong ,I made a mistake, I delete your last question.

I put it again in this comment :

3Q very much!!! I am finding the way of M2DOC. I will Install the 0.9.9 and try the User Guide. Other question: Q1: I import all source code. Why has the problem "An internal error occurred during: "Loading models". The modeling project "org.obeonetwork.m2doc.ecore.wtable.test" is invalid: Problem during loading models: Error while loading representations file" ? I use eclipse neon. Q2: why there is no the "org.obeonetwork.dsl.database"?