mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-187187 Save settings failed: "Cannot get ScratchFileService component state"
This commit is contained in:
@@ -214,14 +214,13 @@ public abstract class PerFileMappingsBase<T> implements PersistentStateComponent
|
||||
return o1.getPath().compareTo(o2.getPath());
|
||||
});
|
||||
for (VirtualFile file : files) {
|
||||
final T dialect = myMappings.get(file);
|
||||
String value = serialize(dialect);
|
||||
if (value != null) {
|
||||
final Element child = new Element("file");
|
||||
element.addContent(child);
|
||||
child.setAttribute("url", file == null ? "PROJECT" : file.getUrl());
|
||||
child.setAttribute(getValueAttribute(), value);
|
||||
}
|
||||
T dialect = myMappings.get(file);
|
||||
String value = dialect == null ? null : serialize(dialect);
|
||||
if (value == null) continue;
|
||||
Element child = new Element("file");
|
||||
element.addContent(child);
|
||||
child.setAttribute("url", file == null ? "PROJECT" : file.getUrl());
|
||||
child.setAttribute(getValueAttribute(), value);
|
||||
}
|
||||
return element;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user