Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
66bd1747
D
dbeaver
项目概览
suliangchun
/
dbeaver
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dbeaver
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
66bd1747
编写于
10月 07, 2019
作者:
S
Serge Rider
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Task save fix
上级
5b772751
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
14 addition
and
2 deletion
+14
-2
plugins/org.jkiss.dbeaver.data.transfer.ui/src/org/jkiss/dbeaver/tools/transfer/ui/wizard/DataTransferTaskConfigurator.java
...ools/transfer/ui/wizard/DataTransferTaskConfigurator.java
+10
-1
plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/task/TaskConfigurationWizardDialog.java
.../jkiss/dbeaver/ui/task/TaskConfigurationWizardDialog.java
+4
-1
未找到文件。
plugins/org.jkiss.dbeaver.data.transfer.ui/src/org/jkiss/dbeaver/tools/transfer/ui/wizard/DataTransferTaskConfigurator.java
浏览文件 @
66bd1747
...
...
@@ -259,9 +259,18 @@ public class DataTransferTaskConfigurator implements DBTTaskConfigurator {
return
;
}
DataTransferSettings
settings
=
dtWizard
.
getSettings
();
boolean
isExport
=
isExport
();
List
<
IDataTransferProducer
>
producers
=
isExport
?
new
ArrayList
<>()
:
null
;
List
<
IDataTransferConsumer
>
consumers
=
isExport
?
null
:
new
ArrayList
<>();
/*
if (producers == null && settings.getInitProducers() != null) {
producers = Arrays.asList(settings.getInitProducers());
}
if (consumers == null && settings.getInitConsumers() != null) {
consumers = Arrays.asList(settings.getInitConsumers());
}
*/
TableItem
[]
items
=
objectsTable
.
getItems
();
...
...
@@ -277,7 +286,7 @@ public class DataTransferTaskConfigurator implements DBTTaskConfigurator {
}
}
}
dtWizard
.
getSettings
()
.
setDataPipes
(
producers
,
consumers
);
settings
.
setDataPipes
(
producers
,
consumers
);
dtWizard
.
loadSettings
(
dtWizard
.
getRunnableContext
());
}
...
...
plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/task/TaskConfigurationWizardDialog.java
浏览文件 @
66bd1747
...
...
@@ -140,7 +140,10 @@ public class TaskConfigurationWizardDialog extends ActiveWizardDialog {
super
.
updateButtons
();
Button
saveAsButton
=
getButton
(
SAVE_TASK_BTN_ID
);
if
(
saveAsButton
!=
null
)
{
saveAsButton
.
setEnabled
((
getTaskWizard
()
!=
null
&&
getTaskWizard
().
isCurrentTaskSaved
())
||
getWizard
().
canFinish
());
// TODO: we should be able to save/run task immediately if it was saved before.
// TODO: There is a bug in DT wizard which doesn't let to do it (producers/consumers are initialized only on the last page).
// TODO: init transfer for all deserialized producers/consumers
saveAsButton
.
setEnabled
(
/*(getTaskWizard() != null && getTaskWizard().isCurrentTaskSaved()) || */
getWizard
().
canFinish
());
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录