use of com.intellij.openapi.externalSystem.service.ExternalSystemFacadeManager in project intellij-community by JetBrains.
the class ProjectRenameAware method beAware.
public static void beAware(@NotNull Project project) {
final ExternalSystemFacadeManager facadeManager = ServiceManager.getService(ExternalSystemFacadeManager.class);
for (ExternalSystemManager<?, ?, ?, ?, ?> manager : ExternalSystemApiUtil.getAllManagers()) {
AbstractExternalSystemSettings settings = manager.getSettingsProvider().fun(project);
//noinspection unchecked
settings.subscribe(new ExternalSystemSettingsListenerAdapter() {
@Override
public void onProjectRenamed(@NotNull String oldName, @NotNull String newName) {
facadeManager.onProjectRename(oldName, newName);
}
});
}
}
Aggregations