use of net.parostroj.timetable.gui.pm.GenerateOutputPM in project grafikon by jub77.
the class MainFrame method ouputMenuItemActionPerformed.
private void ouputMenuItemActionPerformed(java.awt.event.ActionEvent evt) {
// dialog with outputs
EditOutputsDialog dialog = EditOutputsDialog.newInstance(this, true);
dialog.setSettings(new Settings(model.getOutputSettings().getLocale()));
GenerateOutputPM pm = new GenerateOutputPM(model.getLanguageLoader().getAvailableLocales(), model.getDiagram().getLocales());
try (CloseableFileChooser chooser = FileChooserFactory.getInstance().getFileChooser(FileChooserFactory.Type.OUTPUT_DIRECTORY)) {
pm.init(model.get(), chooser);
dialog.setPresentationModel(pm);
dialog.setLocationRelativeTo(this);
dialog.registerContext(model.getGuiContext());
dialog.showDialog(model.getDiagram());
dialog.dispose();
pm.writeBack();
}
}
Aggregations