I have a question on the way ContainerEditPolicy works. I have a view
which contains editparts for "resources" and for "reservations" (I'm
using abstract terms here, the actual domain is not relevant). I want to
drag reservations from one resource to another. My resource editparts
has a ContainerEditPolicy, and getOrphanChildrenCommand and
getAddCommand are called, so the dragging and dropping actually works.
But I can't understand why orphan and add are called repeatedly when I
drag a reservation within the a new resource. Let's say I have some
lengthy background operation to perform when a reservation is dropped on
a new resource (that's probably a no-no). It would not do to invoke this
operation for every pixel the reservation is moved, would it ?
Is there some way I can implement this add a slightly higher level, so I
only generate commands when the drag'n drop process is finished ?