|
Re: Get Value of the TextArea [message #1792545 is a reply to message #1781379] |
Thu, 19 July 2018 11:09 |
Pratiksha Dalal Messages: 31 Registered: May 2018 |
Member |
|
|
Hi
Generally to save any value of any widget we have to give a Eattribute in Ecore and then give that attribute name to the value expression and feature name in set of the widget
Steps
1.Create a Eattribute in Ecore
2.Do generate all and run
3.Go to design go to particular widget open the properties window
4.Give the Eattribute name in the Value Expression field(Example feature:Eattribute name)
5.Right click on the change context under new operation u will find set select that(ignore if Set action is already present)
6.Give the Eattribite's name as the feature name and give var:newValue for value expression of set
To print the value give system.out.println(getEattributes Name())
the get method of the variable will be present impl class
[Updated on: Thu, 19 July 2018 11:12] Report message to a moderator
|
|
|
Re: Get Value of the TextArea [message #1792621 is a reply to message #1792545] |
Fri, 20 July 2018 10:03 |
Pierre Guilet Messages: 250 Registered: June 2017 |
Senior Member |
|
|
Hi,
The documentation for Text Area is available here https://www.eclipse.org/sirius/doc/specifier/properties/Properties_View_Description.html#text
You have the variable "newValue" available in your model expression.
To do what you want you can add a change context with an aql expression calling a service with newValue as parameter: aql:self.myService(newValue)
Regards,
Pierre Guilet - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.02908 seconds