@Override public void moduleAdded(@NotNull Project project, @NotNull Module module) { updateBuildVariantView(project); for (ModuleListener listener : additionalListeners) { listener.moduleAdded(project, module); } }
@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); } }
@Override public void moduleRemoved(@NotNull Project project, @NotNull Module module) { updateBuildVariantView(project); for (ModuleListener listener : additionalListeners) { listener.moduleRemoved(project, module); } }
@Override public void beforeModuleRemoved(@NotNull Project project, @NotNull Module module) { for (ModuleListener listener : additionalListeners) { listener.beforeModuleRemoved(project, module); } }
void addModuleListener(@NotNull ModuleListener listener) { additionalListeners.add(listener); }