Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
d5efa37a
D
dbeaver
项目概览
suliangchun
/
dbeaver
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
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,发现更多精彩内容 >>
提交
d5efa37a
编写于
9月 30, 2019
作者:
S
Serge Rider
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Stream consumer settings page layout fix
Former-commit-id:
9aa7c9a0
上级
289ff753
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
7 deletion
+19
-7
plugins/org.jkiss.dbeaver.data.transfer.ui/src/org/jkiss/dbeaver/tools/transfer/ui/pages/stream/StreamConsumerPageSettings.java
.../transfer/ui/pages/stream/StreamConsumerPageSettings.java
+12
-5
plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/task/TaskConfigurationWizardPageTask.java
...kiss/dbeaver/ui/task/TaskConfigurationWizardPageTask.java
+4
-1
plugins/org.jkiss.dbeaver.ui/src/org/jkiss/dbeaver/ui/UIUtils.java
...rg.jkiss.dbeaver.ui/src/org/jkiss/dbeaver/ui/UIUtils.java
+3
-1
未找到文件。
plugins/org.jkiss.dbeaver.data.transfer.ui/src/org/jkiss/dbeaver/tools/transfer/ui/pages/stream/StreamConsumerPageSettings.java
浏览文件 @
d5efa37a
...
...
@@ -21,6 +21,7 @@ import org.eclipse.swt.SWT;
import
org.eclipse.swt.events.SelectionAdapter
;
import
org.eclipse.swt.events.SelectionEvent
;
import
org.eclipse.swt.layout.GridData
;
import
org.eclipse.swt.layout.GridLayout
;
import
org.eclipse.swt.widgets.Combo
;
import
org.eclipse.swt.widgets.Composite
;
import
org.eclipse.swt.widgets.Label
;
...
...
@@ -74,7 +75,9 @@ public class StreamConsumerPageSettings extends ActiveWizardPage<DataTransferWiz
{
Composite
generalSettings
=
UIUtils
.
createControlGroup
(
composite
,
DTMessages
.
data_transfer_wizard_settings_group_general
,
5
,
GridData
.
FILL_HORIZONTAL
,
0
);
((
GridLayout
)
generalSettings
.
getLayout
()).
verticalSpacing
=
0
;
((
GridLayout
)
generalSettings
.
getLayout
()).
marginHeight
=
0
;
((
GridLayout
)
generalSettings
.
getLayout
()).
marginWidth
=
0
;
{
formatProfilesCombo
=
UIUtils
.
createLabelCombo
(
generalSettings
,
DTMessages
.
data_transfer_wizard_settings_label_formatting
,
SWT
.
DROP_DOWN
|
SWT
.
READ_ONLY
);
GridData
gd
=
new
GridData
(
GridData
.
HORIZONTAL_ALIGN_BEGINNING
|
GridData
.
FILL_HORIZONTAL
);
...
...
@@ -113,7 +116,12 @@ public class StreamConsumerPageSettings extends ActiveWizardPage<DataTransferWiz
reloadFormatProfiles
();
lobExtractType
=
UIUtils
.
createLabelCombo
(
generalSettings
,
DTMessages
.
data_transfer_wizard_settings_label_binaries
,
SWT
.
DROP_DOWN
|
SWT
.
READ_ONLY
);
UIUtils
.
createControlLabel
(
generalSettings
,
DTMessages
.
data_transfer_wizard_settings_label_binaries
);
Composite
binariesPanel
=
UIUtils
.
createComposite
(
generalSettings
,
4
);
gd
=
new
GridData
(
GridData
.
FILL_HORIZONTAL
);
gd
.
horizontalSpan
=
4
;
binariesPanel
.
setLayoutData
(
gd
);
lobExtractType
=
new
Combo
(
binariesPanel
,
SWT
.
DROP_DOWN
|
SWT
.
READ_ONLY
);
lobExtractType
.
setItems
(
DTMessages
.
data_transfer_wizard_settings_binaries_item_set_to_null
,
DTMessages
.
data_transfer_wizard_settings_binaries_item_save_to_file
,
...
...
@@ -130,8 +138,8 @@ public class StreamConsumerPageSettings extends ActiveWizardPage<DataTransferWiz
}
});
lobEncodingLabel
=
UIUtils
.
createControlLabel
(
generalSettings
,
DTMessages
.
data_transfer_wizard_settings_label_encoding
);
lobEncodingCombo
=
new
Combo
(
generalSettings
,
SWT
.
DROP_DOWN
|
SWT
.
READ_ONLY
);
lobEncodingLabel
=
UIUtils
.
createControlLabel
(
binariesPanel
,
DTMessages
.
data_transfer_wizard_settings_label_encoding
);
lobEncodingCombo
=
new
Combo
(
binariesPanel
,
SWT
.
DROP_DOWN
|
SWT
.
READ_ONLY
);
lobEncodingCombo
.
setItems
(
"Base64"
,
//$NON-NLS-1$
"Hex"
,
//$NON-NLS-1$
...
...
@@ -148,7 +156,6 @@ public class StreamConsumerPageSettings extends ActiveWizardPage<DataTransferWiz
}
}
});
UIUtils
.
createEmptyLabel
(
generalSettings
,
1
,
1
);
}
}
...
...
plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/task/TaskConfigurationWizardPageTask.java
浏览文件 @
d5efa37a
...
...
@@ -188,7 +188,10 @@ class TaskConfigurationWizardPageTask extends ActiveWizardPage
modifyListener
.
modifyText
(
e
);
});
taskDescriptionText
=
UIUtils
.
createLabelText
(
formPanel
,
"Description"
,
task
==
null
?
""
:
CommonUtils
.
notEmpty
(
task
.
getDescription
()),
SWT
.
BORDER
|
SWT
.
MULTI
|
SWT
.
V_SCROLL
);
UIUtils
.
createControlLabel
(
formPanel
,
"Description"
).
setLayoutData
(
new
GridData
(
GridData
.
VERTICAL_ALIGN_BEGINNING
));
taskDescriptionText
=
new
Text
(
formPanel
,
SWT
.
BORDER
|
SWT
.
MULTI
|
SWT
.
V_SCROLL
);
taskDescriptionText
.
setText
(
task
==
null
?
""
:
CommonUtils
.
notEmpty
(
task
.
getDescription
()));
taskDescriptionText
.
setLayoutData
(
new
GridData
(
GridData
.
FILL_HORIZONTAL
));
((
GridData
)
taskDescriptionText
.
getLayoutData
()).
heightHint
=
taskDescriptionText
.
getLineHeight
()
*
5
;
taskDescriptionText
.
addModifyListener
(
e
->
{
taskDescription
=
taskDescriptionText
.
getText
();
...
...
plugins/org.jkiss.dbeaver.ui/src/org/jkiss/dbeaver/ui/UIUtils.java
浏览文件 @
d5efa37a
...
...
@@ -532,7 +532,9 @@ public class UIUtils {
public
static
Label
createControlLabel
(
Composite
parent
,
String
label
,
int
hSpan
)
{
Label
textLabel
=
new
Label
(
parent
,
SWT
.
NONE
);
textLabel
.
setText
(
label
+
": "
);
//$NON-NLS-1$
GridData
gd
=
new
GridData
(
GridData
.
VERTICAL_ALIGN_BEGINNING
/*| GridData.HORIZONTAL_ALIGN_END*/
);
// Vert align center. Because height of single line control may differ from label height. This makes form ugly.
// For multiline texts we need to set vert align manually.
GridData
gd
=
new
GridData
(
GridData
.
VERTICAL_ALIGN_CENTER
/*| GridData.HORIZONTAL_ALIGN_END*/
);
gd
.
horizontalSpan
=
hSpan
;
textLabel
.
setLayoutData
(
gd
);
return
textLabel
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录