use of com.intellij.psi.codeStyle.CommonCodeStyleSettings in project intellij-community by JetBrains.
the class WrapperTest method testCallParametersWrappingChopped.
public void testCallParametersWrappingChopped() throws Exception {
CommonCodeStyleSettings settings = getSettings(JavaLanguage.INSTANCE);
defaultCodeStyle();
settings.CALL_PARAMETERS_WRAP = CommonCodeStyleSettings.WRAP_AS_NEEDED | CommonCodeStyleSettings.WRAP_ON_EVERY_ITEM;
settings.CALL_PARAMETERS_RPAREN_ON_NEXT_LINE = false;
settings.ALIGN_MULTILINE_PARAMETERS_IN_CALLS = true;
settings.CALL_PARAMETERS_LPAREN_ON_NEXT_LINE = false;
settings.RIGHT_MARGIN = 50;
doTest("CallParameterList", "CallParameterList_chopped");
}
use of com.intellij.psi.codeStyle.CommonCodeStyleSettings in project intellij-community by JetBrains.
the class WrapperTest method testBinaryOperationNormal.
public void testBinaryOperationNormal() throws Exception {
CommonCodeStyleSettings settings = getSettings(JavaLanguage.INSTANCE);
defaultCodeStyle();
settings.BINARY_OPERATION_WRAP = CommonCodeStyleSettings.WRAP_AS_NEEDED;
settings.RIGHT_MARGIN = 27;
doTest("BinaryOperation", "BinaryOperation_normal");
}
use of com.intellij.psi.codeStyle.CommonCodeStyleSettings in project intellij-community by JetBrains.
the class WrapperTest method testForStatementNormal.
public void testForStatementNormal() throws Exception {
CommonCodeStyleSettings settings = getSettings(JavaLanguage.INSTANCE);
defaultCodeStyle();
settings.FOR_STATEMENT_WRAP = CommonCodeStyleSettings.WRAP_AS_NEEDED | CommonCodeStyleSettings.WRAP_ON_EVERY_ITEM;
settings.RIGHT_MARGIN = 80;
doTest("ForStatement", "ForStatement_normal");
}
use of com.intellij.psi.codeStyle.CommonCodeStyleSettings in project intellij-community by JetBrains.
the class WrapperTest method testExtendsListWrappingChopped.
public void testExtendsListWrappingChopped() throws Exception {
CommonCodeStyleSettings settings = getSettings(JavaLanguage.INSTANCE);
defaultCodeStyle();
settings.EXTENDS_KEYWORD_WRAP = CommonCodeStyleSettings.DO_NOT_WRAP;
settings.EXTENDS_LIST_WRAP = CommonCodeStyleSettings.WRAP_AS_NEEDED | CommonCodeStyleSettings.WRAP_ON_EVERY_ITEM;
settings.RIGHT_MARGIN = 45;
doTest("ExtendsListWrapping", "ExtendsListWrapping_chopped");
}
use of com.intellij.psi.codeStyle.CommonCodeStyleSettings in project intellij-community by JetBrains.
the class WrapperTest method testForStatementBothParensMoved.
public void testForStatementBothParensMoved() throws Exception {
CommonCodeStyleSettings settings = getSettings(JavaLanguage.INSTANCE);
defaultCodeStyle();
settings.FOR_STATEMENT_WRAP = CommonCodeStyleSettings.WRAP_AS_NEEDED | CommonCodeStyleSettings.WRAP_ON_EVERY_ITEM;
settings.FOR_STATEMENT_LPAREN_ON_NEXT_LINE = true;
settings.FOR_STATEMENT_RPAREN_ON_NEXT_LINE = true;
settings.RIGHT_MARGIN = 80;
doTest("ForStatement", "ForStatement_both");
}
Aggregations