提交 f8f91be9 编写于 作者: S Serge Rider

Explain plan action enablement fix

上级 02595b52
......@@ -63,7 +63,7 @@ public class SQLEditorPropertyTester extends PropertyTester
// Do not check hasActiveQuery - sometimes jface don't update action enablement after cursor change/typing
return hasConnection;/* && (!"statement".equals(expectedValue) || editor.hasActiveQuery())*/
case PROP_CAN_EXPLAIN:
return hasConnection && editor.hasActiveQuery() && DBUtils.getAdapter(DBCQueryPlanner.class, editor.getDataSource()) != null;
return hasConnection && DBUtils.getAdapter(DBCQueryPlanner.class, editor.getDataSource()) != null;
case PROP_CAN_NAVIGATE: {
// Check whether some word is under cursor
ISelectionProvider selectionProvider = editor.getSelectionProvider();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册