use of org.jkiss.dbeaver.ui.DialogSettingsMap in project dbeaver by serge-rider.
the class DataTransferWizard method saveDialogSettings.
// Saves wizard settings in UI dialog settings
private void saveDialogSettings() {
// Save settings
DialogSettingsMap dialogSettings = new DialogSettingsMap(getDialogSettings());
saveConfiguration(dialogSettings);
DTUIActivator.getDefault().saveDialogSettings();
}
use of org.jkiss.dbeaver.ui.DialogSettingsMap in project dbeaver by dbeaver.
the class DataTransferWizard method saveDialogSettings.
// Saves wizard settings in UI dialog settings
private void saveDialogSettings() {
// Save settings
DialogSettingsMap dialogSettings = new DialogSettingsMap(getDialogSettings());
saveConfiguration(dialogSettings);
DTUIActivator.getDefault().saveDialogSettings();
}
use of org.jkiss.dbeaver.ui.DialogSettingsMap in project dbeaver by dbeaver.
the class DataTransferWizard method openWizard.
public static void openWizard(@NotNull IWorkbenchWindow workbenchWindow, @Nullable Collection<IDataTransferProducer> producers, @Nullable Collection<IDataTransferConsumer> consumers, @Nullable IStructuredSelection selection) {
try {
DataTransferSettings settings = DataTransferSettings.loadSettings(new DBRRunnableWithResult<DataTransferSettings>() {
@Override
public void run(DBRProgressMonitor monitor) {
result = new DataTransferSettings(monitor, producers, consumers, new DialogSettingsMap(getWizardDialogSettings()), new DataTransferState(), true, CommonUtils.isEmpty(consumers), false);
}
});
DataTransferWizard wizard = new DataTransferWizard(null, settings, true);
TaskConfigurationWizardDialog dialog = new TaskConfigurationWizardDialog(workbenchWindow, wizard, selection);
dialog.open();
} catch (DBException e) {
DBWorkbench.getPlatformUI().showError("Data transfer error", "Can not open data transfer wizard", e);
}
}
use of org.jkiss.dbeaver.ui.DialogSettingsMap in project dbeaver by serge-rider.
the class DataTransferWizard method openWizard.
public static void openWizard(@NotNull IWorkbenchWindow workbenchWindow, @Nullable Collection<IDataTransferProducer> producers, @Nullable Collection<IDataTransferConsumer> consumers, @Nullable IStructuredSelection selection) {
try {
DataTransferSettings settings = DataTransferSettings.loadSettings(new DBRRunnableWithResult<DataTransferSettings>() {
@Override
public void run(DBRProgressMonitor monitor) {
result = new DataTransferSettings(monitor, producers, consumers, new DialogSettingsMap(getWizardDialogSettings()), new DataTransferState(), true, CommonUtils.isEmpty(consumers), false);
}
});
DataTransferWizard wizard = new DataTransferWizard(null, settings, true);
TaskConfigurationWizardDialog dialog = new TaskConfigurationWizardDialog(workbenchWindow, wizard, selection);
dialog.open();
} catch (DBException e) {
DBWorkbench.getPlatformUI().showError("Data transfer error", "Can not open data transfer wizard", e);
}
}
Aggregations