Home » Eclipse Projects » Sirius » Style customization for edge stroke colour
|
Re: Style customization for edge stroke colour [message #1721266 is a reply to message #1721263] |
Tue, 26 January 2016 08:50 |
|
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 |
Axel Guckelsberger Messages: 354 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 #1721283 is a reply to message #1721276] |
Tue, 26 January 2016 10:28 |
|
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 #1721285 is a reply to message #1721283] |
Tue, 26 January 2016 10:45 |
Axel Guckelsberger Messages: 354 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
|
|
|
Goto Forum:
Current Time: Fri Apr 19 00:18:19 GMT 2024
Powered by FUDForum. Page generated in 0.02539 seconds
|