LocomotiveConfigurationDialog.this, newLocomotive);
if (locomotiveConfig.isOkPressed()) {
selectedLocomotiveGroup.getLocomotives().add(newLocomotive);
LocomotivePersistenceIface locomotivePersistence = AdHocRailway
.getInstance().getLocomotivePersistence();
locomotivePersistence.addLocomotive(newLocomotive);
}
List<Locomotive> locomotives = new ArrayList<Locomotive>(
selectedLocomotiveGroup.getLocomotives());
locomotiveModel.setList(locomotives);
}