mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
resource bundle editor: do not update tree nodes if duplicated-key property is appeared IDEA-162113
This commit is contained in:
+3
-2
@@ -69,12 +69,13 @@ public class ResourceBundleFileStructureViewElement implements StructureViewTree
|
||||
final HashSet<String> remains = new HashSet<>(myElements.keySet());
|
||||
for (Map.Entry<String, Collection<IProperty>> entry : propertyNames.entrySet()) {
|
||||
final String propKey = entry.getKey();
|
||||
final IProperty representative = entry.getValue().iterator().next();
|
||||
Collection<IProperty> properties = entry.getValue();
|
||||
final ResourceBundlePropertyStructureViewElement oldPropertyNode = myElements.get(propKey);
|
||||
if (oldPropertyNode != null && oldPropertyNode.getProperty() == representative) {
|
||||
if (oldPropertyNode != null && properties.contains(oldPropertyNode.getProperty())) {
|
||||
remains.remove(propKey);
|
||||
continue;
|
||||
}
|
||||
final IProperty representative = properties.iterator().next();
|
||||
final ResourceBundlePropertyStructureViewElement node = new ResourceBundlePropertyStructureViewElement(representative);
|
||||
myElements.put(propKey, node);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user