Community
Participate
Working Groups
Created attachment 275033 [details] project to reproduce When defining a custom widget, the API allowing to execute a model operation defined in the VSM is not working. The model operation is not found and thus not executed. Steps to reproduce: 1-import the plugin org.eclipse.eef.sample.custom.widget.colorpicker 2-launch a runtime 3-import BugCustomWIdget project 4-open new LayoutingMode Diagram 5-select an epackage and in properties view click on the tiny button. 6-the color picker wizard opens. Click on ok. KO the ePackage should be renamed
The problem is in org.eclipse.sirius.properties.core.api.DefaultDescriptionPreprocessorWithFiltering.processManyValuedFeatureByCopying(EStructuralFeature, SIRIUS, SIRIUS, TransformationCache, IInterpreter, IVariableManager, OverridesProvider) where the object is not an instance of InitialOperation. All widgets excepted the custom one have the begin just after the widget item in VSM. Custom widget has an additional CustomOperation item between the widget and the begin items. org.eclipse.sirius.properties.core.internal.preprocessor.CustomDescriptionPreprocessor should do more to handle this case.
Moving to 6.1 with low priority, mostly to make sure we have a look. We'll try to fix it if there is a simple solution, and see if it's worth backporting it in 6.0.x in this case.
A little mistake slept into the ColorPickerController in the org.eclipse.eef.sample.custom.widget.colorpicker plugin. To be sure to test the right thing, between the step 1 and 2, you need to change the ColorPickerController#EDIT_EXPRESSION_ID, in the org.eclipse.eef.sample.custom.widget.colorpicker plugin, from "bla2" to "bla". With this modification the ColorPickerController will try to execute the "CustomOperation" instead of the "CustomExpression", which is the thing we want to test in this issue.
New Gerrit change created: https://git.eclipse.org/r/135604
Gerrit change https://git.eclipse.org/r/135604 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=b254e4642d4dceaeb6709f902d64427f689181de
Fixed by b254e4642d4dceaeb6709f902d64427f689181de.
Verified with build 6.2.0.201902251539
Available in Sirius 6.2.0, see https://wiki.eclipse.org/Sirius/6.2.0 for details.
*** Bug 548454 has been marked as a duplicate of this bug. ***