Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
b9b847d7
D
dbeaver
项目概览
suliangchun
/
dbeaver
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
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,发现更多精彩内容 >>
提交
b9b847d7
编写于
12月 21, 2017
作者:
A
Alexander Fedorov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
#2556 remove duplicated "Debug As" menu
Former-commit-id:
ea8e2020
上级
20ddcf2f
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
18 addition
and
82 deletion
+18
-82
plugins/org.jkiss.dbeaver.debug.ui/plugin.xml
plugins/org.jkiss.dbeaver.debug.ui/plugin.xml
+7
-9
plugins/org.jkiss.dbeaver.debug.ui/src/org/jkiss/dbeaver/debug/internal/ui/DebugContributionFactory.java
...s/dbeaver/debug/internal/ui/DebugContributionFactory.java
+0
-39
plugins/org.jkiss.dbeaver.debug.ui/src/org/jkiss/dbeaver/debug/internal/ui/DebugContributionItem.java
...kiss/dbeaver/debug/internal/ui/DebugContributionItem.java
+0
-30
plugins/org.jkiss.dbeaver.debug.ui/src/org/jkiss/dbeaver/debug/internal/ui/DebugUiMessages.java
.../org/jkiss/dbeaver/debug/internal/ui/DebugUiMessages.java
+1
-1
plugins/org.jkiss.dbeaver.debug.ui/src/org/jkiss/dbeaver/debug/internal/ui/DebugUiMessages.properties
...kiss/dbeaver/debug/internal/ui/DebugUiMessages.properties
+2
-2
plugins/org.jkiss.dbeaver.debug.ui/src/org/jkiss/dbeaver/debug/internal/ui/actions/DebugActionAdapterFactory.java
.../debug/internal/ui/actions/DebugActionAdapterFactory.java
+8
-1
未找到文件。
plugins/org.jkiss.dbeaver.debug.ui/plugin.xml
浏览文件 @
b9b847d7
...
...
@@ -19,15 +19,6 @@
-->
<plugin>
<extension
point=
"org.eclipse.ui.menus"
>
<menuContribution
allPopups=
"false"
class=
"org.jkiss.dbeaver.debug.internal.ui.DebugContributionFactory"
locationURI=
"popup:org.eclipse.ui.popup.any?before=additions"
>
</menuContribution>
</extension>
<extension
point=
"org.eclipse.core.runtime.adapters"
>
<factory
...
...
@@ -37,6 +28,13 @@
type=
"org.eclipse.debug.ui.actions.IToggleBreakpointsTarget"
>
</adapter>
</factory>
<factory
adaptableType=
"org.jkiss.dbeaver.ui.editors.entity.EntityEditorInput"
class=
"org.jkiss.dbeaver.debug.internal.ui.actions.DebugActionAdapterFactory"
>
<adapter
type=
"org.eclipse.debug.ui.actions.ILaunchable"
>
</adapter>
</factory>
</extension>
<extension
...
...
plugins/org.jkiss.dbeaver.debug.ui/src/org/jkiss/dbeaver/debug/internal/ui/DebugContributionFactory.java
已删除
100644 → 0
浏览文件 @
20ddcf2f
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org)
* Copyright (C) 2017 Alexander Fedorov (alexander.fedorov@jkiss.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.jkiss.dbeaver.debug.internal.ui
;
import
org.eclipse.debug.ui.DebugUITools
;
import
org.eclipse.debug.ui.IDebugUIConstants
;
import
org.jkiss.dbeaver.debug.ui.LaunchContributionFactory
;
import
org.jkiss.dbeaver.debug.ui.LaunchContributionItem
;
import
org.jkiss.dbeaver.debug.ui.DebugUi
;
public
class
DebugContributionFactory
extends
LaunchContributionFactory
{
public
DebugContributionFactory
()
{
super
(
DebugUi
.
DEBUG_AS_MENU_ID
);
setText
(
DebugUiMessages
.
DebugContributionFactory_text
);
setImageDescriptor
(
DebugUITools
.
getImageDescriptor
(
IDebugUIConstants
.
IMG_ACT_DEBUG
));
}
@Override
protected
LaunchContributionItem
createContributionItem
()
{
return
new
DebugContributionItem
();
}
}
plugins/org.jkiss.dbeaver.debug.ui/src/org/jkiss/dbeaver/debug/internal/ui/DebugContributionItem.java
已删除
100644 → 0
浏览文件 @
20ddcf2f
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org)
* Copyright (C) 2017 Alexander Fedorov (alexander.fedorov@jkiss.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.jkiss.dbeaver.debug.internal.ui
;
import
org.eclipse.debug.core.ILaunchManager
;
import
org.jkiss.dbeaver.debug.ui.LaunchContributionItem
;
public
class
DebugContributionItem
extends
LaunchContributionItem
{
protected
DebugContributionItem
()
{
super
(
ILaunchManager
.
DEBUG_MODE
);
}
}
plugins/org.jkiss.dbeaver.debug.ui/src/org/jkiss/dbeaver/debug/internal/ui/DebugUiMessages.java
浏览文件 @
b9b847d7
...
...
@@ -28,7 +28,7 @@ public class DebugUiMessages extends NLS {
public
static
String
DatabaseTab_datasource_group_text
;
public
static
String
DatabaseTab_datasource_label_text
;
public
static
String
DatabaseTab_name
;
public
static
String
DebugContributionFactory_text
;
public
static
String
LaunchShortcut_e_launch
;
public
static
String
LaunchShortcut_select_cobfiguration_title
;
static
{
...
...
plugins/org.jkiss.dbeaver.debug.ui/src/org/jkiss/dbeaver/debug/internal/ui/DebugUiMessages.properties
浏览文件 @
b9b847d7
DatabaseStandardBreakpointPane_name
=
Breakpoint Settings
# DBeaver - Universal Database Manager
# Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org)
# Copyright (C) 2017 Alexander Fedorov (alexander.fedorov@jkiss.org)
...
...
@@ -15,12 +14,13 @@ DatabaseStandardBreakpointPane_name=Breakpoint Settings
# See the License for the specific language governing permissions and
# limitations under the License.
DatabaseStandardBreakpointPane_name
=
Breakpoint Settings
DatabaseStandardBreakpointPane_description
=
Breakpoint settings
DatabaseTab_database_group_text
=
Database
DatabaseTab_database_label_text
=
Database
DatabaseTab_datasource_group_text
=
Connection
DatabaseTab_datasource_label_text
=
Connection
DatabaseTab_name
=
&Main
DebugContributionFactory_text
=
Debug As
LaunchShortcut_e_launch
=
Launch error
LaunchShortcut_select_cobfiguration_title
=
&Select existing configuration:
plugins/org.jkiss.dbeaver.debug.ui/src/org/jkiss/dbeaver/debug/internal/ui/actions/DebugActionAdapterFactory.java
浏览文件 @
b9b847d7
package
org.jkiss.dbeaver.debug.internal.ui.actions
;
import
org.eclipse.core.runtime.IAdapterFactory
;
import
org.eclipse.debug.ui.actions.ILaunchable
;
import
org.eclipse.debug.ui.actions.IToggleBreakpointsTarget
;
import
org.jkiss.dbeaver.debug.ui.actions.ToggleSqlBreakpointTarget
;
public
class
DebugActionAdapterFactory
implements
IAdapterFactory
{
private
static
final
Class
<?>[]
CLASSES
=
new
Class
[]{
IToggleBreakpointsTarget
.
class
};
private
static
final
Class
<?>[]
CLASSES
=
new
Class
[]
{
ILaunchable
.
class
,
IToggleBreakpointsTarget
.
class
};
private
static
final
ILaunchable
LAUNCHABLE
=
new
ILaunchable
()
{
};
private
final
IToggleBreakpointsTarget
toggleBreakpointTarget
=
new
ToggleSqlBreakpointTarget
();
...
...
@@ -14,6 +18,9 @@ public class DebugActionAdapterFactory implements IAdapterFactory {
@SuppressWarnings
(
"unchecked"
)
public
<
T
>
T
getAdapter
(
Object
adaptableObject
,
Class
<
T
>
adapterType
)
{
if
(
adapterType
==
ILaunchable
.
class
)
{
return
(
T
)
LAUNCHABLE
;
}
if
(
adapterType
==
IToggleBreakpointsTarget
.
class
)
{
return
(
T
)
toggleBreakpointTarget
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录