ObeoNetwork / Capella-Extensions

Collection of plugins adding features to Capella (http://polarsys.org/capella/)
Eclipse Public License 1.0
5 stars 10 forks source link

M2Doc for Capella should support the "Visible in documentation" field for diagrams #16

Closed ylussaud closed 3 years ago

ylussaud commented 6 years ago

This issue has been moved from ObeoNetwork/M2Doc#289

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please have a look to the support pages of our website : http://m2doc.org/support/

Current behavior

Currently all diagrams are exported during M2Doc generation

Expected behavior

In Capella, some diagrams can be done only to work on the model. They are not supposed to be exported for documentation. The field "Visible in documentation" could be used in order to identify such kind of diagrams by setting its value to false.

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Remove from documentation diagrams created only to work on the model

Environment


M2Doc version: X.Y.Z
Eclipse version: X.Y.Z
Platform version:   X.Y.Z

Others:

ylussaud commented 3 years ago

The visible in documentation is not a field but an annotation attached to the DRepresentationDescriptor. I added two services to check it presence from the DRepresentation that can be obtained using Sirius services: