@Override
protected Command createAddCommand(EditPart child, EditPart after) {
Active newTarget = (Active) getHost().getModel();
if (child instanceof ActionGraphicalEditPart) {
ActionGraphicalEditPart actionEditPart = (ActionGraphicalEditPart) child;
int newIndex = getHost().getChildren().indexOf(after);
return new MoveActionCommand(newTarget, (Action) actionEditPart.getModel(), newIndex);
}
return null;
}