Community
Participate
Working Groups
When basing a edge style color on computed color, it look like only the source finder expression element is available on red/green/blue computation expression. It's not sufficient to compute an edge color: we must have access to its source and target. $view could for example be accessible on color computation, or even associated elements expression result. as an addition, color computation tooltips can list the available variables.
This improvement has been created following discussion from Sirius forum : http://www.eclipse.org/forums/index.php/t/722053/ Charlie, can you provide a project in attachement to reproduce your issue? Seeing the sirius code, the computed color evaluation seems done in AbstractColorUpdater.getRGBValueForComputedColor() without setting variables to the interpreter.
Created attachment 242765 [details] sample viewpoint with computed color for edges
Here's a sample. If it worked, MyColorService.getMockedColor should have returned a 10,10,10 RGB