Cascading Style Definitions [message #1691864] |
Fri, 10 April 2015 08:34 |
Marcin Trycz Messages: 12 Registered: August 2014 |
Junior Member |
|
|
Hello,
I'm not really certain I got this right, so I wanted to ask: is there a way to style your diagram elements in a "cascading" way, like CSS, so you can specify a base/default style, and then you specify just the overrides for different "Conditional Styles".
I have a model where a node can have a couple of different properties set in different ways, for example one determines the border color, and the other the fill color; the number of my Conditional Styles scales exponentially with the number of my properties. It becomes cumbersome to edit and adjust.
Is there a way to just specify "overrides" to a default style? If not, is such a feature planned?
Thanks in advance.
I'm just a user.
|
|
|
Re: Cascading Style Definitions [message #1691870 is a reply to message #1691864] |
Fri, 10 April 2015 08:55 |
|
Hello,
Yes you can override a default style. If you have too many combination
to use Conditional Styles (see
https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#conditional_styles)
then it should be easier to use Style Customization (see
https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#customization).
This allow you to modify an existing style (i.e. your default style) one
style property at a time, validating an expression based on your
properties. Sirius will process the combination.
Regards,
Steve
Le 10/04/2015 10:35, Marcin Trycz a écrit :
> Hello,
> I'm not really certain I got this right, so I wanted to ask: is there a
> way to style your diagram elements in a "cascading" way, like CSS, so
> you can specify a base/default style, and then you specify just the
> overrides for different "Conditional Styles".
> I have a model where a node can have a couple of different properties
> set in different ways, for example one determines the border color, and
> the other the fill color; the number of my Conditional Styles scales
> exponentially with the number of my properties. It becomes cumbersome to
> edit and adjust.
>
> Is there a way to just specify "overrides" to a default style? If not,
> is such a feature planned?
>
> Thanks in advance.
--
Steve Monnier - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.02063 seconds