Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
0e3d3324
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,发现更多精彩内容 >>
提交
0e3d3324
编写于
6月 23, 2015
作者:
J
jurgen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove jface colors from model.
上级
3f5b6405
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
15 addition
and
25 deletion
+15
-25
plugins/org.jkiss.dbeaver.core/plugin.xml
plugins/org.jkiss.dbeaver.core/plugin.xml
+2
-2
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/model/DBPConnectionType.java
...r.core/src/org/jkiss/dbeaver/model/DBPConnectionType.java
+1
-9
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/model/runtime/DBRProcessDescriptor.java
...org/jkiss/dbeaver/model/runtime/DBRProcessDescriptor.java
+2
-1
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/ActionUtils.java
...ss.dbeaver.core/src/org/jkiss/dbeaver/ui/ActionUtils.java
+1
-1
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/UIUtils.java
....jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/UIUtils.java
+2
-2
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/preferences/PrefPageConnectionTypes.java
...jkiss/dbeaver/ui/preferences/PrefPageConnectionTypes.java
+2
-6
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/views/process/ProcessPropertyTester.java
...jkiss/dbeaver/ui/views/process/ProcessPropertyTester.java
+5
-4
未找到文件。
plugins/org.jkiss.dbeaver.core/plugin.xml
浏览文件 @
0e3d3324
...
...
@@ -117,8 +117,8 @@
properties=
"dirty,canUndo,canRedo"
type=
"org.jkiss.dbeaver.ui.editors.entity.EntityEditor"
/>
<propertyTester
class=
"org.jkiss.dbeaver.
model.runtime.DBR
ProcessPropertyTester"
id=
"org.jkiss.dbeaver.
model.runtime.DBR
ProcessPropertyTester"
class=
"org.jkiss.dbeaver.
ui.views.process.
ProcessPropertyTester"
id=
"org.jkiss.dbeaver.
ui.views.process.
ProcessPropertyTester"
namespace=
"org.jkiss.dbeaver.runtime.process"
properties=
"running"
type=
"org.jkiss.dbeaver.model.runtime.DBRProcessController"
/>
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/model/DBPConnectionType.java
浏览文件 @
0e3d3324
package
org.jkiss.dbeaver.model
;
import
org.eclipse.core.runtime.IAdaptable
;
/**
* Connection type
*/
public
class
DBPConnectionType
implements
IAdaptable
{
public
class
DBPConnectionType
{
public
static
final
DBPConnectionType
DEV
=
new
DBPConnectionType
(
"dev"
,
"Development"
,
"255,255,255"
,
"Regular development database"
,
true
,
false
,
true
);
public
static
final
DBPConnectionType
TEST
=
new
DBPConnectionType
(
"test"
,
"Test"
,
"196,255,181"
,
"Test (QA) database"
,
true
,
false
,
true
);
...
...
@@ -103,12 +101,6 @@ public class DBPConnectionType implements IAdaptable {
this
.
confirmExecute
=
confirmExecute
;
}
@Override
public
Object
getAdapter
(
Class
adapter
)
{
return
null
;
}
@Override
public
boolean
equals
(
Object
obj
)
{
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/model/runtime/DBRProcessDescriptor.java
浏览文件 @
0e3d3324
...
...
@@ -19,6 +19,7 @@
package
org.jkiss.dbeaver.model.runtime
;
import
org.jkiss.dbeaver.DBException
;
import
org.jkiss.dbeaver.ui.views.process.ProcessPropertyTester
;
import
org.jkiss.dbeaver.utils.TextUtils
;
import
java.io.IOException
;
...
...
@@ -104,7 +105,7 @@ public class DBRProcessDescriptor
}
//exitValue = process.exitValue();
process
=
null
;
DBRProcessPropertyTester
.
firePropertyChange
(
DBR
ProcessPropertyTester
.
PROP_RUNNING
);
ProcessPropertyTester
.
firePropertyChange
(
ProcessPropertyTester
.
PROP_RUNNING
);
}
}
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/ActionUtils.java
浏览文件 @
0e3d3324
...
...
@@ -42,7 +42,7 @@ import org.jkiss.code.NotNull;
import
org.jkiss.code.Nullable
;
/**
*
NavigatorU
tils
*
Action u
tils
*/
public
class
ActionUtils
{
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/UIUtils.java
浏览文件 @
0e3d3324
...
...
@@ -969,9 +969,9 @@ public class UIUtils {
window
.
getShell
().
setText
(
title
);
}
public
static
void
showPreferencesFor
(
Shell
shell
,
IAdaptable
element
,
String
defPageID
)
public
static
void
showPreferencesFor
(
Shell
shell
,
Object
element
,
String
defPageID
)
{
PreferenceDialog
propDialog
=
PreferencesUtil
.
createPropertyDialogOn
(
shell
,
element
,
defPageID
,
null
,
null
);
PreferenceDialog
propDialog
=
PreferencesUtil
.
createPropertyDialogOn
(
shell
,
element
,
defPageID
,
null
,
null
,
PreferencesUtil
.
OPTION_NONE
);
if
(
propDialog
!=
null
)
{
propDialog
.
open
();
}
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/preferences/PrefPageConnectionTypes.java
浏览文件 @
0e3d3324
...
...
@@ -365,17 +365,13 @@ public class PrefPageConnectionTypes extends PreferencePage implements IWorkbenc
@Override
public
IAdaptable
getElement
()
{
return
selectedType
;
return
null
;
}
@Override
public
void
setElement
(
IAdaptable
element
)
{
if
(
element
instanceof
DBPConnectionType
)
{
selectedType
=
(
DBPConnectionType
)
element
;
}
else
{
selectedType
=
null
;
}
selectedType
=
(
DBPConnectionType
)
element
.
getAdapter
(
DBPConnectionType
.
class
);
}
}
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/
model/runtime/DBR
ProcessPropertyTester.java
→
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/
ui/views/process/
ProcessPropertyTester.java
浏览文件 @
0e3d3324
...
...
@@ -15,21 +15,22 @@
* 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.
model.runtime
;
package
org.jkiss.dbeaver.
ui.views.process
;
import
org.eclipse.core.expressions.PropertyTester
;
import
org.jkiss.dbeaver.model.runtime.DBRProcessController
;
import
org.jkiss.dbeaver.ui.ActionUtils
;
/**
*
DBR
ProcessPropertyTester
* ProcessPropertyTester
*/
public
class
DBR
ProcessPropertyTester
extends
PropertyTester
public
class
ProcessPropertyTester
extends
PropertyTester
{
public
static
final
String
NAMESPACE
=
"org.jkiss.dbeaver.runtime.process"
;
public
static
final
String
PROP_RUNNING
=
"running"
;
public
DBR
ProcessPropertyTester
()
{
public
ProcessPropertyTester
()
{
super
();
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录