Search in sources :

Example 1 with OutputTemplateAction

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);
}
Also used : OutputTemplateAction(net.parostroj.timetable.gui.actions.execution.OutputTemplateAction) ActionContext(net.parostroj.timetable.gui.actions.execution.ActionContext)

Aggregations

ActionContext (net.parostroj.timetable.gui.actions.execution.ActionContext)1 OutputTemplateAction (net.parostroj.timetable.gui.actions.execution.OutputTemplateAction)1