APISonar


org.pdfsam.support.io.FileType.LOG

> org > pdfsam > support > io > FileType > LOG
org APIs pdfsam APIs support APIs io APIs FileType APIs LOG APIs

Example 1
public void saveLog() {
        RememberingLatestFileChooserWrapper fileChooser = FileChoosers.getFileChooser(
                DefaultI18nContext.getInstance().i18n("Select where to save the log file"), FileType.LOG);
        fileChooser.setInitialFileName("PDFsam.log");
        File chosenFile = fileChooser.showDialog(this.getScene().getWindow(), OpenType.SAVE);
        if (chosenFile != null) {
            if (chosenFile.exists()) {
                // TODO show dialog? investigate. On Ubuntu it already asks confirmation.
            }
            writeContent(logView.getItems()).to(chosenFile);
        }
    }