mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Migration to new CodeStyle API
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
*/
|
||||
package org.jdom.output;
|
||||
|
||||
import com.intellij.application.options.CodeStyle;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.vfs.CharsetToolkit;
|
||||
import com.intellij.psi.codeStyle.CodeStyleSettingsManager;
|
||||
import org.jdom.Element;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -47,7 +47,7 @@ public class EclipseJDOMUtil {
|
||||
}
|
||||
|
||||
public static void output(@NotNull Element element, @NotNull Writer writer, @NotNull Project project) throws IOException {
|
||||
String lineSeparator = CodeStyleSettingsManager.getSettings(project).getLineSeparator();
|
||||
String lineSeparator = CodeStyle.getSettings(project).getLineSeparator();
|
||||
writer.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
|
||||
writer.write(lineSeparator);
|
||||
createOutputter(lineSeparator).output(element, writer);
|
||||
|
||||
Reference in New Issue
Block a user