tests ui: hide statistics from row extender according to selection mode

This commit is contained in:
Anna Kozlova
2015-06-09 20:31:13 +03:00
parent 66b522e18e
commit a43e92b0f0
@@ -73,12 +73,14 @@ public class TestTreeRenderer extends ColoredTreeCellRenderer {
TestsPresentationUtil.formatTestProxy(testProxy, this);
}
String durationString = testProxy.getDurationString(myConsoleProperties);
if (durationString != null) {
durationString = " " + durationString;
myDurationWidth = getFontMetrics(getFont()).stringWidth(durationString);
if (((TestTreeView)myTree).isExpandableHandlerVisibleForCurrentRow(myRow)) {
append(durationString);
if (TestConsoleProperties.SHOW_INLINE_STATISTICS.value(myConsoleProperties)) {
String durationString = testProxy.getDurationString(myConsoleProperties);
if (durationString != null) {
durationString = " " + durationString;
myDurationWidth = getFontMetrics(getFont()).stringWidth(durationString);
if (((TestTreeView)myTree).isExpandableHandlerVisibleForCurrentRow(myRow)) {
append(durationString);
}
}
}
//Done