提交 44dc61af 编写于 作者: S Serge Rider

#8327 RSV: statistics render fix

上级 4df1f481
...@@ -1406,7 +1406,7 @@ public class ResultSetViewer extends Viewer ...@@ -1406,7 +1406,7 @@ public class ResultSetViewer extends Viewer
*/ */
private void updateToolbar() private void updateToolbar()
{ {
statusBar.setRedraw(false); if (statusBar != null) statusBar.setRedraw(false);
try { try {
for (ToolBarManager tb : toolbarList) { for (ToolBarManager tb : toolbarList) {
UIUtils.updateContributionItems(tb); UIUtils.updateContributionItems(tb);
...@@ -1414,9 +1414,9 @@ public class ResultSetViewer extends Viewer ...@@ -1414,9 +1414,9 @@ public class ResultSetViewer extends Viewer
if (panelToolBar != null) { if (panelToolBar != null) {
UIUtils.updateContributionItems(panelToolBar); UIUtils.updateContributionItems(panelToolBar);
} }
statusBar.layout(true, true); if (statusBar != null) statusBar.layout(true, true);
} finally { } finally {
statusBar.setRedraw(true); if (statusBar != null) statusBar.setRedraw(true);
} }
} }
...@@ -3363,6 +3363,9 @@ public class ResultSetViewer extends Viewer ...@@ -3363,6 +3363,9 @@ public class ResultSetViewer extends Viewer
} }
public void setSelectionStatistics(String stats) { public void setSelectionStatistics(String stats) {
if (selectionStatLabel == null) {
return;
}
if (stats.equals(selectionStatLabel.getText())) { if (stats.equals(selectionStatLabel.getText())) {
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册