diff options
Diffstat (limited to 'platform/platform-tests/testSrc/com/intellij/formatting/GeneralCodeFormatterTest.java')
-rw-r--r-- | platform/platform-tests/testSrc/com/intellij/formatting/GeneralCodeFormatterTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/platform-tests/testSrc/com/intellij/formatting/GeneralCodeFormatterTest.java b/platform/platform-tests/testSrc/com/intellij/formatting/GeneralCodeFormatterTest.java index 7814e6e5f109..861a4b2c6e4b 100644 --- a/platform/platform-tests/testSrc/com/intellij/formatting/GeneralCodeFormatterTest.java +++ b/platform/platform-tests/testSrc/com/intellij/formatting/GeneralCodeFormatterTest.java @@ -109,7 +109,7 @@ import java.io.IOException; indentOptions.INDENT_SIZE = 4; indentOptions.LABEL_INDENT_SIZE = 1; final CodeStyleSettings settings = new CodeStyleSettings(false); - settings.RIGHT_MARGIN = myRightMargin; + settings.setDefaultRightMargin(myRightMargin); try { FormatterEx.getInstanceEx().adjustLineIndent(model, settings, indentOptions, initialText.length() - 1, new TextRange(0, initialText.length())); } @@ -200,7 +200,7 @@ import java.io.IOException; indentOptions.INDENT_SIZE = 4; indentOptions.LABEL_INDENT_SIZE = 1; final CodeStyleSettings settings = new CodeStyleSettings(false); - settings.RIGHT_MARGIN = myRightMargin; + settings.setDefaultRightMargin(myRightMargin); try { FormatterEx.getInstanceEx().format(model, settings, indentOptions, indentOptions, null); } |