cleanup — deprecate ModuleRootAdapter

This commit is contained in:
Vladimir Krivosheev
2016-11-29 11:24:16 +01:00
parent 75376c7551
commit 00c58fd4a8
37 changed files with 100 additions and 100 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,8 +20,8 @@ import com.intellij.openapi.Disposable;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.module.ModuleServiceManager;
import com.intellij.openapi.projectRoots.Sdk;
import com.intellij.openapi.roots.ModuleRootAdapter;
import com.intellij.openapi.roots.ModuleRootEvent;
import com.intellij.openapi.roots.ModuleRootListener;
import com.intellij.openapi.vfs.VirtualFileManager;
import com.jetbrains.python.sdk.PythonSdkType;
@@ -35,7 +35,7 @@ public class PythonModulePathCache extends PythonPathCache implements Disposable
@SuppressWarnings({"UnusedDeclaration"})
public PythonModulePathCache(final Module module) {
module.getMessageBus().connect().subscribe(ProjectTopics.PROJECT_ROOTS, new ModuleRootAdapter() {
module.getMessageBus().connect().subscribe(ProjectTopics.PROJECT_ROOTS, new ModuleRootListener() {
public void rootsChanged(ModuleRootEvent event) {
updateCacheForSdk(module);
clearCache();