use of net.parostroj.timetable.gui.actions.execution.OutputTemplateAction in project grafikon by jub77.
the class EditOutputsDialog method generateOutputs.
private void generateOutputs(final GenerateOutputPM pModel, Collection<Output> outputs) {
ActionContext context = new ActionContext();
context.setLocationComponent(this);
OutputTemplateAction action = new OutputTemplateAction(context, element, settings, pModel.getLocation(), outputs);
if (pModel.isClearDirectory()) {
ActionHandler.getInstance().execute(ModelAction.newAction(context, () -> {
clearDirectory(pModel.getLocation());
}));
}
ActionHandler.getInstance().execute(action);
}
Aggregations