|
Re: Passing multiple selected elements from a diagram editor to an external java action [message #1407419 is a reply to message #1407401] |
Tue, 12 August 2014 10:47   |
Eclipse User |
|
|
|
Hi Stefan,
Indeed seeing the Sirius code, this can occurs and is a bug. Could
you raise a bugzilla with your scenario and the needed data
to reproduce. The odesign in attachement is not enough as it is an
extension of another odesign, could you provide a sample project, with
..ecore, .odesign and .aird?
Best Regards.
Le 12/08/2014 16:00, Stefan Schulz a écrit :
> Hi,
>
> I'm trying to pass all the items I have selected in my diagram editor to a java action (IExternalJavaAction), but the execute method of the action only gets one single element in its first argument.
>
> Here's an example: (hopefully the image tags work after actually creating the topic)
> 1) I've selected 4 items in my editor. (see "selection.png")
>
>
> 2) The acceleo interpreter correctly returns all 4 elements (as seen in "acceleo_result.png") for the expression [thisEObject/].
>
>
> 3) If I call a Java action the collection of selected items given to the execute method only contains 1 element. (see "java_action_call.png")
>
>
> 4) I also tried to pass [thisEObject/] as a parameter to the method. If I execute the action there is only 1 element in the value of the corresponding HashMapEntry. (see "java_action_call_parameter.png")
>
>
> I've tested to call the action using a context menu and via palette entry/action bar in the editor. Both approaches yield the same result though.
>
> Am I doing something wrong or is this a bug?
> I've also added my Viewpoint Specification in case it has something to do with an option I haven't set.
>
> Help would be much appreciated.
>
> Best regards,
> Stefan
>
>
>
>
--
Esteban Dugueperoux - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04235 seconds