Java 类com.intellij.openapi.project.ModuleListener 实例源码

项目:intellij-ce-playground    文件:AndroidGradleProjectComponent.java   
@Override
public void moduleAdded(@NotNull Project project, @NotNull Module module) {
  updateBuildVariantView(project);
  for (ModuleListener listener : additionalListeners) {
    listener.moduleAdded(project, module);
  }
}
项目:intellij-ce-playground    文件:AndroidGradleProjectComponent.java   
@Override
public void modulesRenamed(@NotNull Project project, @NotNull List<Module> modules, @NotNull Function<Module, String> oldNameProvider) {
  updateBuildVariantView(project);
  for (ModuleListener listener : additionalListeners) {
    listener.modulesRenamed(project, modules, oldNameProvider);
  }
}
项目:intellij-ce-playground    文件:AndroidGradleProjectComponent.java   
@Override
public void moduleRemoved(@NotNull Project project, @NotNull Module module) {
  updateBuildVariantView(project);
  for (ModuleListener listener : additionalListeners) {
    listener.moduleRemoved(project, module);
  }
}
项目:intellij-ce-playground    文件:AndroidGradleProjectComponent.java   
@Override
public void beforeModuleRemoved(@NotNull Project project, @NotNull Module module) {
  for (ModuleListener listener : additionalListeners) {
    listener.beforeModuleRemoved(project, module);
  }
}
项目:intellij-ce-playground    文件:AndroidGradleProjectComponent.java   
void addModuleListener(@NotNull ModuleListener listener) {
  additionalListeners.add(listener);
}