public static void notifyProjectsWhichUsesThisSettings(Settings deletedSettings, Project project,
Settings defaultSettings) {
Project[] openProjects = ProjectManagerImpl.getInstance().getOpenProjects();
for (Project openProject : openProjects) {
ProjectSettingsComponent component = openProject.getComponent(ProjectSettingsComponent.class);
if (component != null) {
Settings state = component.getSettings();
if (deletedSettings.getId().equals(state.getId())) {
component.loadState(defaultSettings);
if (project != openProject) {
Notifier.notifyDeletedSettings(component.getProject());
}
}
}
}
}