Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Gendoc/developerResources/PapyrusSiriusTables

The needs

Integrating content from Papyrus tables or Sirius tables into Gendoc result documents as MS Word tables or LibreOffice tables is necessary

as described in bug 515404


The principle

Gendoc tag already exists, so the solution proposed is to have a pivot generic Table object, offered by a dedicated Gendoc metamodel, in order to generate all kinds of table the same way. Dedicated acceleo bundles already existing for Papyrus and Sirius have a new service to transform their table to the Gendoc generic table . An overview of the Gendoc table very simple metamodel Gendoc table metamodel.png

User overview

Papyrus table generation (with manual configuration of the table columns in the template)

  • From a Papyrus model containing this table:

Papyrus table sample.png

  • Gendoc template fragment :

Gendoc fragment Papyrus table.png

  • Result in the word document produced by Gendoc :

Gendoc papyrus table result.png

Sirius table generation (with manual configuration of the table columns in the template)

  • From a Sirius model containing this table:

Sirius table sample.png

  • Gendoc template fragment :

Gendoc fragment Sirius table.png

  • Result in the word document produced by Gendoc :

Gendoc sirius table result.png

Sample of an automated table generation from a Papyrus table

From a Papyrus model containing several tables on a package the following gendoc fragment allows a full table generation.

Note : Automated mode also works with Sirius

  • Gendoc code :

Gendoc fragment Papyrus table automated.png

  • Gendoc result :
Gendoc papyrus automated table result.png

Back to the top