Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
a7e4bf8a
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,发现更多精彩内容 >>
提交
a7e4bf8a
编写于
3月 30, 2019
作者:
J
Julien Herr
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use constants to control port values
上级
a66a8933
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
2 deletion
+6
-2
bundles/org.jkiss.utils/src/org/jkiss/utils/StandardConstants.java
...rg.jkiss.utils/src/org/jkiss/utils/StandardConstants.java
+3
-0
plugins/org.jkiss.dbeaver.net.ssh.ui/src/org/jkiss/dbeaver/ui/net/ssh/SSHTunnelConfiguratorUI.java
...org/jkiss/dbeaver/ui/net/ssh/SSHTunnelConfiguratorUI.java
+3
-2
未找到文件。
bundles/org.jkiss.utils/src/org/jkiss/utils/StandardConstants.java
浏览文件 @
a7e4bf8a
...
...
@@ -56,4 +56,7 @@ public abstract class StandardConstants {
public
static
final
String
ENV_JAVA_VENDOR
=
"java.vendor"
;
public
static
final
String
ENV_JAVA_ARCH
=
"sun.arch.data.model"
;
public
static
final
String
ENV_JAVA_CLASSPATH
=
"java.class.path"
;
public
static
final
int
MIN_PORT_VALUE
=
0
;
public
static
final
int
MAX_PORT_VALUE
=
65535
;
}
plugins/org.jkiss.dbeaver.net.ssh.ui/src/org/jkiss/dbeaver/ui/net/ssh/SSHTunnelConfiguratorUI.java
浏览文件 @
a7e4bf8a
...
...
@@ -37,6 +37,7 @@ import org.jkiss.dbeaver.ui.UIUtils;
import
org.jkiss.dbeaver.ui.controls.TextWithOpen
;
import
org.jkiss.dbeaver.ui.controls.TextWithOpenFile
;
import
org.jkiss.dbeaver.utils.GeneralUtils
;
import
org.jkiss.dbeaver.utils.StandardConstants
;
import
org.jkiss.utils.CommonUtils
;
import
java.lang.reflect.InvocationTargetException
;
...
...
@@ -76,7 +77,7 @@ public class SSHTunnelConfiguratorUI implements IObjectPropertyConfigurator<DBWH
Group
settingsGroup
=
UIUtils
.
createControlGroup
(
composite
,
SSHUIMessages
.
model_ssh_configurator_group_settings
,
2
,
GridData
.
FILL_HORIZONTAL
|
GridData
.
VERTICAL_ALIGN_BEGINNING
,
SWT
.
DEFAULT
);
hostText
=
UIUtils
.
createLabelText
(
settingsGroup
,
SSHUIMessages
.
model_ssh_configurator_label_host_ip
,
null
,
SWT
.
BORDER
,
new
GridData
(
GridData
.
FILL_HORIZONTAL
));
//$NON-NLS-2$
portText
=
UIUtils
.
createLabelSpinner
(
settingsGroup
,
SSHUIMessages
.
model_ssh_configurator_label_port
,
SSHConstants
.
DEFAULT_SSH_PORT
,
0
,
65535
);
portText
=
UIUtils
.
createLabelSpinner
(
settingsGroup
,
SSHUIMessages
.
model_ssh_configurator_label_port
,
SSHConstants
.
DEFAULT_SSH_PORT
,
StandardConstants
.
MIN_PORT_VALUE
,
StandardConstants
.
MAX_PORT_VALUE
);
userNameText
=
UIUtils
.
createLabelText
(
settingsGroup
,
SSHUIMessages
.
model_ssh_configurator_label_user_name
,
null
,
SWT
.
BORDER
,
new
GridData
(
GridData
.
FILL_HORIZONTAL
));
//$NON-NLS-2$
authMethodCombo
=
UIUtils
.
createLabelCombo
(
settingsGroup
,
SSHUIMessages
.
model_ssh_configurator_combo_auth_method
,
SWT
.
DROP_DOWN
|
SWT
.
READ_ONLY
);
...
...
@@ -110,7 +111,7 @@ public class SSHTunnelConfiguratorUI implements IObjectPropertyConfigurator<DBWH
for
(
SSHImplementationDescriptor
it
:
SSHImplementationRegistry
.
getInstance
().
getDescriptors
())
{
tunnelImplCombo
.
add
(
it
.
getLabel
());
}
localPortSpinner
=
UIUtils
.
createLabelSpinner
(
advancedGroup
,
SSHUIMessages
.
model_ssh_configurator_label_local_port
,
0
,
Integer
.
MIN_VALUE
,
Integer
.
MAX
_VALUE
);
localPortSpinner
=
UIUtils
.
createLabelSpinner
(
advancedGroup
,
SSHUIMessages
.
model_ssh_configurator_label_local_port
,
0
,
StandardConstants
.
MIN_PORT_VALUE
,
StandardConstants
.
MAX_PORT
_VALUE
);
localPortSpinner
.
setToolTipText
(
SSHUIMessages
.
model_ssh_configurator_label_local_port_description
);
keepAliveText
=
UIUtils
.
createLabelSpinner
(
advancedGroup
,
SSHUIMessages
.
model_ssh_configurator_label_keep_alive
,
0
,
0
,
Integer
.
MAX_VALUE
);
tunnelTimeout
=
UIUtils
.
createLabelSpinner
(
advancedGroup
,
SSHUIMessages
.
model_ssh_configurator_label_tunnel_timeout
,
SSHConstants
.
DEFAULT_CONNECT_TIMEOUT
,
0
,
300000
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录