}
@Override
protected Command getCreateCommand(CreateRequest request) {
if (request.getNewObject() instanceof Action) {
AddActionCommand command = new AddActionCommand();
command.setTarget((Active) getHost().getModel());
EditPart after = getInsertionReference(request);
int newIndex = getHost().getChildren().indexOf(after);
command.setActionIndex(newIndex);
return command;
}
return null;
}