|Re: Container Drop, Move Operation [message #1614838 is a reply to message #1613387]
||Fri, 13 February 2015 14:30
|| Florian Barbin
Registered: August 2010
> i have a model, where a Container have 0..* activities of type Activity.
> The Container itself is also of type Activity. In my Diagram i want to
> be able to move activities in and out the Containers. In my odesign i
> use a Container Drop together with a Move operation:
Instead of define a "Move" operation, you should perform the move
I don't know your meta-model but if the relation between a Container and
an Activity is a containment relation, you just need to affect the
Activity to the container relation where it has been dropped. That
should look like something like that:
Change Context [newSemanticContainer/]
Feature name : yourContainementFeature
Value Expression : var:element
A good example is the "Ecore Tools" modeler:
You can take a look on the "Drop EClassifier into EPackage" Container
Drop for instance.
> The Move operation is specifed like this:
> However, when i drag and drop an Activity on a Container, like this:
> Eclipse freezes and i have to kill it. So i got no error msg. Any idea
> what is going wrong? I am not sure if my odesign file is even valid ...
Florian - Obeo
Need professional services for Sirius?
Powered by FUDForum
. Page generated in 0.02344 seconds