mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
tests ui: hide statistics from row extender according to selection mode
This commit is contained in:
+8
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user