From 42a8988fcfe6361cc4f37039a961bc76023cb054 Mon Sep 17 00:00:00 2001 From: Rustam Vishnyakov Date: Tue, 19 Jun 2018 19:50:45 +0300 Subject: [PATCH] Replaced deprecated API usages --- .../plugins/relaxNG/convert/ConvertSchemaSettingsImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xml/relaxng/src/org/intellij/plugins/relaxNG/convert/ConvertSchemaSettingsImpl.java b/xml/relaxng/src/org/intellij/plugins/relaxNG/convert/ConvertSchemaSettingsImpl.java index d66fd6e7d69e..cd20cc598466 100644 --- a/xml/relaxng/src/org/intellij/plugins/relaxNG/convert/ConvertSchemaSettingsImpl.java +++ b/xml/relaxng/src/org/intellij/plugins/relaxNG/convert/ConvertSchemaSettingsImpl.java @@ -16,6 +16,7 @@ package org.intellij.plugins.relaxNG.convert; +import com.intellij.application.options.CodeStyle; import com.intellij.openapi.actionSystem.LangDataKeys; import com.intellij.openapi.fileChooser.FileChooserDescriptor; import com.intellij.openapi.fileChooser.FileChooserDescriptorFactory; @@ -30,7 +31,6 @@ import com.intellij.openapi.vfs.CharsetToolkit; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.openapi.vfs.encoding.EncodingProjectManager; import com.intellij.psi.codeStyle.CodeStyleSettings; -import com.intellij.psi.codeStyle.CodeStyleSettingsManager; import com.intellij.ui.DocumentAdapter; import org.intellij.plugins.relaxNG.compact.RncFileType; import org.jetbrains.annotations.NotNull; @@ -118,7 +118,7 @@ public class ConvertSchemaSettingsImpl implements ConvertSchemaSettings { final Charset charset = EncodingProjectManager.getInstance(project).getDefaultCharset(); myEncoding.setSelectedItem(charset.name()); - final CodeStyleSettings styleSettings = CodeStyleSettingsManager.getSettings(project); + final CodeStyleSettings styleSettings = CodeStyle.getSettings(project); final int indent = styleSettings.getIndentSize(type); myIndent.setText(String.valueOf(indent));