VFSTestFrameworkListener is application component, not service
authorEkaterina Tuzova <Ekaterina.Tuzova@jetbrains.com>
Thu, 3 Sep 2015 12:53:06 +0000 (15:53 +0300)
committerEkaterina Tuzova <Ekaterina.Tuzova@jetbrains.com>
Thu, 3 Sep 2015 12:53:52 +0000 (15:53 +0300)
python/src/com/jetbrains/python/testing/VFSTestFrameworkListener.java

index 0d4961489c08d7c8872f71730b3ef773f07c164e..69ab5f0dc629e016c90efe77a20b1d6581e7b19e 100644 (file)
@@ -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) {