Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
42ad4469
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,发现更多精彩内容 >>
提交
42ad4469
编写于
4月 24, 2021
作者:
S
serge-rider
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
#12061 Menu contributions refactoring and cleanup
Former-commit-id:
b89822ac
上级
f67d19cd
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
30 addition
and
94 deletion
+30
-94
plugins/org.jkiss.dbeaver.core/plugin.xml
plugins/org.jkiss.dbeaver.core/plugin.xml
+17
-48
plugins/org.jkiss.dbeaver.debug.ui/plugin.xml
plugins/org.jkiss.dbeaver.debug.ui/plugin.xml
+1
-3
plugins/org.jkiss.dbeaver.tasks.ui.view/plugin.xml
plugins/org.jkiss.dbeaver.tasks.ui.view/plugin.xml
+1
-3
plugins/org.jkiss.dbeaver.team.git.ui/plugin.xml
plugins/org.jkiss.dbeaver.team.git.ui/plugin.xml
+9
-32
plugins/org.jkiss.dbeaver.ui.dashboard/plugin.xml
plugins/org.jkiss.dbeaver.ui.dashboard/plugin.xml
+1
-3
plugins/org.jkiss.dbeaver.ui.editors.sql/plugin.xml
plugins/org.jkiss.dbeaver.ui.editors.sql/plugin.xml
+1
-5
未找到文件。
plugins/org.jkiss.dbeaver.core/plugin.xml
浏览文件 @
42ad4469
...
...
@@ -197,9 +197,7 @@
</with>
</definition>
<definition
id=
"org.jkiss.dbeaver.core.ui.toolbar.general.visible"
>
<with
variable=
"activeWorkbenchWindow.activePerspective"
>
<reference
definitionId=
"DBeaverPerspectiveActive"
/>
</with>
<reference
definitionId=
"DBeaverPerspectiveActive"
/>
</definition>
<definition
id=
"org.jkiss.dbeaver.core.ui.editor.transactional"
>
<with
variable=
"activeEditor"
>
...
...
@@ -490,11 +488,7 @@
<!-- Database menu -->
<menuContribution
allPopups=
"false"
locationURI=
"menu:org.eclipse.ui.main.menu?before=window"
>
<menu
id=
"dataSourceMenu"
label=
"%menu.database"
>
<visibleWhen>
<with
variable=
"activeWorkbenchWindow.activePerspective"
>
<reference
definitionId=
"DBeaverPerspectiveActive"
/>
</with>
</visibleWhen>
<visibleWhen><reference
definitionId=
"DBeaverPerspectiveActive"
/></visibleWhen>
<separator
name=
"driverGroup"
visible=
"true"
/>
<command
commandId=
"org.jkiss.dbeaver.core.new.connection"
/>
...
...
@@ -587,46 +581,11 @@
</toolbar>
<toolbar
id=
"dbeaver-edit"
label=
"%toolbar.dbeaver-edit.label"
>
<command
commandId=
"org.eclipse.ui.file.save"
>
<visibleWhen>
<and>
<test
property=
"org.jkiss.dbeaver.core.ui.toolbarVisible"
value=
"dbeaver-edit"
/>
<reference
definitionId=
"org.jkiss.dbeaver.core.ui.datasource.editor"
/>
</and>
</visibleWhen>
</command>
<command
commandId=
"org.eclipse.ui.file.revert"
icon=
"platform:/plugin/org.jkiss.dbeaver.ui/icons/file/reset.png"
>
<visibleWhen>
<and>
<test
property=
"org.jkiss.dbeaver.core.ui.toolbarVisible"
value=
"dbeaver-edit"
/>
<reference
definitionId=
"org.jkiss.dbeaver.core.ui.datasource.editor"
/>
</and>
</visibleWhen>
</command>
<command
commandId=
"org.eclipse.ui.edit.undo"
>
<visibleWhen>
<and>
<test
property=
"org.jkiss.dbeaver.core.ui.toolbarVisible"
value=
"dbeaver-edit"
/>
<reference
definitionId=
"org.jkiss.dbeaver.core.ui.datasource.editor"
/>
</and>
</visibleWhen>
</command>
<command
commandId=
"org.eclipse.ui.edit.redo"
>
<visibleWhen>
<and>
<test
property=
"org.jkiss.dbeaver.core.ui.toolbarVisible"
value=
"dbeaver-edit"
/>
<reference
definitionId=
"org.jkiss.dbeaver.core.ui.datasource.editor"
/>
</and>
</visibleWhen>
</command>
<command
commandId=
"org.eclipse.ui.file.refresh"
>
<visibleWhen>
<and>
<test
property=
"org.jkiss.dbeaver.core.ui.toolbarVisible"
value=
"dbeaver-edit"
/>
<reference
definitionId=
"org.jkiss.dbeaver.core.ui.datasource.editor"
/>
</and>
</visibleWhen>
</command>
<command
commandId=
"org.eclipse.ui.file.save"
/>
<command
commandId=
"org.eclipse.ui.file.revert"
icon=
"platform:/plugin/org.jkiss.dbeaver.ui/icons/file/reset.png"
/>
<command
commandId=
"org.eclipse.ui.edit.undo"
/>
<command
commandId=
"org.eclipse.ui.edit.redo"
/>
<command
commandId=
"org.eclipse.ui.file.refresh"
/>
</toolbar>
<toolbar
id=
"dbeaver-connection-selector"
label=
"%toolbar.dbeaver-datasource-selector.label"
>
...
...
@@ -1225,4 +1184,14 @@
</perspective>
</extension>
<extension
point=
"org.eclipse.ui.perspectiveExtensions"
>
<perspectiveExtension
targetID=
"org.jkiss.dbeaver.core.perspective"
>
<hiddenToolBarItem
id=
"org.eclipse.ui.file.save"
/>
<hiddenToolBarItem
id=
"org.eclipse.ui.file.revert"
/>
<hiddenToolBarItem
id=
"org.eclipse.ui.file.undo"
/>
<hiddenToolBarItem
id=
"org.eclipse.ui.file.redo"
/>
<hiddenToolBarItem
id=
"org.eclipse.ui.file.refresh"
/>
</perspectiveExtension>
</extension>
</plugin>
plugins/org.jkiss.dbeaver.debug.ui/plugin.xml
浏览文件 @
42ad4469
...
...
@@ -126,9 +126,7 @@
<command
commandId=
"org.jkiss.dbeaver.debug.ui.command.debugConfigurationMenu"
id=
"org.jkiss.dbeaver.debug.ui.menu.pulldown"
label=
"%commands.command.debugConfigurations.name"
tooltip=
"%commands.command.debugConfigurations.description"
style=
"pulldown"
>
<visibleWhen>
<reference
definitionId=
"DBeaverPerspectiveActive"
/>
</visibleWhen>
<visibleWhen><reference
definitionId=
"DBeaverPerspectiveActive"
/></visibleWhen>
</command>
</menuContribution>
...
...
plugins/org.jkiss.dbeaver.tasks.ui.view/plugin.xml
浏览文件 @
42ad4469
...
...
@@ -143,9 +143,7 @@
<command
commandId=
"org.eclipse.ui.views.showView"
icon=
"icons/task_list.png"
label=
"%view.tasks.title"
style=
"pulldown"
id=
"org.jkiss.dbeaver.menu.tasks"
>
<parameter
name=
"org.eclipse.ui.views.showView.viewId"
value=
"org.jkiss.dbeaver.tasks"
/>
<visibleWhen
checkEnabled=
"true"
>
<reference
definitionId=
"DBeaverPerspectiveActive"
/>
</visibleWhen>
<visibleWhen><reference
definitionId=
"DBeaverPerspectiveActive"
/></visibleWhen>
</command>
</menuContribution>
...
...
plugins/org.jkiss.dbeaver.team.git.ui/plugin.xml
浏览文件 @
42ad4469
...
...
@@ -61,27 +61,12 @@
<menuContribution
locationURI=
"menu:file?before=properties"
>
<separator
name=
"git"
visible=
"true"
/>
<menu
id=
"org.jkiss.dbeaver.team.git.menu"
label=
"Git"
mnemonic=
"M"
>
<command
commandId=
"org.jkiss.dbeaver.git.commands.update"
mnemonic=
"L"
>
<visibleWhen
checkEnabled=
"true"
>
<reference
definitionId=
"DBeaverPerspectiveActive"
/>
</visibleWhen>
</command>
<command
commandId=
"org.jkiss.dbeaver.git.commands.commit"
mnemonic=
"C"
>
<visibleWhen
checkEnabled=
"true"
>
<reference
definitionId=
"DBeaverPerspectiveActive"
/>
</visibleWhen>
</command>
<visibleWhen><reference
definitionId=
"DBeaverPerspectiveActive"
/></visibleWhen>
<command
commandId=
"org.jkiss.dbeaver.git.commands.update"
mnemonic=
"L"
/>
<command
commandId=
"org.jkiss.dbeaver.git.commands.commit"
mnemonic=
"C"
/>
<separator
name=
"projects"
visible=
"true"
/>
<command
commandId=
"org.jkiss.dbeaver.git.commands.share"
mnemonic=
"G"
>
<visibleWhen
checkEnabled=
"true"
>
<reference
definitionId=
"DBeaverPerspectiveActive"
/>
</visibleWhen>
</command>
<command
commandId=
"org.jkiss.dbeaver.git.commands.projectFromGit"
mnemonic=
"G"
>
<visibleWhen
checkEnabled=
"true"
>
<reference
definitionId=
"DBeaverPerspectiveActive"
/>
</visibleWhen>
</command>
<command
commandId=
"org.jkiss.dbeaver.git.commands.share"
mnemonic=
"G"
/>
<command
commandId=
"org.jkiss.dbeaver.git.commands.projectFromGit"
mnemonic=
"G"
/>
<separator
name=
"view"
visible=
"true"
/>
<command
commandId=
"org.jkiss.dbeaver.core.view.toggle"
style=
"toggle"
><parameter
name=
"viewId"
value=
"org.eclipse.egit.ui.RepositoriesView"
/></command>
</menu>
...
...
@@ -89,20 +74,14 @@
<menuContribution
locationURI=
"menu:org.jkiss.dbeaver.menu.git"
>
<command
commandId=
"org.jkiss.dbeaver.git.commands.update"
mnemonic=
"L"
>
<visibleWhen
checkEnabled=
"true"
>
<reference
definitionId=
"DBeaverPerspectiveActive"
/>
</visibleWhen>
<visibleWhen><reference
definitionId=
"DBeaverPerspectiveActive"
/></visibleWhen>
</command>
<command
commandId=
"org.jkiss.dbeaver.git.commands.commit"
mnemonic=
"C"
>
<visibleWhen
checkEnabled=
"true"
>
<reference
definitionId=
"DBeaverPerspectiveActive"
/>
</visibleWhen>
<visibleWhen><reference
definitionId=
"DBeaverPerspectiveActive"
/></visibleWhen>
</command>
<separator
name=
"share"
visible=
"true"
/>
<command
commandId=
"org.jkiss.dbeaver.git.commands.share"
mnemonic=
"G"
>
<visibleWhen
checkEnabled=
"true"
>
<reference
definitionId=
"DBeaverPerspectiveActive"
/>
</visibleWhen>
<visibleWhen><reference
definitionId=
"DBeaverPerspectiveActive"
/></visibleWhen>
</command>
<separator
name=
"view"
visible=
"true"
/>
<command
commandId=
"org.jkiss.dbeaver.core.view.toggle"
style=
"toggle"
><parameter
name=
"viewId"
value=
"org.eclipse.egit.ui.RepositoriesView"
/></command>
...
...
@@ -111,9 +90,7 @@
<menuContribution
allPopups=
"false"
locationURI=
"toolbar:dbeaver-tools?after=additions"
>
<separator
name=
"git"
visible=
"false"
/>
<command
commandId=
"org.jkiss.dbeaver.git.commands.showHistory"
icon=
"icons/clone.png"
label=
"Git"
style=
"pulldown"
id=
"org.jkiss.dbeaver.menu.git"
>
<visibleWhen>
<reference
definitionId=
"DBeaverPerspectiveActive"
/>
</visibleWhen>
<visibleWhen><reference
definitionId=
"DBeaverPerspectiveActive"
/></visibleWhen>
</command>
</menuContribution>
...
...
plugins/org.jkiss.dbeaver.ui.dashboard/plugin.xml
浏览文件 @
42ad4469
...
...
@@ -67,9 +67,7 @@
<menuContribution
allPopups=
"false"
locationURI=
"toolbar:dbeaver-tools?after=additions"
>
<separator
name=
"dashboard"
visible=
"true"
/>
<command
commandId=
"org.jkiss.dbeaver.ui.dashboard.open"
>
<visibleWhen>
<reference
definitionId=
"DBeaverPerspectiveActive"
/>
</visibleWhen>
<visibleWhen><reference
definitionId=
"DBeaverPerspectiveActive"
/></visibleWhen>
</command>
</menuContribution>
...
...
plugins/org.jkiss.dbeaver.ui.editors.sql/plugin.xml
浏览文件 @
42ad4469
...
...
@@ -738,11 +738,7 @@
<!-- SQL editor menu -->
<menuContribution
allPopups=
"false"
locationURI=
"menu:org.eclipse.ui.main.menu?after=additions"
>
<menu
id=
"SQLEditorMenu"
label=
"%menu.sqleditor"
>
<visibleWhen>
<with
variable=
"activeWorkbenchWindow.activePerspective"
>
<reference
definitionId=
"DBeaverPerspectiveActive"
/>
</with>
</visibleWhen>
<visibleWhen><reference
definitionId=
"DBeaverPerspectiveActive"
/></visibleWhen>
<command
commandId=
"org.jkiss.dbeaver.core.sql.editor.open"
/>
<command
commandId=
"org.jkiss.dbeaver.core.sql.editor.recent"
/>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录