|
Re: Direct edit label on begin/end label of edges [message #1837062 is a reply to message #1837056] |
Thu, 21 January 2021 09:22   |
Eclipse User |
|
|
|
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
|
|
|
Re: Direct edit label on begin/end label of edges [message #1837126 is a reply to message #1837062] |
Fri, 22 January 2021 08:20  |
Eclipse User |
|
|
|
I see, thank you. The centre label with a mask is certainly a way to do it but it is not desirable in my case. I think I'll just rely on the properties window for editing the represented features for the time being. Hopefully, editing the begin/end labels will be possible in the future. :)
|
|
|
Powered by
FUDForum. Page generated in 0.04746 seconds