Community
Participate
Working Groups
Created attachment 260172 [details] Example to reproduce problem with Move operation In attached example we have 2 examples of Move operation. One worked and other none. The example doesn't work is the Operation Action named ClassToPackageSelected. This example generate a NullPointerException. To reproduce problem use example attached: - Open NewDiagramEcore - Select package named "p1" - Right Click on this package Move ClassToPackageSelected - Select EClass named "E22" -> NullPointerException! Ko!
Closing as invalid, because with a few tweaks in the VSM it works fine (see the attached VSM), but I'll open a separate issue for the underlying useability issue, which is that when the Sirius runtime expects an AQL expression to return an EObject, and it returns an EObject wrapped into a collection, the Sirius/AQL bridge returns null instead of the more natural behavior of unwrapping the element.
Created attachment 260176 [details] The fixed VSM Two changes compared to the first version: * aql:views.target was changed into aql:views.target->first() to explicitly unwrap the (singleton) collection and return a plain EObject as expected * added a "Change Context" to var:classToMove, as otherwise the tool tried to move the EPackage into itself.