Thanks Remi. I guess that if I applied a stylesheet this way on a model, it apply on all diagrams of the model including
the diagrams of its sub models and so on?

|
|
|
Sébastien Gérard
Head of the LISE labs
CEA Research Director
Papyrus project Leader (www.eclipse.org/papyrus)

Commissariat à l’énergie atomique et aux énergies alternatives
Institut List
|
CEA Saclay Nano-INNOV
|
Bât. 861-PC142
F-91191 Gif-sur-Yvette Cedex
T. +33 1
69 08 58 24
M.
+33 6
88 20 00 47
sebastien.gerard@xxxxxx
www-list.cea.fr
|
|
|
|

|
|
De : mdt-papyrus.dev-bounces@xxxxxxxxxxx [mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx]
De la part de Remi Schnekenburger
Envoyé : vendredi 25 août 2017 14:47
À : Papyrus Project list <mdt-papyrus.dev@xxxxxxxxxxx>
Objet : Re: [mdt-papyrus.dev] Papyrus Stylesheet on models
Hi Sebastien,
There is a bug in the documentation. The application of a stylesheet for a given model is done by selecting a diagram, not a model.
Here is what should be documentation (red text should be changed)
Diagram Stylesheets
You can define a particular style for a diagram.
-
Select a diagram
-
Go to the Style tab of the properties view
-
Add a new "Diagram style sheet". There isn't currently any style sheet available from the diagram, so you need to create a new "Stylesheet reference".
-

-
Browse your workspace to find your css file, and press OK. Your stylesheet is now associated to your diagram.
Model StyleSheet
Similarily to "Diagram Stylesheet" you can define a particular style for a Model.
-
Select a diagram
-
Go to the Style tab of the properties view
-
Add a new "Model style sheet"
-
Browse your workspace to find your css file, and press OK. Your stylesheet is now associated to your Model.
If you select the diagram background for example, you will be able to apply a stylesheet to the model (i.e. to all diagrams of this model). This is a convenient shortcut to associate
a style to the model.
In general, elements from model explorer do not propose graphical properties. It may however be logical to associate a style to the model from the model itself (even if I am not sure
what should be the case for submodels, I did not think deeply to that case)
2017-08-25 14:29 GMT+02:00 GERARD Sebastien <Sebastien.GERARD@xxxxxx>:
Dear all,
The Papyrus doc say that one can apply a stylesheet on a model by the style tab of the property view when a model is selected. A priori, this tab is not available
when a model is selected into the model explorer. Is it a bug?
However, it is possible to apply a style on model selecting a graphical view. It seems to be an error, ins’t?
Thanks.

|
|
|
Sébastien Gérard
Head of the LISE labs
CEA Research Director
Papyrus project Leader (www.eclipse.org/papyrus)

Commissariat à l’énergie atomique et aux énergies alternatives
Institut List
|
CEA Saclay Nano-INNOV
|
Bât. 861-PC142
F-91191 Gif-sur-Yvette Cedex
T. +33 1
69 08 58 24
M.
+33 6
88 20 00 47
sebastien.gerard@xxxxxx
www-list.cea.fr
|
|
|
|

|
|
_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev
--
Registered Office: 7 rue de la Croix Martre, 91120 Palaiseau, France
Commercial Register 824 977 516 R.C.S. EVRY
|