use of net.parostroj.timetable.model.CopyFactory in project grafikon by jub77.
the class TrainTypesDialog method copy.
@Override
protected TrainType copy(String name, TrainType item) {
CopyFactory copyFactory = new CopyFactory(element.getPartFactory());
TrainType copiedType = copyFactory.copy(item, element.getPartFactory().createId());
copiedType.setDesc(LocalizedString.fromString(name));
return copiedType;
}
Aggregations