Hi,
inserting of a new model is usually done in a command obtained from the target EditPart's layout policy's getCreateCommand(CreateRequest request).
The CreateRequest contains a CreationFactory which in turns creates the new model instance. Its default implementation caches the instance,
so you always get the same instance when you call createRequest.getNewObject().
If you need to create more than one model, you could ignore the createRequest.getNewObject() method and create the models instances by your self:
@Override
protected Command getCreateCommand(CreateRequest request) {
Command command = null;
if (request.getNewObjectType().equals(YourModel.class)) {
command = new YourCommandForModelAdding(new YourModel(), new YourModel());
}
return command;
}
you should also change the feedback (if you have some).