use of org.jkiss.dbeaver.ext.postgresql.tasks.PostgreDatabaseBackupSettings in project dbeaver by dbeaver.
the class PostgreBackupWizardPageSettings method saveState.
@Override
public void saveState() {
super.saveState();
PostgreDatabaseBackupSettings settings = wizard.getSettings();
String fileName = outputFolderText.getText();
settings.setOutputFolder(CommonUtils.isEmpty(fileName) ? null : new File(fileName));
settings.setOutputFilePattern(outputFileText.getText());
settings.setFormat(PostgreDatabaseBackupSettings.ExportFormat.values()[formatCombo.getSelectionIndex()]);
settings.setCompression(compressCombo.getText());
settings.setEncoding(encodingCombo.getText());
settings.setUseInserts(useInsertsCheck.getSelection());
settings.setNoPrivileges(noPrivilegesCheck.getSelection());
settings.setNoOwner(noOwnerCheck.getSelection());
}
use of org.jkiss.dbeaver.ext.postgresql.tasks.PostgreDatabaseBackupSettings in project dbeaver by serge-rider.
the class PostgreBackupWizardPageSettings method saveState.
@Override
public void saveState() {
super.saveState();
PostgreDatabaseBackupSettings settings = wizard.getSettings();
String fileName = outputFolderText.getText();
settings.setOutputFolder(CommonUtils.isEmpty(fileName) ? null : new File(fileName));
settings.setOutputFilePattern(outputFileText.getText());
settings.setFormat(PostgreDatabaseBackupSettings.ExportFormat.values()[formatCombo.getSelectionIndex()]);
settings.setCompression(compressCombo.getText());
settings.setEncoding(encodingCombo.getText());
settings.setUseInserts(useInsertsCheck.getSelection());
settings.setNoPrivileges(noPrivilegesCheck.getSelection());
settings.setNoOwner(noOwnerCheck.getSelection());
}
Aggregations