Skip to main content



      Home
Home » Eclipse Projects » Sirius » Cascading Style Definitions
Cascading Style Definitions [message #1691864] Fri, 10 April 2015 04:34 Go to next message
Eclipse UserFriend
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.
Re: Cascading Style Definitions [message #1691870 is a reply to message #1691864] Fri, 10 April 2015 04:55 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Cascading Style Definitions [message #1691881 is a reply to message #1691870] Fri, 10 April 2015 05:43 Go to previous message
Eclipse UserFriend
Thank you very much, this works great!

I didn't think of searching for a second place to set the styles. This second way looks much more flexible.
Previous Topic:Drag and Container Drop Problem
Next Topic:How to handle Notes on diagrams
Goto Forum:
  


Current Time: Wed May 21 02:14:13 EDT 2025

Powered by FUDForum. Page generated in 0.04464 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top