Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mdt-papyrus.dev] Papyrus Stylesheet on models

Sebastien,

I am pretty sure that currently, only the diagrams in the parent model will have the style, and that the submodel units are not impacted by these parent model styles.

Cheers,
Rémi

2017-08-25 15:47 GMT+02:00 GERARD Sebastien <Sebastien.GERARD@xxxxxx>:

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

 

 

 

icone_youtube

       

 

 

De : mdt-papyrus.dev-bounces@eclipse.org [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.

  1. Select a diagram
  1. Go to the Style tab of the properties view
  1. 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". 
  1. Image supprimée par l'expéditeur. Import stylesheet in Papyrus
  1. 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.

  1. Select a diagram
  1. Go to the Style tab of the properties view
  1. Add a new "Model style sheet"
  1. 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)

 

Cheers,

Rémi

 

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

 

 

 

icone_youtube

       

 

 


_______________________________________________
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



 

--

Remi Schnekenburger

Senior Software Architect / General Manager

EclipseSource France

Email: rschnekenburger@eclipsesource.com
Web:
http://eclipsesource.com/paris 
Phone: +33 1 85 41 08 65

Hangouts: rschnekenburger@eclipsesource.com

EclipseSource France SAS

7 rue de la Croix Martre
91120 Palaiseau

General Manager: Remi Schnekenburger

Registered Office: 7 rue de la Croix Martre, 91120 Palaiseau, France

Commercial Register 824 977 516  R.C.S. EVRY


_______________________________________________
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



--
Remi Schnekenburger

Senior Software Architect / General Manager
EclipseSource France

Email: rschnekenburger@xxxxxxxxxxxxxxxxx
Web: http://eclipsesource.com/paris 
Phone: +33
1 85 41 08 65
Hangouts: rschnekenburger@xxxxxxxxxxxxxxxxx

EclipseSource France SAS
7 rue de la Croix Martre
91120 Palaiseau

General Manager: Remi Schnekenburger
Registered Office: 7 rue de la Croix Martre, 91120 Palaiseau, France
Commercial Register 824 977 516  R.C.S. EVRY

Back to the top