提交 6f38eceb 编写于 作者: J jurgen

Comment command enabled only when editor is active

上级 4246abab
......@@ -686,7 +686,7 @@
</handler>
<handler commandId="org.jkiss.dbeaver.ui.editors.sql.comment.single" class="org.jkiss.dbeaver.ui.editors.text.handlers.ToggleSingleLineCommentHandler">
<activeWhen>
<with variable="activeEditor">
<with variable="activePart">
<adapt type="org.jkiss.dbeaver.ui.editors.text.BaseTextEditor">
<test property="org.jkiss.dbeaver.ui.editors.text.canComment" value="single"/>
</adapt>
......@@ -695,7 +695,7 @@
</handler>
<handler commandId="org.jkiss.dbeaver.ui.editors.sql.comment.multi" class="org.jkiss.dbeaver.ui.editors.text.handlers.ToggleMultiLineCommentHandler">
<activeWhen>
<with variable="activeEditor">
<with variable="activePart">
<adapt type="org.jkiss.dbeaver.ui.editors.text.BaseTextEditor">
<test property="org.jkiss.dbeaver.ui.editors.text.canComment" value="single"/>
</adapt>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册