Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Queries for moveElement Java action
Queries for moveElement Java action [message #1418002] Sat, 06 September 2014 10:34 Go to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
Hi all,

I created some popup menu actions for moving list entries to another position (to top, one up, one down, to bottom). These actions are using the standard Java action org.eclipse.sirius.business.api.action.moveElement.

There seems to exist an inconsistency between validation and actual functionality.

When using [self.target/] style expressions for the required parameters (element, referenceOwner, predecessor) the actions work in the diagram. But validating the VSM creates error log entries like Compilation error for expression [self.target/] : Unrecognized variable: (target).

When using [self/] style expressions validation seems to work fine, but then calling the actions does not work anymore and the error log shows an entry like Caused by: java.lang.IllegalArgumentException: Owner element type DNodeList does not have a feature named fields.

Am I missing something?

Regards,
Axel

[Updated on: Sat, 06 September 2014 11:19]

Report message to a moderator

Re: Queries for moveElement Java action [message #1420115 is a reply to message #1418002] Tue, 09 September 2014 14:14 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Le 06/09/2014 12:34, Axel Guckelsberger a écrit :
> Hi all,
>

Hi,

> I created some popup menu actions for moving list entries to another
> position (top, one up, one down). These actions are using the standard
> Java action org.eclipse.sirius.business.api.action.moveElement.
>
> There seems to exist an inconsistency between validation and actual
> functionality.
>
> When using [self.target/] style expressions for the required parameters
> (element, referenceOwner, predecessor) the actions work in the diagram.
> But validating the VSM creates error log entries like Compilation error
> for expression [self.target/] : Unrecognized variable: (target).
>
> When using [self/] style expressions validation seems to work fine, but
> then calling the actions does not work anymore and the error log shows
> an entry like Caused by: java.lang.IllegalArgumentException: Owner
> element type DNodeList does not have a feature named fields.
>
> Am I missing something?

The bug 428758 [1] has as main goal to improve Acceleo3 validation. I
think you are in a case where the validation fails wrongly.

>
> Regards,
> Axel
>

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=428758

Regards,

--
Laurent - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Queries for moveElement Java action [message #1497028 is a reply to message #1420115] Wed, 03 December 2014 13:34 Go to previous message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
The link is wrong in my previous post. It was
https://bugs.eclipse.org/bugs/show_bug.cgi?id=441767

Axel, the comment you add in 428758 should be added to 441767.

Le 09/09/2014 16:14, Laurent Redor a écrit :
> Le 06/09/2014 12:34, Axel Guckelsberger a écrit :
>> Hi all,
>>
>
> Hi,
>
>> I created some popup menu actions for moving list entries to another
>> position (top, one up, one down). These actions are using the standard
>> Java action org.eclipse.sirius.business.api.action.moveElement.
>>
>> There seems to exist an inconsistency between validation and actual
>> functionality.
>>
>> When using [self.target/] style expressions for the required parameters
>> (element, referenceOwner, predecessor) the actions work in the diagram.
>> But validating the VSM creates error log entries like Compilation error
>> for expression [self.target/] : Unrecognized variable: (target).
>>
>> When using [self/] style expressions validation seems to work fine, but
>> then calling the actions does not work anymore and the error log shows
>> an entry like Caused by: java.lang.IllegalArgumentException: Owner
>> element type DNodeList does not have a feature named fields.
>>
>> Am I missing something?
>
> The bug 428758 [1] has as main goal to improve Acceleo3 validation. I
> think you are in a case where the validation fails wrongly.
>
>>
>> Regards,
>> Axel
>>
>
> [1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=428758
>
> Regards,
>


--
Laurent - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:How to remove/add a menu item from Context Menu of a Representation.
Next Topic:Panning
Goto Forum:
  


Current Time: Fri Apr 26 14:41:01 GMT 2024

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

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

Back to the top