Skip to main content



      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 17:10 Go to next message
Eclipse UserFriend
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 09:08 Go to previous messageGo to next message
Eclipse UserFriend
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,

[Updated on: Mon, 16 July 2018 09:55] by Moderator

Re: editExpression for Custom Widget [message #1792384 is a reply to message #1792362] Mon, 16 July 2018 13:31 Go to previous messageGo to next message
Eclipse UserFriend
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 05:44 Go to previous message
Eclipse UserFriend
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,
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: Sun Jul 06 16:16:49 EDT 2025

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

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

Back to the top