Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » editExpression for Custom Widget(how to edit model properties inside custom widget)
editExpression for Custom Widget [message #1792306] Sun, 15 July 2018 21:10 Go to next message
Cihan Sarp is currently offline Cihan SarpFriend
Messages: 4
Registered: July 2018
Junior Member
Hi all,
I am trying to make ColorPicker example work with my models.
I have managed to set valueExpression so that ColorPicker displays the color from the model features.

However I am unable to set editExpression value. Could you please help with value of the editExpression for ColorPicker widget. References to documentation is also welcome.

Regards.
Re: editExpression for Custom Widget [message #1792362 is a reply to message #1792306] Mon, 16 July 2018 13:08 Go to previous messageGo to next message
Pierre Guilet is currently offline Pierre GuiletFriend
Messages: 250
Registered: June 2017
Senior Member
Hi,

I will answer shortly but please can you keep your answers in this thread and not create a new thread each time when it is on the same subject?
Documentation is available at

https://www.eclipse.org/sirius/doc/specifier/properties/Properties_View_Description.html
https://www.eclipse.org/sirius/doc/developer/extensions-properties_provide_custom_widget.html

Regards,


Pierre Guilet - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius

[Updated on: Mon, 16 July 2018 13:55]

Report message to a moderator

Re: editExpression for Custom Widget [message #1792384 is a reply to message #1792362] Mon, 16 July 2018 17:31 Go to previous messageGo to next message
Cihan Sarp is currently offline Cihan SarpFriend
Messages: 4
Registered: July 2018
Junior Member
Hi,
Sorry about the similar post.
I checked the links but still not sure what is the correct aql expression to set model properties. If I use a text widget and supple name as feature name property then the value entered to the text box is reflected on the model. In order to achieve the same effect what is the aql edit expression I should use in m custom widget?
Re: editExpression for Custom Widget [message #1792458 is a reply to message #1792384] Wed, 18 July 2018 09:44 Go to previous message
Pierre Guilet is currently offline Pierre GuiletFriend
Messages: 250
Registered: June 2017
Senior Member
Hi,

Sorry for the delay.

Normally, you have two ways.
But because of a bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=537135 you only have one.

In your CustomExpression, you need to use a JAVA service that will do the model modification: aql:self.myService().
See documentation https://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html#service_methods

Regards,


Pierre Guilet - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Is there any way we can apply company logo as the watermark for canvas?
Next Topic:Set model element properties in custom widget
Goto Forum:
  


Current Time: Thu Apr 25 20:35:23 GMT 2024

Powered by FUDForum. Page generated in 0.04376 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top