Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
b58c6b3d
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,发现更多精彩内容 >>
提交
b58c6b3d
编写于
6月 24, 2015
作者:
J
jurgen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Code cleanup
上级
a9f69088
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
6 addition
and
81 deletion
+6
-81
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/actions/ObjectPropertyTester.java
...rc/org/jkiss/dbeaver/ui/actions/ObjectPropertyTester.java
+4
-7
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/preferences/PreferenceStoreDelegate.java
...jkiss/dbeaver/ui/preferences/PreferenceStoreDelegate.java
+2
-7
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/properties/DataSourcePropertyFilter.java
...jkiss/dbeaver/ui/properties/DataSourcePropertyFilter.java
+0
-1
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/properties/DefaultPropertyLabelProvider.java
...s/dbeaver/ui/properties/DefaultPropertyLabelProvider.java
+0
-34
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/properties/IPropertySourceListener.java
.../jkiss/dbeaver/ui/properties/IPropertySourceListener.java
+0
-31
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/properties/PropertyDescriptorDelegate.java
...iss/dbeaver/ui/properties/PropertyDescriptorDelegate.java
+0
-1
未找到文件。
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/actions/ObjectPropertyTester.java
浏览文件 @
b58c6b3d
...
...
@@ -30,9 +30,6 @@ import org.jkiss.dbeaver.model.struct.DBSObject;
import
org.jkiss.dbeaver.model.struct.DBSWrapper
;
import
org.jkiss.dbeaver.registry.editor.EntityEditorsRegistry
;
import
org.jkiss.dbeaver.ui.ActionUtils
;
import
org.jkiss.dbeaver.ui.dnd.TreeNodeTransfer
;
import
java.util.Collection
;
/**
* ObjectPropertyTester
...
...
@@ -68,13 +65,13 @@ public class ObjectPropertyTester extends PropertyTester
if
(
property
.
equals
(
PROP_CAN_OPEN
))
{
return
node
.
isPersisted
();
}
else
if
(
property
.
equals
(
PROP_CAN_CREATE
)
||
property
.
equals
(
PROP_CAN_PASTE
))
{
Class
objectType
=
null
;
Class
objectType
;
if
(!(
node
instanceof
DBNContainer
))
{
if
(
node
.
getParentNode
()
instanceof
DBNContainer
)
{
node
=
node
.
getParentNode
();
}
}
DBNContainer
container
=
null
;
DBNContainer
container
;
if
(
node
instanceof
DBNContainer
)
{
// Try to detect child type
objectType
=
((
DBNContainer
)
node
).
getChildrenClass
();
...
...
@@ -143,9 +140,9 @@ public class ObjectPropertyTester extends PropertyTester
if
(
node
instanceof
DBNDatabaseNode
)
{
DBSObject
object
=
((
DBNDatabaseNode
)
node
).
getObject
();
return
object
!=
null
&&
!
isReadOnly
(
object
)
&&
node
.
getParentNode
()
instanceof
DBNContainer
&&
object
!=
null
&&
getObjectManager
(
object
.
getClass
(),
DBEObjectRenamer
.
class
)
!=
null
;
}
}
else
if
(
property
.
equals
(
PROP_CAN_FILTER
))
{
...
...
@@ -165,7 +162,7 @@ public class ObjectPropertyTester extends PropertyTester
return
dataSource
==
null
||
dataSource
.
getContainer
().
isConnectionReadOnly
();
}
private
static
<
T
extends
DBEObjectManager
>
T
getObjectManager
(
Class
objectType
,
Class
<
T
>
managerType
)
private
static
<
T
extends
DBEObjectManager
>
T
getObjectManager
(
Class
<?>
objectType
,
Class
<
T
>
managerType
)
{
return
EntityEditorsRegistry
.
getInstance
().
getObjectManager
(
objectType
,
managerType
);
}
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/preferences/PreferenceStoreDelegate.java
浏览文件 @
b58c6b3d
...
...
@@ -19,14 +19,7 @@ package org.jkiss.dbeaver.ui.preferences;
import
org.eclipse.jface.preference.IPersistentPreferenceStore
;
import
org.eclipse.jface.preference.IPreferenceStore
;
import
org.eclipse.jface.preference.PreferencePage
;
import
org.eclipse.jface.util.IPropertyChangeListener
;
import
org.eclipse.jface.util.PropertyChangeEvent
;
import
org.eclipse.swt.widgets.Composite
;
import
org.eclipse.swt.widgets.Control
;
import
org.eclipse.ui.IWorkbench
;
import
org.eclipse.ui.IWorkbenchPreferencePage
;
import
org.jkiss.dbeaver.model.DBPPreferenceListener
;
import
org.jkiss.dbeaver.model.DBPPreferenceStore
;
import
java.io.IOException
;
...
...
@@ -38,6 +31,7 @@ public class PreferenceStoreDelegate implements IPreferenceStore, IPersistentPre
{
private
final
DBPPreferenceStore
delegate
;
/*
private static class PropertyChangeListenerDelegate implements IPropertyChangeListener {
private final DBPPreferenceListener delegate;
...
...
@@ -56,6 +50,7 @@ public class PreferenceStoreDelegate implements IPreferenceStore, IPersistentPre
));
}
}
*/
public
PreferenceStoreDelegate
(
DBPPreferenceStore
delegate
)
{
this
.
delegate
=
delegate
;
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/properties/DataSourcePropertyFilter.java
浏览文件 @
b58c6b3d
...
...
@@ -17,7 +17,6 @@
*/
package
org.jkiss.dbeaver.ui.properties
;
import
org.eclipse.jface.preference.IPreferenceStore
;
import
org.eclipse.jface.viewers.IFilter
;
import
org.jkiss.dbeaver.DBeaverPreferences
;
import
org.jkiss.dbeaver.core.DBeaverCore
;
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/properties/DefaultPropertyLabelProvider.java
已删除
100644 → 0
浏览文件 @
a9f69088
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2015 Serge Rieder (serge@jkiss.org)
*
* 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.properties
;
import
org.eclipse.jface.viewers.LabelProvider
;
import
org.jkiss.dbeaver.runtime.RuntimeUtils
;
/**
* Label provider for property sources
*/
public
class
DefaultPropertyLabelProvider
extends
LabelProvider
{
public
static
final
DefaultPropertyLabelProvider
INSTANCE
=
new
DefaultPropertyLabelProvider
();
@Override
public
String
getText
(
Object
element
)
{
return
RuntimeUtils
.
makeDisplayString
(
element
).
toString
();
}
}
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/properties/IPropertySourceListener.java
已删除
100644 → 0
浏览文件 @
a9f69088
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2015 Serge Rieder (serge@jkiss.org)
*
* 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.properties
;
import
org.eclipse.ui.views.properties.IPropertyDescriptor
;
/**
* Property source listener
*/
public
interface
IPropertySourceListener
{
void
handlePropertyChange
(
Object
editableValue
,
IPropertyDescriptor
prop
,
Object
value
);
}
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/properties/PropertyDescriptorDelegate.java
浏览文件 @
b58c6b3d
...
...
@@ -21,7 +21,6 @@ import org.eclipse.jface.viewers.CellEditor;
import
org.eclipse.jface.viewers.ILabelProvider
;
import
org.eclipse.swt.widgets.Composite
;
import
org.eclipse.ui.views.properties.IPropertyDescriptor
;
import
org.eclipse.ui.views.properties.IPropertySource2
;
import
org.jkiss.dbeaver.model.DBPPropertyDescriptor
;
import
org.jkiss.dbeaver.model.DBPPropertySource
;
import
org.jkiss.dbeaver.ui.UIUtils
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录