use of net.parostroj.timetable.model.TrainDiagramPartFactory in project grafikon by jub77.
the class EditRegionsDialog method createNew.
@Override
protected Region createNew(String name) {
TrainDiagramPartFactory factory = element.getPartFactory();
Region newRegion = factory.createRegion(factory.createId());
newRegion.setName(name);
return newRegion;
}
Aggregations