From 0918b3e7f230e45b116c4aee10ac82256d8d247c Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Tue, 9 Jun 2015 18:48:26 +0300 Subject: [PATCH] disable old statistics listener --- .../testframework/sm/SMTestRunnerConnectionUtil.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/smRunner/src/com/intellij/execution/testframework/sm/SMTestRunnerConnectionUtil.java b/platform/smRunner/src/com/intellij/execution/testframework/sm/SMTestRunnerConnectionUtil.java index 2b4f919e45f8..0ad0279358dc 100644 --- a/platform/smRunner/src/com/intellij/execution/testframework/sm/SMTestRunnerConnectionUtil.java +++ b/platform/smRunner/src/com/intellij/execution/testframework/sm/SMTestRunnerConnectionUtil.java @@ -35,6 +35,7 @@ import com.intellij.openapi.project.DumbService; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.Disposer; import com.intellij.openapi.util.Key; +import com.intellij.openapi.util.registry.Registry; import com.intellij.psi.search.GlobalSearchScope; import com.intellij.testIntegration.TestLocationProvider; import com.intellij.util.io.URLUtil; @@ -215,7 +216,9 @@ public class SMTestRunnerConnectionUtil { // subscribes test runner's actions on results viewer events resultsViewer.addEventsListener(uiActionsHandler); // subscribes statistics tab viewer on event processor - eventsProcessor.addEventsListener(statisticsPane.createTestEventsListener()); + if (Registry.is("tests.view.old.statistics.panel")) { + eventsProcessor.addEventsListener(statisticsPane.createTestEventsListener()); + } // subscribes test runner's notification balloons on results viewer events eventsProcessor.addEventsListener(notifierHandler);