Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
0a27e689
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,发现更多精彩内容 >>
提交
0a27e689
编写于
12月 06, 2015
作者:
S
Serge Rider
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
UI controls refactoring
上级
e4c0a491
变更
17
展开全部
隐藏空白更改
内联
并排
Showing
17 changed file
with
1154 addition
and
1159 deletion
+1154
-1159
plugins/org.jkiss.dbeaver.core/plugin.properties
plugins/org.jkiss.dbeaver.core/plugin.properties
+3
-3
plugins/org.jkiss.dbeaver.core/plugin_ru.properties
plugins/org.jkiss.dbeaver.core/plugin_ru.properties
+3
-3
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/ColumnInfoPanel.java
...ore/src/org/jkiss/dbeaver/ui/dialogs/ColumnInfoPanel.java
+1
-1
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/connection/ClientHomesPanel.java
...jkiss/dbeaver/ui/dialogs/connection/ClientHomesPanel.java
+330
-330
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/connection/ClientHomesSelector.java
...ss/dbeaver/ui/dialogs/connection/ClientHomesSelector.java
+152
-152
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/connection/ConnectionPageDriver.java
...s/dbeaver/ui/dialogs/connection/ConnectionPageDriver.java
+2
-2
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/connection/ConnectionPropertiesControl.java
...er/ui/dialogs/connection/ConnectionPropertiesControl.java
+180
-180
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/connection/DriverPropertiesDialogPage.java
...ver/ui/dialogs/connection/DriverPropertiesDialogPage.java
+0
-2
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/connection/MigrateConnectionWizard.java
...beaver/ui/dialogs/connection/MigrateConnectionWizard.java
+1
-1
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/data/ValueViewDialog.java
...rc/org/jkiss/dbeaver/ui/dialogs/data/ValueViewDialog.java
+1
-2
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/driver/DriverEditDialog.java
...org/jkiss/dbeaver/ui/dialogs/driver/DriverEditDialog.java
+2
-2
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/driver/DriverManagerDialog.java
.../jkiss/dbeaver/ui/dialogs/driver/DriverManagerDialog.java
+0
-2
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/driver/DriverTreeControl.java
...rg/jkiss/dbeaver/ui/dialogs/driver/DriverTreeControl.java
+74
-74
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/driver/DriverTreeViewer.java
...org/jkiss/dbeaver/ui/dialogs/driver/DriverTreeViewer.java
+402
-402
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/content/ContentEditor.java
...c/org/jkiss/dbeaver/ui/editors/content/ContentEditor.java
+1
-1
plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/views/MySQLConnectionPage.java
...rg/jkiss/dbeaver/ext/mysql/views/MySQLConnectionPage.java
+1
-1
plugins/org.jkiss.dbeaver.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/views/OracleConnectionPage.java
.../jkiss/dbeaver/ext/oracle/views/OracleConnectionPage.java
+1
-1
未找到文件。
plugins/org.jkiss.dbeaver.core/plugin.properties
浏览文件 @
0a27e689
...
...
@@ -291,9 +291,9 @@ meta.org.jkiss.dbeaver.registry.DriverDescriptor.name.name=Driver Name
meta.org.jkiss.dbeaver.registry.DriverDescriptor.description.name
=
Description
meta.org.jkiss.dbeaver.registry.DriverDescriptor.driverClassName.name
=
Driver Class
meta.org.jkiss.dbeaver.registry.DriverDescriptor.sampleURL.name
=
URL
meta.org.jkiss.dbeaver.ui.
control
s.ColumnInfoPanel$
CellKeyInfo.type.name
=
Type
meta.org.jkiss.dbeaver.ui.
control
s.ColumnInfoPanel$
CellKeyInfo.name.name
=
Name
meta.org.jkiss.dbeaver.ui.
control
s.ColumnInfoPanel$
CellKeyInfo.columns.name
=
Columns
meta.org.jkiss.dbeaver.ui.
dialog
s.ColumnInfoPanel$
CellKeyInfo.type.name
=
Type
meta.org.jkiss.dbeaver.ui.
dialog
s.ColumnInfoPanel$
CellKeyInfo.name.name
=
Name
meta.org.jkiss.dbeaver.ui.
dialog
s.ColumnInfoPanel$
CellKeyInfo.columns.name
=
Columns
meta.org.jkiss.dbeaver.ui.search.data.SearchDataObject.name.name
=
Name
meta.org.jkiss.dbeaver.ui.search.data.SearchDataObject.foundRows.name
=
Rows Found (>=)
...
...
plugins/org.jkiss.dbeaver.core/plugin_ru.properties
浏览文件 @
0a27e689
...
...
@@ -254,9 +254,9 @@ meta.org.jkiss.dbeaver.registry.DriverDescriptor.name.name=\u0418\u043C\u044F \u
meta.org.jkiss.dbeaver.registry.DriverDescriptor.description.name=
\u
041E
\u
043F
\u0438\u0441\u0430\u
043D
\u0438\u0435
meta.org.jkiss.dbeaver.registry.DriverDescriptor.driverClassName.name=
\u
041A
\u
043B
\u0430\u0441\u0441
\u0414\u0440\u0430\u0439\u0432\u0435\u0440\u0430
meta.org.jkiss.dbeaver.registry.DriverDescriptor.sampleURL.name=URL
meta.org.jkiss.dbeaver.ui.
control
s.ColumnInfoPanel$
CellKeyInfo.type.name
=
\u0422\u0438\u
043F
meta.org.jkiss.dbeaver.ui.
control
s.ColumnInfoPanel$
CellKeyInfo.name.name
=
\u0418\u
043C
\u
044F
meta.org.jkiss.dbeaver.ui.
control
s.ColumnInfoPanel$
CellKeyInfo.columns.name
=
\u
041A
\u
043E
\u
043B
\u
043E
\u
043D
\u
043A
\u0438
meta.org.jkiss.dbeaver.ui.
dialog
s.ColumnInfoPanel$
CellKeyInfo.type.name
=
\u0422\u0438\u
043F
meta.org.jkiss.dbeaver.ui.
dialog
s.ColumnInfoPanel$
CellKeyInfo.name.name
=
\u0418\u
043C
\u
044F
meta.org.jkiss.dbeaver.ui.
dialog
s.ColumnInfoPanel$
CellKeyInfo.columns.name
=
\u
041A
\u
043E
\u
043B
\u
043E
\u
043D
\u
043A
\u0438
command.org.jkiss.dbeaver.core.resultset.row.edit.inline.name=
\u0418\u0437\u
043C
\u0435\u
043D
\u0438\u0442\u
044C
command.org.jkiss.dbeaver.core.resultset.row.edit.inline.description
=
\u0418\u0437\u
043C
\u0435\u
043D
\u0438\u0442\u
044C
\u0438\u0441\u
043F
\u
043E
\u
043B
\u
044C
\u0437\u0443\u
044F
\u0432\u0441\u0442\u0440\u
043E
\u0435\u
043D
\u
043D
\u
044B
\u0435
\u0440\u0435\u0434\u0430\u
043A
\u0442\u
043E
\u0440
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/
control
s/ColumnInfoPanel.java
→
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/
dialog
s/ColumnInfoPanel.java
浏览文件 @
0a27e689
...
...
@@ -16,7 +16,7 @@
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
package
org.jkiss.dbeaver.ui.
control
s
;
package
org.jkiss.dbeaver.ui.
dialog
s
;
import
org.eclipse.swt.SWT
;
import
org.eclipse.swt.layout.FillLayout
;
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/
controls
/ClientHomesPanel.java
→
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/
dialogs/connection
/ClientHomesPanel.java
浏览文件 @
0a27e689
此差异已折叠。
点击以展开。
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/
controls
/ClientHomesSelector.java
→
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/
dialogs/connection
/ClientHomesSelector.java
浏览文件 @
0a27e689
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2015 Serge Rieder (serge@jkiss.org)
* Copyright (C) 2011-2012 Eugene Fradkin (eugene.fradkin@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License (version 2)
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
package
org.jkiss.dbeaver.ui.
controls
;
import
org.jkiss.dbeaver.Log
;
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.jkiss.dbeaver.core.CoreMessages
;
import
org.jkiss.dbeaver.model.connection.DBPClientHome
;
import
org.jkiss.dbeaver.model.connection.DBPDriver
;
import
org.jkiss.dbeaver.ui.UIUtils
;
import
java.util.ArrayList
;
import
java.util.LinkedHashSet
;
import
java.util.List
;
import
java.util.Set
;
/**
* ClientHomesSelector
*/
public
class
ClientHomesSelector
extends
Composite
{
static
final
Log
log
=
Log
.
getLog
(
ClientHomesSelector
.
class
);
private
Combo
homesCombo
;
//private Label versionLabel;
private
DBPDriver
driver
;
private
List
<
String
>
homeIds
=
new
ArrayList
<>();
private
String
currentHomeId
;
public
ClientHomesSelector
(
Composite
parent
,
int
style
,
String
title
)
{
super
(
parent
,
style
);
this
.
setLayout
(
new
GridLayout
(
2
,
false
));
UIUtils
.
createControlLabel
(
this
,
title
);
//label.setFont(UIUtils.makeBoldFont(label.getFont()));
homesCombo
=
new
Combo
(
this
,
SWT
.
READ_ONLY
);
//directoryDialog = new DirectoryDialog(selectorContainer.getShell(), SWT.OPEN);
GridData
gd
=
new
GridData
(
GridData
.
FILL_HORIZONTAL
);
gd
.
grabExcessHorizontalSpace
=
true
;
homesCombo
.
setLayoutData
(
gd
);
homesCombo
.
addSelectionListener
(
new
SelectionAdapter
()
{
@Override
public
void
widgetSelected
(
SelectionEvent
e
)
{
if
(
homesCombo
.
getSelectionIndex
()
==
homesCombo
.
getItemCount
()
-
1
)
{
manageHomes
();
}
else
{
currentHomeId
=
homeIds
.
get
(
homesCombo
.
getSelectionIndex
());
}
displayClientVersion
();
handleHomeChange
();
}
});
// versionLabel = new Label(this, SWT.CENTER);
// gd = new GridData();
// gd.widthHint = 60;
// versionLabel.setLayoutData(gd);
}
private
void
manageHomes
()
{
String
newHomeId
=
ClientHomesPanel
.
chooseClientHome
(
getShell
(),
driver
);
if
(
newHomeId
!=
null
)
{
currentHomeId
=
newHomeId
;
}
populateHomes
(
driver
,
currentHomeId
);
}
public
void
populateHomes
(
DBPDriver
driver
,
String
currentHome
)
{
this
.
driver
=
driver
;
this
.
currentHomeId
=
currentHome
;
this
.
homesCombo
.
removeAll
();
this
.
homeIds
.
clear
();
Set
<
String
>
homes
=
new
LinkedHashSet
<>(
driver
.
getClientManager
().
findClientHomeIds
());
homes
.
addAll
(
driver
.
getClientHomeIds
());
for
(
String
homeId
:
homes
)
{
DBPClientHome
home
=
driver
.
getClientHome
(
homeId
);
if
(
home
!=
null
)
{
homesCombo
.
add
(
home
.
getDisplayName
());
homeIds
.
add
(
home
.
getHomeId
());
if
(
currentHomeId
!=
null
&&
home
.
getHomeId
().
equals
(
currentHomeId
))
{
homesCombo
.
select
(
homesCombo
.
getItemCount
()
-
1
);
}
}
}
this
.
homesCombo
.
add
(
CoreMessages
.
controls_client_home_selector_browse
);
displayClientVersion
();
}
private
void
displayClientVersion
()
{
/*
DBPClientHome clientHome = currentHomeId == null ? null : driver.getClientHome(currentHomeId);
if (clientHome != null) {
try {
// display client version
if (clientHome.getProductVersion() != null) {
versionLabel.setText(clientHome.getProductVersion());
} else {
versionLabel.setText(clientHome.getProductName());
}
} catch (DBException e) {
log.error(e);
}
} else {
versionLabel.setText(""); //$NON-NLS-1$
}
*/
}
protected
void
handleHomeChange
()
{
}
public
String
getSelectedHome
()
{
return
currentHomeId
;
}
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2015 Serge Rieder (serge@jkiss.org)
* Copyright (C) 2011-2012 Eugene Fradkin (eugene.fradkin@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License (version 2)
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
package
org.jkiss.dbeaver.ui.
dialogs.connection
;
import
org.jkiss.dbeaver.Log
;
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.jkiss.dbeaver.core.CoreMessages
;
import
org.jkiss.dbeaver.model.connection.DBPClientHome
;
import
org.jkiss.dbeaver.model.connection.DBPDriver
;
import
org.jkiss.dbeaver.ui.UIUtils
;
import
java.util.ArrayList
;
import
java.util.LinkedHashSet
;
import
java.util.List
;
import
java.util.Set
;
/**
* ClientHomesSelector
*/
public
class
ClientHomesSelector
extends
Composite
{
static
final
Log
log
=
Log
.
getLog
(
ClientHomesSelector
.
class
);
private
Combo
homesCombo
;
//private Label versionLabel;
private
DBPDriver
driver
;
private
List
<
String
>
homeIds
=
new
ArrayList
<>();
private
String
currentHomeId
;
public
ClientHomesSelector
(
Composite
parent
,
int
style
,
String
title
)
{
super
(
parent
,
style
);
this
.
setLayout
(
new
GridLayout
(
2
,
false
));
UIUtils
.
createControlLabel
(
this
,
title
);
//label.setFont(UIUtils.makeBoldFont(label.getFont()));
homesCombo
=
new
Combo
(
this
,
SWT
.
READ_ONLY
);
//directoryDialog = new DirectoryDialog(selectorContainer.getShell(), SWT.OPEN);
GridData
gd
=
new
GridData
(
GridData
.
FILL_HORIZONTAL
);
gd
.
grabExcessHorizontalSpace
=
true
;
homesCombo
.
setLayoutData
(
gd
);
homesCombo
.
addSelectionListener
(
new
SelectionAdapter
()
{
@Override
public
void
widgetSelected
(
SelectionEvent
e
)
{
if
(
homesCombo
.
getSelectionIndex
()
==
homesCombo
.
getItemCount
()
-
1
)
{
manageHomes
();
}
else
{
currentHomeId
=
homeIds
.
get
(
homesCombo
.
getSelectionIndex
());
}
displayClientVersion
();
handleHomeChange
();
}
});
// versionLabel = new Label(this, SWT.CENTER);
// gd = new GridData();
// gd.widthHint = 60;
// versionLabel.setLayoutData(gd);
}
private
void
manageHomes
()
{
String
newHomeId
=
ClientHomesPanel
.
chooseClientHome
(
getShell
(),
driver
);
if
(
newHomeId
!=
null
)
{
currentHomeId
=
newHomeId
;
}
populateHomes
(
driver
,
currentHomeId
);
}
public
void
populateHomes
(
DBPDriver
driver
,
String
currentHome
)
{
this
.
driver
=
driver
;
this
.
currentHomeId
=
currentHome
;
this
.
homesCombo
.
removeAll
();
this
.
homeIds
.
clear
();
Set
<
String
>
homes
=
new
LinkedHashSet
<>(
driver
.
getClientManager
().
findClientHomeIds
());
homes
.
addAll
(
driver
.
getClientHomeIds
());
for
(
String
homeId
:
homes
)
{
DBPClientHome
home
=
driver
.
getClientHome
(
homeId
);
if
(
home
!=
null
)
{
homesCombo
.
add
(
home
.
getDisplayName
());
homeIds
.
add
(
home
.
getHomeId
());
if
(
currentHomeId
!=
null
&&
home
.
getHomeId
().
equals
(
currentHomeId
))
{
homesCombo
.
select
(
homesCombo
.
getItemCount
()
-
1
);
}
}
}
this
.
homesCombo
.
add
(
CoreMessages
.
controls_client_home_selector_browse
);
displayClientVersion
();
}
private
void
displayClientVersion
()
{
/*
DBPClientHome clientHome = currentHomeId == null ? null : driver.getClientHome(currentHomeId);
if (clientHome != null) {
try {
// display client version
if (clientHome.getProductVersion() != null) {
versionLabel.setText(clientHome.getProductVersion());
} else {
versionLabel.setText(clientHome.getProductName());
}
} catch (DBException e) {
log.error(e);
}
} else {
versionLabel.setText(""); //$NON-NLS-1$
}
*/
}
protected
void
handleHomeChange
()
{
}
public
String
getSelectedHome
()
{
return
currentHomeId
;
}
}
\ No newline at end of file
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/connection/ConnectionPageDriver.java
浏览文件 @
0a27e689
...
...
@@ -26,9 +26,9 @@ import org.jkiss.dbeaver.registry.DataSourceProviderDescriptor;
import
org.jkiss.dbeaver.registry.driver.DriverDescriptor
;
import
org.jkiss.dbeaver.ui.IHelpContextIds
;
import
org.jkiss.dbeaver.ui.UIUtils
;
import
org.jkiss.dbeaver.ui.controls.DriverTreeControl
;
import
org.jkiss.dbeaver.ui.controls.DriverTreeViewer
;
import
org.jkiss.dbeaver.ui.dialogs.ActiveWizardPage
;
import
org.jkiss.dbeaver.ui.dialogs.driver.DriverTreeControl
;
import
org.jkiss.dbeaver.ui.dialogs.driver.DriverTreeViewer
;
/**
* Driver selection page
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/
controls
/ConnectionPropertiesControl.java
→
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/
dialogs/connection
/ConnectionPropertiesControl.java
浏览文件 @
0a27e689
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2015 Serge Rieder (serge@jkiss.org)
* Copyright (C) 2011-2012 Eugene Fradkin (eugene.fradkin@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License (version 2)
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
package
org.jkiss.dbeaver.ui.
controls
;
import
org.jkiss.dbeaver.Log
;
import
org.eclipse.jface.action.Action
;
import
org.eclipse.jface.action.IMenuManager
;
import
org.eclipse.swt.widgets.Composite
;
import
org.jkiss.dbeaver.DBException
;
import
org.jkiss.dbeaver.core.CoreMessages
;
import
org.jkiss.dbeaver.model.DBConstants
;
import
org.jkiss.dbeaver.model.connection.DBPConnectionConfiguration
;
import
org.jkiss.dbeaver.model.connection.DBPDriver
;
import
org.jkiss.dbeaver.model.DBPPropertyDescriptor
;
import
org.jkiss.dbeaver.model.runtime.DBRRunnableContext
;
import
org.jkiss.dbeaver.ui.dialogs.EnterNameDialog
;
import
org.jkiss.dbeaver.model.impl.PropertyDescriptor
;
import
org.jkiss.dbeaver.runtime.properties.PropertySourceCustom
;
import
org.jkiss.dbeaver.ui.properties.PropertyTreeViewer
;
import
org.jkiss.utils.CommonUtils
;
import
java.util.*
;
/**
* Connection properties control
*/
public
class
ConnectionPropertiesControl
extends
PropertyTreeViewer
{
static
final
Log
log
=
Log
.
getLog
(
ConnectionPropertiesControl
.
class
);
public
static
final
String
USER_PROPERTIES_CATEGORY
=
CoreMessages
.
controls_connection_properties_category_user_properties
;
private
List
<
DBPPropertyDescriptor
>
driverProvidedProperties
;
private
List
<
DBPPropertyDescriptor
>
customProperties
;
public
ConnectionPropertiesControl
(
Composite
parent
,
int
style
)
{
super
(
parent
,
style
);
setExpandSingleRoot
(
false
);
}
public
PropertySourceCustom
makeProperties
(
DBRRunnableContext
runnableContext
,
DBPDriver
driver
,
DBPConnectionConfiguration
connectionInfo
)
{
Map
<
Object
,
Object
>
connectionProps
=
new
HashMap
<>();
connectionProps
.
putAll
(
driver
.
getConnectionProperties
());
connectionProps
.
putAll
(
connectionInfo
.
getProperties
());
driverProvidedProperties
=
null
;
customProperties
=
null
;
loadDriverProperties
(
runnableContext
,
driver
,
connectionInfo
);
loadCustomProperties
(
driver
,
connectionProps
);
return
new
PropertySourceCustom
(
getAllProperties
(
driver
,
true
),
connectionProps
);
}
public
PropertySourceCustom
makeProperties
(
DBPDriver
driver
,
Map
<
Object
,
Object
>
properties
)
{
driverProvidedProperties
=
null
;
customProperties
=
null
;
loadCustomProperties
(
driver
,
properties
);
return
new
PropertySourceCustom
(
getAllProperties
(
driver
,
true
),
properties
);
}
@Override
protected
String
[]
getCustomCategories
()
{
return
new
String
[]
{
USER_PROPERTIES_CATEGORY
};
}
@Override
protected
void
contributeContextMenu
(
IMenuManager
manager
,
final
Object
node
,
final
String
category
,
final
DBPPropertyDescriptor
property
)
{
boolean
isCustom
=
USER_PROPERTIES_CATEGORY
.
equals
(
category
);
if
(
isCustom
)
{
manager
.
add
(
new
Action
(
CoreMessages
.
controls_connection_properties_action_add_property
)
{
@Override
public
void
run
()
{
createNewProperty
(
node
,
category
);
}
});
if
(
property
!=
null
)
{
manager
.
add
(
new
Action
(
CoreMessages
.
controls_connection_properties_action_remove_property
)
{
@Override
public
void
run
()
{
removeProperty
(
node
);
}
});
}
}
}
private
void
createNewProperty
(
Object
node
,
String
category
)
{
// Ask user for new property name
String
propName
=
EnterNameDialog
.
chooseName
(
getControl
().
getShell
(),
CoreMessages
.
controls_connection_properties_dialog_new_property_title
);
if
(
propName
!=
null
)
{
// Check property name (must be unique
addProperty
(
node
,
new
PropertyDescriptor
(
category
,
propName
,
propName
,
null
,
null
,
false
,
null
,
null
,
true
));
}
}
private
List
<
DBPPropertyDescriptor
>
getAllProperties
(
DBPDriver
driver
,
boolean
includeCustom
)
{
List
<
DBPPropertyDescriptor
>
propertyDescriptors
=
new
ArrayList
<>();
propertyDescriptors
.
addAll
(
driver
.
getConnectionPropertyDescriptors
());
if
(
driverProvidedProperties
!=
null
)
{
propertyDescriptors
.
addAll
(
driverProvidedProperties
);
}
if
(
includeCustom
&&
customProperties
!=
null
)
{
propertyDescriptors
.
addAll
(
customProperties
);
}
return
propertyDescriptors
;
}
private
void
loadDriverProperties
(
DBRRunnableContext
runnableContext
,
DBPDriver
driver
,
DBPConnectionConfiguration
connectionInfo
)
{
try
{
final
DBPPropertyDescriptor
[]
connectionsProps
=
driver
.
getDataSourceProvider
().
getConnectionProperties
(
runnableContext
,
driver
,
connectionInfo
);
driverProvidedProperties
=
new
ArrayList
<>();
if
(
connectionsProps
!=
null
)
{
Collections
.
addAll
(
driverProvidedProperties
,
connectionsProps
);
}
}
catch
(
DBException
e
)
{
log
.
warn
(
"Can't load driver properties"
,
e
);
//$NON-NLS-1$
}
}
private
void
loadCustomProperties
(
DBPDriver
driver
,
Map
<
Object
,
Object
>
properties
)
{
// Collect all driver (and all other) properties
Set
<
String
>
propNames
=
new
TreeSet
<>();
List
<
DBPPropertyDescriptor
>
allProperties
=
getAllProperties
(
driver
,
false
);
for
(
DBPPropertyDescriptor
prop
:
allProperties
)
{
propNames
.
add
(
CommonUtils
.
toString
(
prop
.
getId
()));
}
customProperties
=
new
ArrayList
<>();
// Find prop values which are not from driver
for
(
Object
propId
:
properties
.
keySet
())
{
final
String
propName
=
propId
.
toString
();
if
(
propName
.
startsWith
(
DBConstants
.
INTERNAL_PROP_PREFIX
))
{
continue
;
}
if
(!
propNames
.
contains
(
propName
))
{
customProperties
.
add
(
new
PropertyDescriptor
(
USER_PROPERTIES_CATEGORY
,
propName
,
propName
,
null
,
String
.
class
,
false
,
null
,
null
,
true
));
}
}
}
}
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2015 Serge Rieder (serge@jkiss.org)
* Copyright (C) 2011-2012 Eugene Fradkin (eugene.fradkin@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License (version 2)
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
package
org.jkiss.dbeaver.ui.
dialogs.connection
;
import
org.jkiss.dbeaver.Log
;
import
org.eclipse.jface.action.Action
;
import
org.eclipse.jface.action.IMenuManager
;
import
org.eclipse.swt.widgets.Composite
;
import
org.jkiss.dbeaver.DBException
;
import
org.jkiss.dbeaver.core.CoreMessages
;
import
org.jkiss.dbeaver.model.DBConstants
;
import
org.jkiss.dbeaver.model.connection.DBPConnectionConfiguration
;
import
org.jkiss.dbeaver.model.connection.DBPDriver
;
import
org.jkiss.dbeaver.model.DBPPropertyDescriptor
;
import
org.jkiss.dbeaver.model.runtime.DBRRunnableContext
;
import
org.jkiss.dbeaver.ui.dialogs.EnterNameDialog
;
import
org.jkiss.dbeaver.model.impl.PropertyDescriptor
;
import
org.jkiss.dbeaver.runtime.properties.PropertySourceCustom
;
import
org.jkiss.dbeaver.ui.properties.PropertyTreeViewer
;
import
org.jkiss.utils.CommonUtils
;
import
java.util.*
;
/**
* Connection properties control
*/
public
class
ConnectionPropertiesControl
extends
PropertyTreeViewer
{
static
final
Log
log
=
Log
.
getLog
(
ConnectionPropertiesControl
.
class
);
public
static
final
String
USER_PROPERTIES_CATEGORY
=
CoreMessages
.
controls_connection_properties_category_user_properties
;
private
List
<
DBPPropertyDescriptor
>
driverProvidedProperties
;
private
List
<
DBPPropertyDescriptor
>
customProperties
;
public
ConnectionPropertiesControl
(
Composite
parent
,
int
style
)
{
super
(
parent
,
style
);
setExpandSingleRoot
(
false
);
}
public
PropertySourceCustom
makeProperties
(
DBRRunnableContext
runnableContext
,
DBPDriver
driver
,
DBPConnectionConfiguration
connectionInfo
)
{
Map
<
Object
,
Object
>
connectionProps
=
new
HashMap
<>();
connectionProps
.
putAll
(
driver
.
getConnectionProperties
());
connectionProps
.
putAll
(
connectionInfo
.
getProperties
());
driverProvidedProperties
=
null
;
customProperties
=
null
;
loadDriverProperties
(
runnableContext
,
driver
,
connectionInfo
);
loadCustomProperties
(
driver
,
connectionProps
);
return
new
PropertySourceCustom
(
getAllProperties
(
driver
,
true
),
connectionProps
);
}
public
PropertySourceCustom
makeProperties
(
DBPDriver
driver
,
Map
<
Object
,
Object
>
properties
)
{
driverProvidedProperties
=
null
;
customProperties
=
null
;
loadCustomProperties
(
driver
,
properties
);
return
new
PropertySourceCustom
(
getAllProperties
(
driver
,
true
),
properties
);
}
@Override
protected
String
[]
getCustomCategories
()
{
return
new
String
[]
{
USER_PROPERTIES_CATEGORY
};
}
@Override
protected
void
contributeContextMenu
(
IMenuManager
manager
,
final
Object
node
,
final
String
category
,
final
DBPPropertyDescriptor
property
)
{
boolean
isCustom
=
USER_PROPERTIES_CATEGORY
.
equals
(
category
);
if
(
isCustom
)
{
manager
.
add
(
new
Action
(
CoreMessages
.
controls_connection_properties_action_add_property
)
{
@Override
public
void
run
()
{
createNewProperty
(
node
,
category
);
}
});
if
(
property
!=
null
)
{
manager
.
add
(
new
Action
(
CoreMessages
.
controls_connection_properties_action_remove_property
)
{
@Override
public
void
run
()
{
removeProperty
(
node
);
}
});
}
}
}
private
void
createNewProperty
(
Object
node
,
String
category
)
{
// Ask user for new property name
String
propName
=
EnterNameDialog
.
chooseName
(
getControl
().
getShell
(),
CoreMessages
.
controls_connection_properties_dialog_new_property_title
);
if
(
propName
!=
null
)
{
// Check property name (must be unique
addProperty
(
node
,
new
PropertyDescriptor
(
category
,
propName
,
propName
,
null
,
null
,
false
,
null
,
null
,
true
));
}
}
private
List
<
DBPPropertyDescriptor
>
getAllProperties
(
DBPDriver
driver
,
boolean
includeCustom
)
{
List
<
DBPPropertyDescriptor
>
propertyDescriptors
=
new
ArrayList
<>();
propertyDescriptors
.
addAll
(
driver
.
getConnectionPropertyDescriptors
());
if
(
driverProvidedProperties
!=
null
)
{
propertyDescriptors
.
addAll
(
driverProvidedProperties
);
}
if
(
includeCustom
&&
customProperties
!=
null
)
{
propertyDescriptors
.
addAll
(
customProperties
);
}
return
propertyDescriptors
;
}
private
void
loadDriverProperties
(
DBRRunnableContext
runnableContext
,
DBPDriver
driver
,
DBPConnectionConfiguration
connectionInfo
)
{
try
{
final
DBPPropertyDescriptor
[]
connectionsProps
=
driver
.
getDataSourceProvider
().
getConnectionProperties
(
runnableContext
,
driver
,
connectionInfo
);
driverProvidedProperties
=
new
ArrayList
<>();
if
(
connectionsProps
!=
null
)
{
Collections
.
addAll
(
driverProvidedProperties
,
connectionsProps
);
}
}
catch
(
DBException
e
)
{
log
.
warn
(
"Can't load driver properties"
,
e
);
//$NON-NLS-1$
}
}
private
void
loadCustomProperties
(
DBPDriver
driver
,
Map
<
Object
,
Object
>
properties
)
{
// Collect all driver (and all other) properties
Set
<
String
>
propNames
=
new
TreeSet
<>();
List
<
DBPPropertyDescriptor
>
allProperties
=
getAllProperties
(
driver
,
false
);
for
(
DBPPropertyDescriptor
prop
:
allProperties
)
{
propNames
.
add
(
CommonUtils
.
toString
(
prop
.
getId
()));
}
customProperties
=
new
ArrayList
<>();
// Find prop values which are not from driver
for
(
Object
propId
:
properties
.
keySet
())
{
final
String
propName
=
propId
.
toString
();
if
(
propName
.
startsWith
(
DBConstants
.
INTERNAL_PROP_PREFIX
))
{
continue
;
}
if
(!
propNames
.
contains
(
propName
))
{
customProperties
.
add
(
new
PropertyDescriptor
(
USER_PROPERTIES_CATEGORY
,
propName
,
propName
,
null
,
String
.
class
,
false
,
null
,
null
,
true
));
}
}
}
}
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/connection/DriverPropertiesDialogPage.java
浏览文件 @
0a27e689
...
...
@@ -25,10 +25,8 @@ import org.jkiss.dbeaver.model.runtime.DBRProgressMonitor;
import
org.jkiss.dbeaver.model.runtime.DBRRunnableWithProgress
;
import
org.jkiss.dbeaver.model.DBPDataSourceContainer
;
import
org.jkiss.dbeaver.registry.DataSourceDescriptor
;
import
org.jkiss.dbeaver.registry.DataSourceRegistry
;
import
org.jkiss.dbeaver.registry.driver.DriverDescriptor
;
import
org.jkiss.dbeaver.runtime.properties.PropertySourceCustom
;
import
org.jkiss.dbeaver.ui.controls.ConnectionPropertiesControl
;
import
java.lang.reflect.InvocationTargetException
;
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/connection/MigrateConnectionWizard.java
浏览文件 @
0a27e689
...
...
@@ -43,7 +43,7 @@ import org.jkiss.dbeaver.registry.DataSourceRegistry;
import
org.jkiss.dbeaver.registry.driver.DriverDescriptor
;
import
org.jkiss.dbeaver.ui.DBeaverIcons
;
import
org.jkiss.dbeaver.ui.UIUtils
;
import
org.jkiss.dbeaver.ui.
controls
.DriverTreeControl
;
import
org.jkiss.dbeaver.ui.
dialogs.driver
.DriverTreeControl
;
import
java.util.*
;
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/data/ValueViewDialog.java
浏览文件 @
0a27e689
...
...
@@ -37,10 +37,9 @@ import org.jkiss.dbeaver.core.CoreMessages;
import
org.jkiss.dbeaver.model.DBUtils
;
import
org.jkiss.dbeaver.model.data.DBDValueHandler
;
import
org.jkiss.dbeaver.model.exec.DBCExecutionContext
;
import
org.jkiss.dbeaver.model.runtime.VoidProgressMonitor
;
import
org.jkiss.dbeaver.model.struct.*
;
import
org.jkiss.dbeaver.ui.UIUtils
;
import
org.jkiss.dbeaver.ui.
control
s.ColumnInfoPanel
;
import
org.jkiss.dbeaver.ui.
dialog
s.ColumnInfoPanel
;
import
org.jkiss.dbeaver.ui.data.*
;
import
org.jkiss.dbeaver.ui.data.managers.BaseValueManager
;
import
org.jkiss.utils.CommonUtils
;
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/driver/DriverEditDialog.java
浏览文件 @
0a27e689
...
...
@@ -50,8 +50,8 @@ import org.jkiss.dbeaver.ui.IHelpContextIds;
import
org.jkiss.dbeaver.ui.UIIcon
;
import
org.jkiss.dbeaver.ui.UIUtils
;
import
org.jkiss.dbeaver.ui.controls.CImageCombo
;
import
org.jkiss.dbeaver.ui.
controls
.ClientHomesPanel
;
import
org.jkiss.dbeaver.ui.
controls
.ConnectionPropertiesControl
;
import
org.jkiss.dbeaver.ui.
dialogs.connection
.ClientHomesPanel
;
import
org.jkiss.dbeaver.ui.
dialogs.connection
.ConnectionPropertiesControl
;
import
org.jkiss.dbeaver.ui.dialogs.HelpEnabledDialog
;
import
org.jkiss.dbeaver.ui.dialogs.StandardErrorDialog
;
import
org.jkiss.dbeaver.ui.properties.PropertyTreeViewer
;
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/dialogs/driver/DriverManagerDialog.java
浏览文件 @
0a27e689
...
...
@@ -37,8 +37,6 @@ import org.jkiss.dbeaver.registry.DataSourceProviderRegistry;
import
org.jkiss.dbeaver.registry.driver.DriverDescriptor
;
import
org.jkiss.dbeaver.ui.IHelpContextIds
;
import
org.jkiss.dbeaver.ui.UIUtils
;
import
org.jkiss.dbeaver.ui.controls.DriverTreeControl
;
import
org.jkiss.dbeaver.ui.controls.DriverTreeViewer
;
import
org.jkiss.dbeaver.ui.dialogs.HelpEnabledDialog
;
import
org.jkiss.utils.CommonUtils
;
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/
controls
/DriverTreeControl.java
→
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/
dialogs/driver
/DriverTreeControl.java
浏览文件 @
0a27e689
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2015 Serge Rieder (serge@jkiss.org)
* Copyright (C) 2011-2012 Eugene Fradkin (eugene.fradkin@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License (version 2)
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
package
org.jkiss.dbeaver.ui.
controls
;
import
org.eclipse.jface.viewers.AbstractTreeViewer
;
import
org.eclipse.jface.viewers.ITreeContentProvider
;
import
org.eclipse.jface.viewers.Viewer
;
import
org.eclipse.swt.SWT
;
import
org.eclipse.swt.widgets.Composite
;
import
org.eclipse.ui.dialogs.FilteredTree
;
import
org.eclipse.ui.dialogs.PatternFilter
;
import
org.jkiss.dbeaver.registry.DataSourceProviderDescriptor
;
import
java.util.List
;
/**
* DriverTreeControl
*
* @author Serge Rieder
*/
public
class
DriverTreeControl
extends
FilteredTree
{
private
static
final
String
DRIVER_INIT_DATA
=
"driverInitData"
;
public
DriverTreeControl
(
Composite
parent
,
Object
site
,
List
<
DataSourceProviderDescriptor
>
providers
,
boolean
expandRecent
)
{
super
(
saveInitParameters
(
parent
,
site
,
providers
,
expandRecent
),
SWT
.
H_SCROLL
|
SWT
.
V_SCROLL
|
SWT
.
BORDER
,
new
DriverFilter
(),
true
);
}
private
static
Composite
saveInitParameters
(
Composite
parent
,
Object
site
,
List
<
DataSourceProviderDescriptor
>
providers
,
boolean
expandRecent
)
{
parent
.
setData
(
"driverInitData"
,
new
Object
[]
{
site
,
providers
,
expandRecent
}
);
return
parent
;
}
@Override
protected
DriverTreeViewer
doCreateTreeViewer
(
Composite
parent
,
int
style
)
{
Object
[]
initData
=
(
Object
[])
getParent
().
getData
(
DRIVER_INIT_DATA
);
parent
.
setData
(
DRIVER_INIT_DATA
,
null
);
DriverTreeViewer
viewer
=
new
DriverTreeViewer
(
parent
,
style
);
viewer
.
initDrivers
(
initData
[
0
],
(
List
<
DataSourceProviderDescriptor
>)
initData
[
1
],
(
Boolean
)
initData
[
2
]);
return
viewer
;
}
private
static
class
DriverFilter
extends
PatternFilter
{
@Override
public
boolean
isElementVisible
(
Viewer
viewer
,
Object
element
)
{
Object
parent
=
((
ITreeContentProvider
)
((
AbstractTreeViewer
)
viewer
)
.
getContentProvider
()).
getParent
(
element
);
if
(
parent
!=
null
&&
isLeafMatch
(
viewer
,
parent
))
{
return
true
;
}
return
isParentMatch
(
viewer
,
element
)
||
isLeafMatch
(
viewer
,
element
);
}
}
}
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2015 Serge Rieder (serge@jkiss.org)
* Copyright (C) 2011-2012 Eugene Fradkin (eugene.fradkin@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License (version 2)
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
package
org.jkiss.dbeaver.ui.
dialogs.driver
;
import
org.eclipse.jface.viewers.AbstractTreeViewer
;
import
org.eclipse.jface.viewers.ITreeContentProvider
;
import
org.eclipse.jface.viewers.Viewer
;
import
org.eclipse.swt.SWT
;
import
org.eclipse.swt.widgets.Composite
;
import
org.eclipse.ui.dialogs.FilteredTree
;
import
org.eclipse.ui.dialogs.PatternFilter
;
import
org.jkiss.dbeaver.registry.DataSourceProviderDescriptor
;
import
java.util.List
;
/**
* DriverTreeControl
*
* @author Serge Rieder
*/
public
class
DriverTreeControl
extends
FilteredTree
{
private
static
final
String
DRIVER_INIT_DATA
=
"driverInitData"
;
public
DriverTreeControl
(
Composite
parent
,
Object
site
,
List
<
DataSourceProviderDescriptor
>
providers
,
boolean
expandRecent
)
{
super
(
saveInitParameters
(
parent
,
site
,
providers
,
expandRecent
),
SWT
.
H_SCROLL
|
SWT
.
V_SCROLL
|
SWT
.
BORDER
,
new
DriverFilter
(),
true
);
}
private
static
Composite
saveInitParameters
(
Composite
parent
,
Object
site
,
List
<
DataSourceProviderDescriptor
>
providers
,
boolean
expandRecent
)
{
parent
.
setData
(
"driverInitData"
,
new
Object
[]
{
site
,
providers
,
expandRecent
}
);
return
parent
;
}
@Override
protected
DriverTreeViewer
doCreateTreeViewer
(
Composite
parent
,
int
style
)
{
Object
[]
initData
=
(
Object
[])
getParent
().
getData
(
DRIVER_INIT_DATA
);
parent
.
setData
(
DRIVER_INIT_DATA
,
null
);
DriverTreeViewer
viewer
=
new
DriverTreeViewer
(
parent
,
style
);
viewer
.
initDrivers
(
initData
[
0
],
(
List
<
DataSourceProviderDescriptor
>)
initData
[
1
],
(
Boolean
)
initData
[
2
]);
return
viewer
;
}
private
static
class
DriverFilter
extends
PatternFilter
{
@Override
public
boolean
isElementVisible
(
Viewer
viewer
,
Object
element
)
{
Object
parent
=
((
ITreeContentProvider
)
((
AbstractTreeViewer
)
viewer
)
.
getContentProvider
()).
getParent
(
element
);
if
(
parent
!=
null
&&
isLeafMatch
(
viewer
,
parent
))
{
return
true
;
}
return
isParentMatch
(
viewer
,
element
)
||
isLeafMatch
(
viewer
,
element
);
}
}
}
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/
controls
/DriverTreeViewer.java
→
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/
dialogs/driver
/DriverTreeViewer.java
浏览文件 @
0a27e689
此差异已折叠。
点击以展开。
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/content/ContentEditor.java
浏览文件 @
0a27e689
...
...
@@ -40,7 +40,7 @@ import org.jkiss.dbeaver.model.runtime.DBRRunnableWithProgress;
import
org.jkiss.dbeaver.model.runtime.VoidProgressMonitor
;
import
org.jkiss.dbeaver.ui.DBeaverIcons
;
import
org.jkiss.dbeaver.ui.UIUtils
;
import
org.jkiss.dbeaver.ui.
control
s.ColumnInfoPanel
;
import
org.jkiss.dbeaver.ui.
dialog
s.ColumnInfoPanel
;
import
org.jkiss.dbeaver.ui.editors.MultiPageAbstractEditor
;
import
org.jkiss.dbeaver.utils.ContentUtils
;
...
...
plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/views/MySQLConnectionPage.java
浏览文件 @
0a27e689
...
...
@@ -35,7 +35,7 @@ import org.jkiss.dbeaver.ui.ICompositeDialogPage;
import
org.jkiss.dbeaver.model.connection.DBPConnectionConfiguration
;
import
org.jkiss.dbeaver.model.connection.DBPDriver
;
import
org.jkiss.dbeaver.ui.UIUtils
;
import
org.jkiss.dbeaver.ui.
controls
.ClientHomesSelector
;
import
org.jkiss.dbeaver.ui.
dialogs.connection
.ClientHomesSelector
;
import
org.jkiss.dbeaver.ui.dialogs.connection.ConnectionPageAbstract
;
import
org.jkiss.dbeaver.ui.dialogs.connection.DriverPropertiesDialogPage
;
import
org.jkiss.utils.CommonUtils
;
...
...
plugins/org.jkiss.dbeaver.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/views/OracleConnectionPage.java
浏览文件 @
0a27e689
...
...
@@ -36,7 +36,7 @@ import org.jkiss.dbeaver.model.connection.DBPConnectionConfiguration;
import
org.jkiss.dbeaver.model.DBPDataSourceContainer
;
import
org.jkiss.dbeaver.ui.ICompositeDialogPage
;
import
org.jkiss.dbeaver.ui.UIUtils
;
import
org.jkiss.dbeaver.ui.
controls
.ClientHomesSelector
;
import
org.jkiss.dbeaver.ui.
dialogs.connection
.ClientHomesSelector
;
import
org.jkiss.dbeaver.ui.dialogs.connection.ConnectionPageAbstract
;
import
org.jkiss.dbeaver.ui.dialogs.connection.DriverPropertiesDialogPage
;
import
org.jkiss.utils.CommonUtils
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录