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

Comment commands enablement fix


Former-commit-id: c931d4fe
上级 d358ceb4
......@@ -50,7 +50,8 @@ public class TextEditorPropertyTester extends PropertyTester
case PROP_CAN_LOAD:
return !editor.isReadOnly();
case PROP_CAN_COMMENT:
if (editor.getSelectionProvider() == null ||
if (editor.isReadOnly() ||
editor.getSelectionProvider() == null ||
editor.getSelectionProvider().getSelection() == null ||
editor.getSelectionProvider().getSelection().isEmpty()) {
return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册