提交 047b2b8e 编写于 作者: S Serge Rider

Plan viewer: warn message fix


Former-commit-id: 5649efd0
上级 28a3ee01
...@@ -102,7 +102,7 @@ public class SQLPlanTreeViewer extends Viewer ...@@ -102,7 +102,7 @@ public class SQLPlanTreeViewer extends Viewer
planTree.getControl().addPaintListener(e -> { planTree.getControl().addPaintListener(e -> {
String message = null; String message = null;
if (query == null) { if (query == null) {
message = "No connection or data source doesn't support execution plan"; message = null;//"No connection or data source doesn't support execution plan";
} else if (CommonUtils.isEmpty(sqlText.getText())) { } else if (CommonUtils.isEmpty(sqlText.getText())) {
message = "Select a query and run " + ActionUtils.findCommandDescription( message = "Select a query and run " + ActionUtils.findCommandDescription(
SQLEditorCommands.CMD_EXPLAIN_PLAN, SQLEditorCommands.CMD_EXPLAIN_PLAN,
......
...@@ -333,9 +333,11 @@ public class ViewerColumnController<COLUMN, ELEMENT> { ...@@ -333,9 +333,11 @@ public class ViewerColumnController<COLUMN, ELEMENT> {
column.addControlListener(new ControlAdapter() { column.addControlListener(new ControlAdapter() {
@Override @Override
public void controlResized(ControlEvent e) { public void controlResized(ControlEvent e) {
columnInfo.width = column.getWidth(); /*if (!isInitializing && !isPacking)*/ {
if (getRowCount() > 0) { columnInfo.width = column.getWidth();
saveColumnConfig(); if (getRowCount() > 0) {
saveColumnConfig();
}
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册