Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
5e5acfa3
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,发现更多精彩内容 >>
提交
5e5acfa3
编写于
10月 15, 2020
作者:
S
ShadelessFox
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
#9687 Don't expose flag
上级
aa0cae7c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
15 addition
and
14 deletion
+15
-14
plugins/org.jkiss.dbeaver.data.transfer.ui/src/org/jkiss/dbeaver/tools/transfer/ui/wizard/DataTransferWizard.java
.../dbeaver/tools/transfer/ui/wizard/DataTransferWizard.java
+2
-3
plugins/org.jkiss.dbeaver.data.transfer/src/org/jkiss/dbeaver/tools/transfer/DataTransferSettings.java
...rg/jkiss/dbeaver/tools/transfer/DataTransferSettings.java
+7
-11
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/task/DBTaskUtils.java
...r.model/src/org/jkiss/dbeaver/model/task/DBTaskUtils.java
+6
-0
未找到文件。
plugins/org.jkiss.dbeaver.data.transfer.ui/src/org/jkiss/dbeaver/tools/transfer/ui/wizard/DataTransferWizard.java
浏览文件 @
5e5acfa3
...
...
@@ -200,8 +200,6 @@ public class DataTransferWizard extends TaskConfigurationWizard<DataTransferSett
super
.
addPages
();
if
((!
isTaskEditor
()
||
isNewTaskEditor
())
&&
(
settings
.
isConsumerOptional
()
||
settings
.
isProducerOptional
()))
{
addPage
(
new
DataTransferPagePipes
());
}
else
{
settings
.
setNodeUpdateRestricted
(
true
);
}
addWizardPages
(
this
);
addPage
(
new
DataTransferPageFinal
());
...
...
@@ -570,7 +568,8 @@ public class DataTransferWizard extends TaskConfigurationWizard<DataTransferSett
new
DialogSettingsMap
(
getWizardDialogSettings
()),
new
DataTransferState
(),
true
,
CommonUtils
.
isEmpty
(
consumers
));
CommonUtils
.
isEmpty
(
consumers
),
false
);
}
});
...
...
plugins/org.jkiss.dbeaver.data.transfer/src/org/jkiss/dbeaver/tools/transfer/DataTransferSettings.java
浏览文件 @
5e5acfa3
...
...
@@ -30,6 +30,7 @@ import org.jkiss.dbeaver.model.runtime.MonitorRunnableContext;
import
org.jkiss.dbeaver.model.struct.DBSObject
;
import
org.jkiss.dbeaver.model.task.DBTTask
;
import
org.jkiss.dbeaver.model.task.DBTTaskSettings
;
import
org.jkiss.dbeaver.model.task.DBTaskUtils
;
import
org.jkiss.dbeaver.runtime.DBWorkbench
;
import
org.jkiss.dbeaver.tools.transfer.internal.DTMessages
;
import
org.jkiss.dbeaver.tools.transfer.registry.DataTransferNodeDescriptor
;
...
...
@@ -78,7 +79,7 @@ public class DataTransferSettings implements DBTTaskSettings<DBPObject> {
private
boolean
pipeChangeRestricted
;
// Hacky flag too. Skip nodes (producer and consumer) update
// if it's not required -- e.g., when we're editing an exiting task
private
boolean
nodeUpdateRestricted
;
private
final
boolean
nodeUpdateRestricted
;
public
DataTransferSettings
(
@NotNull
DBRProgressMonitor
monitor
,
...
...
@@ -87,8 +88,10 @@ public class DataTransferSettings implements DBTTaskSettings<DBPObject> {
@NotNull
Map
<
String
,
Object
>
configuration
,
@NotNull
DataTransferState
state
,
boolean
selectDefaultNodes
,
boolean
isExport
)
{
boolean
isExport
,
boolean
isExitingTask
)
{
this
.
state
=
state
;
this
.
nodeUpdateRestricted
=
isExitingTask
;
initializePipes
(
producers
,
consumers
,
isExport
);
loadSettings
(
monitor
,
configuration
);
...
...
@@ -113,7 +116,8 @@ public class DataTransferSettings implements DBTTaskSettings<DBPObject> {
getTaskOrSavedSettings
(
task
,
configuration
),
state
,
!
task
.
getProperties
().
isEmpty
(),
isExportTask
(
task
)
isExportTask
(
task
),
DBTaskUtils
.
isTaskExists
(
task
)
);
}
...
...
@@ -142,14 +146,6 @@ public class DataTransferSettings implements DBTTaskSettings<DBPObject> {
this
.
pipeChangeRestricted
=
pipeChangeRestricted
;
}
public
boolean
isNodeUpdateRestricted
()
{
return
nodeUpdateRestricted
;
}
public
void
setNodeUpdateRestricted
(
boolean
nodeUpdateRestricted
)
{
this
.
nodeUpdateRestricted
=
nodeUpdateRestricted
;
}
public
static
DataTransferSettings
loadSettings
(
DBRRunnableWithResult
<
DataTransferSettings
>
loader
)
throws
DBException
{
// Wait 1 minute maximum
RuntimeUtils
.
runTask
(
loader
,
"Load data transfer settings"
,
60000
,
false
);
...
...
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/task/DBTaskUtils.java
浏览文件 @
5e5acfa3
...
...
@@ -136,4 +136,10 @@ public class DBTaskUtils {
}
}
public
static
boolean
isTaskExists
(
DBTTask
task
)
{
if
(
task
==
null
)
{
return
false
;
}
return
task
.
getProject
().
getTaskManager
().
getTaskById
(
task
.
getId
())
!=
null
;
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录