mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Provide compatibility with old OTHER_INDENT_OPTIONS section (IDEA-130601)
This commit is contained in:
@@ -918,7 +918,15 @@ public class CommonCodeStyleSettings {
|
||||
|
||||
@Override
|
||||
public void writeExternal(Element element) throws WriteExternalException {
|
||||
DefaultJDOMExternalizer.writeExternal(this, element, new DifferenceFilter<IndentOptions>(this, new IndentOptions()));
|
||||
DefaultJDOMExternalizer.writeExternal(this, element, new DefaultJDOMExternalizer.JDOMFilter() {
|
||||
@Override
|
||||
public boolean isAccept(@NotNull Field field) {
|
||||
if ("KEEP_INDENTS_ON_EMPTY_LINES".equals(field.getName())) {
|
||||
return KEEP_INDENTS_ON_EMPTY_LINES;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void serialize(Element indentOptionsElement, final IndentOptions defaultOptions) {
|
||||
|
||||
Reference in New Issue
Block a user