提交 f67d19cd 编写于 作者: S serge-rider

#12061 Hide SQL Editor and Database main menus in non-DBeaver perspectives


Former-commit-id: add7896d
上级 88712127
......@@ -490,7 +490,11 @@
<!-- Database menu -->
<menuContribution allPopups="false" locationURI="menu:org.eclipse.ui.main.menu?before=window">
<menu id="dataSourceMenu" label="%menu.database">
<!--<visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.datasource.editor"/></visibleWhen>-->
<visibleWhen>
<with variable="activeWorkbenchWindow.activePerspective">
<reference definitionId="DBeaverPerspectiveActive"/>
</with>
</visibleWhen>
<separator name="driverGroup" visible="true"/>
<command commandId="org.jkiss.dbeaver.core.new.connection"/>
......
......@@ -738,6 +738,12 @@
<!-- 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>
<command commandId="org.jkiss.dbeaver.core.sql.editor.open"/>
<command commandId="org.jkiss.dbeaver.core.sql.editor.recent"/>
<command commandId="org.jkiss.dbeaver.core.sql.editor.create"/>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册