Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Style customization for edge stroke colour
Style customization for edge stroke colour [message #1721263] Tue, 26 January 2016 08:32 Go to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 347
Registered: July 2009
Senior Member
Hi all,

it seems like the stroke colour of an edge style can not be changed
using a style customization. Is this a real limitation or am I
overseeing something?

TIA
Axel
Re: Style customization for edge stroke colour [message #1721266 is a reply to message #1721263] Tue, 26 January 2016 08:50 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 500
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Axel,

I have just checked on master, and a style customization affecting the
stroke color of an edge mapping seems to behave well.

Which version of Sirius do you use ?
Are you sure to have selected the good edge style ?
Is the precondition expression of your style customization ok ?
Did you activate the layer which defines the style customization ?


Le 26/01/2016 09:32, Axel Guckelsberger a écrit :
> Hi all,
>
> it seems like the stroke colour of an edge style can not be changed
> using a style customization. Is this a real limitation or am I
> overseeing something?
>
> TIA
> Axel

Regards,

--
Maxime - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Style customization for edge stroke colour [message #1721276 is a reply to message #1721266] Tue, 26 January 2016 09:29 Go to previous messageGo to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 347
Registered: July 2009
Senior Member
Hi Maxime,

thanks for your quick reply.

Maybe the problem is just that the stroke colour does not appear in the
auto complete suggestions for the "Property Name" input field. The only
proposals are lineStyle, sourceArrow, targetArrow,
sizeComputationExpression, routingStyle, foldingStyle and endsCentering.

So how do I know the correct property name?

I am using Sirius 3.1.2.

Best regards,
Axel

Am 26.01.2016 um 09:50 schrieb Maxime Porhel:
> Hi Axel,
>
> I have just checked on master, and a style customization affecting the
> stroke color of an edge mapping seems to behave well.
>
> Which version of Sirius do you use ?
> Are you sure to have selected the good edge style ?
> Is the precondition expression of your style customization ok ?
> Did you activate the layer which defines the style customization ?
>
>
> Le 26/01/2016 09:32, Axel Guckelsberger a écrit :
>> Hi all,
>>
>> it seems like the stroke colour of an edge style can not be changed
>> using a style customization. Is this a real limitation or am I
>> overseeing something?
>>
>> TIA
>> Axel
>
> Regards,
>
Re: Style customization for edge stroke colour [message #1721280 is a reply to message #1721276] Tue, 26 January 2016 10:08 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 371
Registered: December 2015
Senior Member
On 26-Jan-16 10:29, Axel Guckelsberger wrote:
> o how do I know the correct property name?
What I do is I change the style in a diagram manually and then look at
the saved xml file to find out how it's called.

Felix
Re: Style customization for edge stroke colour [message #1721282 is a reply to message #1721280] Tue, 26 January 2016 10:26 Go to previous messageGo to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 347
Registered: July 2009
Senior Member
Thanks, I am going to do this!

Axel

Am 26.01.2016 um 11:08 schrieb Felix Dorner:
> On 26-Jan-16 10:29, Axel Guckelsberger wrote:
>> o how do I know the correct property name?
> What I do is I change the style in a diagram manually and then look at
> the saved xml file to find out how it's called.
>
> Felix
Re: Style customization for edge stroke colour [message #1721283 is a reply to message #1721276] Tue, 26 January 2016 10:28 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 500
Registered: July 2009
Location: Nantes, France
Senior Member
Le 26/01/2016 10:29, Axel Guckelsberger a écrit :
> Hi Maxime,
>
> thanks for your quick reply.
>
> Maybe the problem is just that the stroke colour does not appear in the
> auto complete suggestions for the "Property Name" input field.

I made my sample with the completion.

The only
> proposals are lineStyle, sourceArrow, targetArrow,
> sizeComputationExpression, routingStyle, foldingStyle and endsCentering.

Ok, you have created a property customization "by Expression", which
allows you to define the new value of an attribute using the value
expression and your prefered query language.


When you have selected an edge style (Applied on), the completion in the
property name field gives you the compatible features for your current
selection and customization type:
. "by Expression": attributes
. "by Selection": references

>
> So how do I know the correct property name?

In your case, you need to create a property customization "by Selection":
. select your edge style in the "Applied on" property
. the "Property Name" completion will propose you: strokeColor,
(begin/center/end)LabelDescription, centered(Source/Target)Mappings
. use the Value Selection combo, which suggests the known values for
the property specified in the Property Name field, to select the color
you want.



>
> I am using Sirius 3.1.2.
>
> Best regards,
> Axel
>


Regards
--
Maxime - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
--
[1]
https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#customization


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Style customization for edge stroke colour [message #1721284 is a reply to message #1721283] Tue, 26 January 2016 10:31 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 500
Registered: July 2009
Location: Nantes, France
Senior Member
Hi,

You might find more information on diagram style customizations in [1]

Regards

--
Maxime - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
--
[1]
https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#customization


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Style customization for edge stroke colour [message #1721285 is a reply to message #1721283] Tue, 26 January 2016 10:45 Go to previous message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 347
Registered: July 2009
Senior Member
Great, thank you!

Am 26.01.2016 um 11:28 schrieb Maxime Porhel:
> Le 26/01/2016 10:29, Axel Guckelsberger a écrit :
>> Hi Maxime,
>>
>> thanks for your quick reply.
>>
>> Maybe the problem is just that the stroke colour does not appear in the
>> auto complete suggestions for the "Property Name" input field.
>
> I made my sample with the completion.
>
> The only
>> proposals are lineStyle, sourceArrow, targetArrow,
>> sizeComputationExpression, routingStyle, foldingStyle and endsCentering.
>
> Ok, you have created a property customization "by Expression", which
> allows you to define the new value of an attribute using the value
> expression and your prefered query language.
>
>
> When you have selected an edge style (Applied on), the completion in the
> property name field gives you the compatible features for your current
> selection and customization type:
> . "by Expression": attributes
> . "by Selection": references
>
>>
>> So how do I know the correct property name?
>
> In your case, you need to create a property customization "by Selection":
> . select your edge style in the "Applied on" property
> . the "Property Name" completion will propose you: strokeColor,
> (begin/center/end)LabelDescription, centered(Source/Target)Mappings
> . use the Value Selection combo, which suggests the known values for
> the property specified in the Property Name field, to select the color
> you want.
>
>
>
>>
>> I am using Sirius 3.1.2.
>>
>> Best regards,
>> Axel
>>
>
>
> Regards
Previous Topic:Semantic candidates/precondition expressions for mapping imports
Next Topic:Edge size not applied to decorators
Goto Forum:
  


Current Time: Thu Jan 21 09:18:49 GMT 2021

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

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

Back to the top