Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
1056f42e
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,发现更多精彩内容 >>
提交
1056f42e
编写于
6月 16, 2018
作者:
S
serge-rider
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
NEw version dialog redesign (release notes field)
上级
b6b2b894
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
14 deletion
+14
-14
plugins/org.jkiss.dbeaver.core.application/src/org/jkiss/dbeaver/core/application/update/DBeaverVersionChecker.java
...beaver/core/application/update/DBeaverVersionChecker.java
+5
-8
plugins/org.jkiss.dbeaver.core.application/src/org/jkiss/dbeaver/core/application/update/VersionUpdateDialog.java
.../dbeaver/core/application/update/VersionUpdateDialog.java
+9
-6
未找到文件。
plugins/org.jkiss.dbeaver.core.application/src/org/jkiss/dbeaver/core/application/update/DBeaverVersionChecker.java
浏览文件 @
1056f42e
...
...
@@ -102,14 +102,11 @@ public class DBeaverVersionChecker extends AbstractJob {
private
void
showUpdaterDialog
(
final
VersionDescriptor
versionDescriptor
)
{
UIUtils
.
asyncExec
(
new
Runnable
()
{
@Override
public
void
run
()
{
VersionUpdateDialog
dialog
=
new
VersionUpdateDialog
(
UIUtils
.
getActiveWorkbenchShell
(),
versionDescriptor
);
dialog
.
open
();
}
UIUtils
.
asyncExec
(()
->
{
VersionUpdateDialog
dialog
=
new
VersionUpdateDialog
(
UIUtils
.
getActiveWorkbenchShell
(),
versionDescriptor
);
dialog
.
open
();
});
}
}
plugins/org.jkiss.dbeaver.core.application/src/org/jkiss/dbeaver/core/application/update/VersionUpdateDialog.java
浏览文件 @
1056f42e
...
...
@@ -22,10 +22,7 @@ import org.eclipse.swt.SWT;
import
org.eclipse.swt.graphics.Font
;
import
org.eclipse.swt.layout.GridData
;
import
org.eclipse.swt.layout.GridLayout
;
import
org.eclipse.swt.widgets.Composite
;
import
org.eclipse.swt.widgets.Control
;
import
org.eclipse.swt.widgets.Label
;
import
org.eclipse.swt.widgets.Shell
;
import
org.eclipse.swt.widgets.*
;
import
org.eclipse.ui.IWorkbenchWindow
;
import
org.eclipse.ui.PlatformUI
;
import
org.jkiss.dbeaver.core.CoreMessages
;
...
...
@@ -46,6 +43,11 @@ class VersionUpdateDialog extends Dialog {
this
.
newVersion
=
newVersion
;
}
@Override
protected
boolean
isResizable
()
{
return
true
;
}
@Override
protected
Control
createDialogArea
(
Composite
parent
)
{
...
...
@@ -81,10 +83,11 @@ class VersionUpdateDialog extends Dialog {
gd
.
horizontalSpan
=
2
;
notesLabel
.
setLayoutData
(
gd
);
final
Label
notesText
=
new
Label
(
propGroup
,
SWT
.
NONE
);
final
Text
notesText
=
new
Text
(
propGroup
,
SWT
.
READ_ONLY
|
SWT
.
WRAP
|
SWT
.
V_SCROLL
);
notesText
.
setText
(
newVersion
.
getReleaseNotes
());
gd
=
new
GridData
(
GridData
.
FILL_
HORIZONTAL
);
gd
=
new
GridData
(
GridData
.
FILL_
BOTH
);
gd
.
horizontalSpan
=
2
;
gd
.
heightHint
=
notesText
.
getLineHeight
()
*
20
;
notesText
.
setLayoutData
(
gd
);
final
Label
hintLabel
=
new
Label
(
propGroup
,
SWT
.
NONE
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录