From 12d1fff72f439c007e4c3b80a2546d63f40f6d53 Mon Sep 17 00:00:00 2001 From: Ekaterina Tuzova Date: Thu, 3 Sep 2015 15:53:06 +0300 Subject: [PATCH] VFSTestFrameworkListener is application component, not service --- .../com/jetbrains/python/testing/VFSTestFrameworkListener.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/src/com/jetbrains/python/testing/VFSTestFrameworkListener.java b/python/src/com/jetbrains/python/testing/VFSTestFrameworkListener.java index 0d4961489c08..69ab5f0dc629 100644 --- a/python/src/com/jetbrains/python/testing/VFSTestFrameworkListener.java +++ b/python/src/com/jetbrains/python/testing/VFSTestFrameworkListener.java @@ -17,7 +17,6 @@ package com.jetbrains.python.testing; import com.intellij.execution.ExecutionException; import com.intellij.openapi.application.ApplicationManager; -import com.intellij.openapi.components.ServiceManager; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.projectRoots.Sdk; import com.intellij.openapi.roots.OrderRootType; @@ -126,7 +125,7 @@ public class VFSTestFrameworkListener { } public static VFSTestFrameworkListener getInstance() { - return ServiceManager.getService(VFSTestFrameworkListener.class); + return ApplicationManager.getApplication().getComponent(VFSTestFrameworkListener.class); } public void pyTestInstalled(boolean installed, String sdkHome) {