use of net.parostroj.timetable.gui.data.OutputSettings in project grafikon by jub77.
the class MainFrame method ouputTemplatesMenuItemActionPerformed.
private void ouputTemplatesMenuItemActionPerformed(java.awt.event.ActionEvent evt) {
// output templates list dialog
OutputTemplateListDialog dialog = new OutputTemplateListDialog(this, true);
dialog.setLocationRelativeTo(this);
dialog.registerContext(model.getGuiContext());
OutputSettings settings = model.getOutputSettings();
FileChooserFactory chooserFactory = FileChooserFactory.getInstance();
File outputDirectory = chooserFactory.getLocation(FileChooserFactory.Type.OUTPUT_DIRECTORY);
try (CloseableFileChooser allChooser = chooserFactory.getFileChooser(FileChooserFactory.Type.ALL_FILES)) {
dialog.showDialog(model.getDiagram(), outputDirectory, allChooser, new Settings(settings.getLocale()));
dialog.dispose();
}
}
Aggregations