Search in sources :

Example 1 with CopyFactory

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;
}
Also used : CopyFactory(net.parostroj.timetable.model.CopyFactory) TrainType(net.parostroj.timetable.model.TrainType)

Aggregations

CopyFactory (net.parostroj.timetable.model.CopyFactory)1 TrainType (net.parostroj.timetable.model.TrainType)1