Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
eeb26894
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,发现更多精彩内容 >>
提交
eeb26894
编写于
9月 19, 2015
作者:
J
jurgen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Maven local repository
Former-commit-id:
1088a5b8
上级
459e659d
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
16 addition
and
18 deletion
+16
-18
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/maven/MavenRegistry.java
...e/src/org/jkiss/dbeaver/registry/maven/MavenRegistry.java
+0
-1
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/maven/MavenRepository.java
...src/org/jkiss/dbeaver/registry/maven/MavenRepository.java
+1
-3
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/driver/DriverDownloadDialog.java
...jkiss/dbeaver/ui/dialogs/driver/DriverDownloadDialog.java
+10
-4
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/driver/DriverDownloadWizard.java
...jkiss/dbeaver/ui/dialogs/driver/DriverDownloadWizard.java
+4
-2
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/driver/DriverEditDialog.java
...org/jkiss/dbeaver/ui/dialogs/driver/DriverEditDialog.java
+1
-8
未找到文件。
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/maven/MavenRegistry.java
浏览文件 @
eeb26894
...
...
@@ -18,7 +18,6 @@
package
org.jkiss.dbeaver.registry.maven
;
import
org.eclipse.core.runtime.IConfigurationElement
;
import
org.eclipse.core.runtime.IExtensionRegistry
;
import
org.eclipse.core.runtime.Platform
;
import
org.jkiss.code.NotNull
;
import
org.jkiss.code.Nullable
;
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/maven/MavenRepository.java
浏览文件 @
eeb26894
...
...
@@ -84,9 +84,7 @@ public class MavenRepository
if
(!
url
.
endsWith
(
"/"
))
url
+=
"/"
;
this
.
url
=
url
;
this
.
local
=
local
;
if
(!
local
)
{
loadCache
();
}
loadCache
();
}
public
void
flushCache
()
{
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/driver/DriverDownloadDialog.java
浏览文件 @
eeb26894
...
...
@@ -23,7 +23,6 @@ import org.eclipse.swt.widgets.Button;
import
org.eclipse.swt.widgets.Composite
;
import
org.eclipse.swt.widgets.Control
;
import
org.eclipse.swt.widgets.Shell
;
import
org.eclipse.ui.IWorkbenchWindow
;
import
org.jkiss.dbeaver.core.DBeaverUI
;
import
org.jkiss.dbeaver.registry.DriverDescriptor
;
import
org.jkiss.dbeaver.registry.DriverFileDescriptor
;
...
...
@@ -42,9 +41,9 @@ public class DriverDownloadDialog extends WizardDialog
private
boolean
doDownload
=
false
;
DriverDownloadDialog
(
Shell
shell
,
DriverDescriptor
driver
,
List
<
DriverFileDescriptor
>
files
,
boolean
forceDownload
)
DriverDownloadDialog
(
Shell
shell
,
DriverDescriptor
driver
,
List
<
DriverFileDescriptor
>
files
,
boolean
updateVersion
,
boolean
forceDownload
)
{
super
(
shell
,
new
DriverDownloadWizard
(
driver
,
files
,
forceDownload
));
super
(
shell
,
new
DriverDownloadWizard
(
driver
,
files
,
updateVersion
,
forceDownload
));
getWizard
().
init
(
DBeaverUI
.
getActiveWorkbenchWindow
().
getWorkbench
(),
null
);
}
...
...
@@ -116,7 +115,14 @@ public class DriverDownloadDialog extends WizardDialog
}
public
static
boolean
downloadDriverFiles
(
Shell
shell
,
DriverDescriptor
driver
,
List
<
DriverFileDescriptor
>
files
,
boolean
forceDownload
)
{
DriverDownloadDialog
dialog
=
new
DriverDownloadDialog
(
shell
,
driver
,
files
,
forceDownload
);
DriverDownloadDialog
dialog
=
new
DriverDownloadDialog
(
shell
,
driver
,
files
,
false
,
forceDownload
);
dialog
.
setMinimumPageSize
(
100
,
100
);
dialog
.
open
();
return
dialog
.
doDownload
;
}
public
static
boolean
updateDriverFiles
(
Shell
shell
,
DriverDescriptor
driver
,
List
<
DriverFileDescriptor
>
files
,
boolean
forceDownload
)
{
DriverDownloadDialog
dialog
=
new
DriverDownloadDialog
(
shell
,
driver
,
files
,
true
,
forceDownload
);
dialog
.
setMinimumPageSize
(
100
,
100
);
dialog
.
open
();
return
dialog
.
doDownload
;
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/driver/DriverDownloadWizard.java
浏览文件 @
eeb26894
...
...
@@ -36,14 +36,16 @@ public class DriverDownloadWizard extends Wizard implements IExportWizard {
private
DriverDescriptor
driver
;
private
List
<
DriverFileDescriptor
>
files
;
private
boolean
updateVersion
;
private
boolean
forceDownload
;
private
DriverDownloadPage
downloadPage
;
public
DriverDownloadWizard
(
@NotNull
DriverDescriptor
driver
,
List
<
DriverFileDescriptor
>
files
,
boolean
forceDownload
)
{
public
DriverDownloadWizard
(
@NotNull
DriverDescriptor
driver
,
List
<
DriverFileDescriptor
>
files
,
boolean
updateVersion
,
boolean
forceDownload
)
{
this
.
driver
=
driver
;
this
.
files
=
files
;
this
.
updateVersion
=
updateVersion
;
this
.
forceDownload
=
forceDownload
;
setWindowTitle
(
"Setup driver files"
);
setWindowTitle
(
updateVersion
?
"Update driver files"
:
"Setup driver files"
);
setNeedsProgressMonitor
(
hasPredefinedFiles
());
loadSettings
();
}
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/driver/DriverEditDialog.java
浏览文件 @
eeb26894
...
...
@@ -479,10 +479,7 @@ public class DriverEditDialog extends HelpEnabledDialog
updateVersionButton
=
UIUtils
.
createToolButton
(
libsControlGroup
,
CoreMessages
.
dialog_edit_driver_button_update_version
,
new
SelectionAdapter
()
{
@Override
public
void
widgetSelected
(
SelectionEvent
e
)
{
// driver.updateFiles();
// DriverDownloadDialog.downloadDriverFiles(getShell(), driver, Collections.singletonList(lib), true);
DriverFileDescriptor
selectedLib
=
getSelectedLibrary
();
updateArtifactVersion
(
selectedLib
);
DriverDownloadDialog
.
updateDriverFiles
(
getShell
(),
driver
,
libList
,
true
);
}
});
...
...
@@ -541,10 +538,6 @@ public class DriverEditDialog extends HelpEnabledDialog
libsTab
.
setControl
(
libsGroup
);
}
private
void
updateArtifactVersion
(
DriverFileDescriptor
lib
)
{
DriverDownloadDialog
.
downloadDriverFiles
(
getShell
(),
driver
,
Collections
.
singletonList
(
lib
),
true
);
}
private
void
createParametersTab
(
TabFolder
group
)
{
Composite
paramsGroup
=
new
Composite
(
group
,
SWT
.
NONE
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录