|
Re: Direct edit label on begin/end label of edges [message #1837062 is a reply to message #1837056] |
Thu, 21 January 2021 14:22 |
|
Hello,
Indeed the direct edit tool only edit the center label as the tool can only reference an Edge mapping to be appied on, but not which of its label if there are more than one. Therefore it is hardcoded to direct edit the center label by default. However, if you want to be able to direct edit and modify different feature, you can achieve that by having only one label displaying different features and a Direct Edit Label tool updating different features using masks (See masks in Direct Edit Label https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#tools_specification ).
For instance if your reference as fields name and wieght you can have a label expression: aql:self.name + ' - ' + self.weight. Then on your Direct Edit Label tool, you will need 3 masks {0}, { - } and {1}. This way the edited texted will be parsed and the name will be accessible by the variable arg0 and the weight by the variable arg1. Your tool would then just need 2 Set operation, 1 for each feature.
The issue in GitHub is a different topic, it concerns Sirius Web.
Best regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.03457 seconds