提交 172e7726 编写于 作者: S serge@jkiss.org

Git toolbar/menu visibility fix

上级 84ff9a66
......@@ -57,23 +57,45 @@
<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="menu:org.eclipse.ui.main.menu?after=additions">
<menu id="org.jkiss.dbeaver.team.git.menu" label="Git" mnemonic="M">
<command commandId="org.jkiss.dbeaver.git.commands.update" mnemonic="L"/>
<command commandId="org.jkiss.dbeaver.git.commands.commit" mnemonic="C"/>
<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>
<separator name="projects" visible="true"/>
<command commandId="org.jkiss.dbeaver.git.commands.share" mnemonic="G"/>
<command commandId="org.jkiss.dbeaver.git.commands.projectFromGit" mnemonic="G"/>
<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>
</menu>
</menuContribution>
<menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
<toolbar id="org.jkiss.dbeaver.team.git.toolbar">
<command commandId="org.jkiss.dbeaver.git.commands.share" mnemonic="G">
<visibleWhen checkEnabled="true"/>
<visibleWhen checkEnabled="true">
<reference definitionId="DBeaverPerspectiveActive"/>
</visibleWhen>
</command>
<command commandId="org.jkiss.dbeaver.git.commands.update" mnemonic="L">
<visibleWhen checkEnabled="true"/>
<visibleWhen checkEnabled="true">
<reference definitionId="DBeaverPerspectiveActive"/>
</visibleWhen>
</command>
<command commandId="org.jkiss.dbeaver.git.commands.commit" mnemonic="C">
<visibleWhen checkEnabled="true"/>
<visibleWhen checkEnabled="true">
<reference definitionId="DBeaverPerspectiveActive"/>
</visibleWhen>
</command>
</toolbar>
</menuContribution>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册