Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Cascading Style Definitions
Cascading Style Definitions [message #1691864] Fri, 10 April 2015 08:34 Go to next message
Marcin Trycz is currently offline Marcin TryczFriend
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 Go to previous messageGo to next message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 502
Registered: May 2011
Senior Member
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
Need training or 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 09:43 Go to previous message
Marcin Trycz is currently offline Marcin TryczFriend
Messages: 12
Registered: August 2014
Junior Member
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.


I'm just a user.
Previous Topic:Drag and Container Drop Problem
Next Topic:How to handle Notes on diagrams
Goto Forum:
  


Current Time: Thu Jan 21 12:45:12 GMT 2021

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

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

Back to the top