Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
93ef35bf
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,发现更多精彩内容 >>
提交
93ef35bf
编写于
4月 29, 2020
作者:
S
serge-rider
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
#8557 Driver settings: reset to defaults additions
上级
97fd931b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
28 addition
and
12 deletion
+28
-12
plugins/org.jkiss.dbeaver.registry/src/org/jkiss/dbeaver/registry/driver/DriverDescriptor.java
...c/org/jkiss/dbeaver/registry/driver/DriverDescriptor.java
+24
-8
plugins/org.jkiss.dbeaver.ui.editors.connection/src/org/jkiss/dbeaver/ui/dialogs/driver/DriverEditDialog.java
...org/jkiss/dbeaver/ui/dialogs/driver/DriverEditDialog.java
+4
-4
未找到文件。
plugins/org.jkiss.dbeaver.registry/src/org/jkiss/dbeaver/registry/driver/DriverDescriptor.java
浏览文件 @
93ef35bf
...
...
@@ -119,15 +119,15 @@ public class DriverDescriptor extends AbstractDescriptor implements DBPDriver {
private
DBPImage
iconNormal
;
private
DBPImage
iconError
;
private
DBPImage
iconBig
;
private
boolean
embedded
;
private
boolean
embedded
,
origEmbedded
;
private
boolean
clientRequired
;
private
boolean
supportsDriverProperties
;
private
boolean
anonymousAccess
;
private
boolean
allowsEmptyPassword
;
private
boolean
anonymousAccess
,
origAnonymousAccess
;
private
boolean
allowsEmptyPassword
,
origAllowsEmptyPassword
;
private
boolean
licenseRequired
;
private
boolean
customDriverLoader
;
private
boolean
useURLTemplate
;
private
boolean
instantiable
;
private
boolean
instantiable
,
origInstantiable
;
private
boolean
custom
;
private
boolean
modified
;
private
boolean
disabled
;
...
...
@@ -257,12 +257,12 @@ public class DriverDescriptor extends AbstractDescriptor implements DBPDriver {
this
.
clientRequired
=
CommonUtils
.
getBoolean
(
config
.
getAttribute
(
RegistryConstants
.
ATTR_CLIENT_REQUIRED
),
false
);
this
.
customDriverLoader
=
CommonUtils
.
getBoolean
(
config
.
getAttribute
(
RegistryConstants
.
ATTR_CUSTOM_DRIVER_LOADER
),
false
);
this
.
useURLTemplate
=
CommonUtils
.
getBoolean
(
config
.
getAttribute
(
RegistryConstants
.
ATTR_USE_URL_TEMPLATE
),
true
);
this
.
instantiable
=
CommonUtils
.
getBoolean
(
config
.
getAttribute
(
RegistryConstants
.
ATTR_INSTANTIABLE
),
true
);
this
.
promoted
=
CommonUtils
.
toInt
(
config
.
getAttribute
(
RegistryConstants
.
ATTR_PROMOTED
),
0
);
this
.
supportsDriverProperties
=
CommonUtils
.
getBoolean
(
config
.
getAttribute
(
RegistryConstants
.
ATTR_SUPPORTS_DRIVER_PROPERTIES
),
true
);
this
.
embedded
=
CommonUtils
.
getBoolean
(
config
.
getAttribute
(
RegistryConstants
.
ATTR_EMBEDDED
));
this
.
anonymousAccess
=
CommonUtils
.
getBoolean
(
config
.
getAttribute
(
RegistryConstants
.
ATTR_ANONYMOUS
));
this
.
allowsEmptyPassword
=
CommonUtils
.
getBoolean
(
"allowsEmptyPassword"
);
this
.
origInstantiable
=
this
.
instantiable
=
CommonUtils
.
getBoolean
(
config
.
getAttribute
(
RegistryConstants
.
ATTR_INSTANTIABLE
),
true
);
this
.
origEmbedded
=
this
.
embedded
=
CommonUtils
.
getBoolean
(
config
.
getAttribute
(
RegistryConstants
.
ATTR_EMBEDDED
));
this
.
origAnonymousAccess
=
this
.
anonymousAccess
=
CommonUtils
.
getBoolean
(
config
.
getAttribute
(
RegistryConstants
.
ATTR_ANONYMOUS
));
this
.
origAllowsEmptyPassword
=
this
.
allowsEmptyPassword
=
CommonUtils
.
getBoolean
(
"allowsEmptyPassword"
);
this
.
licenseRequired
=
CommonUtils
.
getBoolean
(
config
.
getAttribute
(
RegistryConstants
.
ATTR_LICENSE_REQUIRED
));
this
.
custom
=
false
;
this
.
isLoaded
=
false
;
...
...
@@ -1188,6 +1188,22 @@ public class DriverDescriptor extends AbstractDescriptor implements DBPDriver {
return
origSampleURL
;
}
public
boolean
isOrigEmbedded
()
{
return
origEmbedded
;
}
public
boolean
isOrigAnonymousAccess
()
{
return
origAnonymousAccess
;
}
public
boolean
isOrigAllowsEmptyPassword
()
{
return
origAllowsEmptyPassword
;
}
public
boolean
isOrigInstantiable
()
{
return
origInstantiable
;
}
public
List
<
DBPDriverLibrary
>
getOrigFiles
()
{
return
origFiles
;
}
...
...
plugins/org.jkiss.dbeaver.ui.editors.connection/src/org/jkiss/dbeaver/ui/dialogs/driver/DriverEditDialog.java
浏览文件 @
93ef35bf
...
...
@@ -725,10 +725,10 @@ public class DriverEditDialog extends HelpEnabledDialog {
(
driver
.
getOrigDefaultPort
()
==
null
?
""
:
driver
.
getOrigDefaultPort
())
:
//$NON-NLS-1$
(
driver
.
getDefaultPort
()
==
null
?
""
:
driver
.
getDefaultPort
()));
//$NON-NLS-1$
embeddedDriverCheck
.
setSelection
(
driver
.
isEmbedded
());
anonymousDriverCheck
.
setSelection
(
driver
.
isAnonymousAccess
());
allowsEmptyPasswordCheck
.
setSelection
(
driver
.
isAllowsEmptyPassword
());
nonInstantiableCheck
.
setSelection
(!
driver
.
isInstantiable
());
embeddedDriverCheck
.
setSelection
(
original
?
driver
.
isOrigEmbedded
()
:
driver
.
isEmbedded
());
anonymousDriverCheck
.
setSelection
(
original
?
driver
.
isOrigAnonymousAccess
()
:
driver
.
isAnonymousAccess
());
allowsEmptyPasswordCheck
.
setSelection
(
original
?
driver
.
isOrigAllowsEmptyPassword
()
:
driver
.
isAllowsEmptyPassword
());
nonInstantiableCheck
.
setSelection
(
original
?
!
driver
.
isOrigInstantiable
()
:
!
driver
.
isInstantiable
());
if
(
original
)
{
resetLibraries
(
true
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录