VFSTestFrameworkListener is application component, not service

This commit is contained in:
Ekaterina Tuzova
2015-09-03 15:53:52 +03:00
parent 63c3723ec6
commit 12d1fff72f
@@ -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) {