}
}
private void addChangesForUpdatedReferences(RenameIdType descriptor, CompositeChange compositeChange, IProgressMonitor pm)
throws CoreException {
IBeansConfig config = BeansCorePlugin.getModel().getConfig(file);
if (config != null) {
Set<IBeansConfig> visitedResources = new HashSet<IBeansConfig>();
visitedResources.add(config);
// rename id in imported configs
for (IBeansImport import_ : config.getImports()) {
for (IBeansConfig bc : import_.getImportedBeansConfigs()) {
addChangesForUpdateReferences(bc, descriptor,
compositeChange, visitedResources, pm);
}
}
// rename id in configs that import this one
IBeansConfig importingBeansConfig = BeansModelUtils.getImportingBeansConfig(config);
if (importingBeansConfig != null) {
addChangesForUpdateReferences(importingBeansConfig, descriptor, compositeChange,
visitedResources, pm);
}