|
|
|
Re: How to give the ID for dynamically created elements, and where to save the values [message #1792186 is a reply to message #1792173] |
Thu, 12 July 2018 12:12 |
|
We may not be talking about the same things after all. The ones I was referring to are purely technical details of how the Sirius/EEF runtime produces the SWT UI elements needed for a particular semantic element you select. They are never stored anywhere and there is no reason I can see to need them in the Value Expression or Set operation.
In the Value Expression of Set operation, you are in the context of your semantic elements. If your "For" loop has produced 10 Text Widgets for different values of your iterator ("i" in your example), each widget will have the same value of "self", but a different value of "i". You can use those in your "Value Expression" to compute the text that should be displayed for the "i" property of the "self" semantic element. Inside the "Begin" callback (which is called when the user changes the content of the text widget) you still have access to those and also to the "newValue" which corresponds to the text entered by the user. So you can use those 3 to set the "i" property of the "self" semantic element to the "newValue" (whatever that means concretely in you context).
At no point should you need the ids of the model elements that Sirius has created internally to render the properties view's widgets and wire them and their callbacks together.
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: How to give the ID for dynamically created elements, and where to save the values [message #1792489 is a reply to message #1792244] |
Wed, 18 July 2018 15:18 |
|
Sorry for the delay, I had missed your answer.
The wizards and dialogs configure in the Sirius VSM actually behave exactly like a property sheet (for all intent and purpose, they are just property sheets displayed in a top-level window). When you open such a dialog, it must be bound to a particular element in your model, and every edition performed in the widgets is immediatly applied to the model. Exactly like in the property view. So the answer to "where does this get stored" is "somewhere in your model" (exactly where is up to you, and depends on how you configures your modeler).
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.06475 seconds