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

Query history - use query filters

上级 918749a3
......@@ -361,6 +361,7 @@ public class QueryLogViewer extends Viewer implements QMMetaListener, DBPPrefere
}
});
this.searchText.addModifyListener(e -> scheduleLogRefresh());
UIUtils.enableHostEditorKeyBindingsSupport(site, searchText);
// Create log table
logTable = new Table(
......
......@@ -61,7 +61,12 @@ public class QMEventCriteria {
this.objectTypes = objectTypes;
}
public boolean hasObjectTypes() {
return !ArrayUtils.isEmpty(objectTypes) && objectTypes.length != QMObjectType.values().length;
}
public boolean hasObjectType(QMObjectType type) {
// If all object types are here it is the same as no object type
return !ArrayUtils.isEmpty(objectTypes) && ArrayUtils.contains(objectTypes, type);
}
......@@ -73,6 +78,11 @@ public class QMEventCriteria {
this.queryTypes = queryTypes;
}
public boolean hasQueryTypes() {
// If all query types are here it is the same as no query type
return !ArrayUtils.isEmpty(queryTypes) && queryTypes.length != DBCExecutionPurpose.values().length;
}
public boolean hasQueryType(DBCExecutionPurpose type) {
return !ArrayUtils.isEmpty(queryTypes) && ArrayUtils.contains(queryTypes, type);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册