Papyrus-Model2Doc is an EMF-based document generator for EMF models. To enhance the user experience compared to existing document generation frameworks, the proposed approach is fully model-based while separating the concerns of (1) how the source model is visited, and (2) what is the content of the generated document. Two EMF models are used to provide the description of these two concerns. A documentation-oriented metamodel allows the document-generator specifier to choose what to generate (titles, tables, lists, images for GMF Diagram, insertion of preexisting file...). The generation is done in two steps. The first one create a EMF Tree View of the structure of the final document and the second one, is the generation in the expected document format (currently this generator only target the LibreOffice format (odt file), but other output format can easily be developed). The presentation will focus on the framework description and illustrate with the usage of generator on the well-known EMF Library metamodel example.
As this framework is a subpart of Papyrus project, an extension for UML and an integration to Papyrus framework has been developed too, this work will be introduced at the end of the presentation.