public void testSpaceAroundOperators() throws Exception { final CommonCodeStyleSettings settings = getSettings(DartLanguage.INSTANCE); settings.KEEP_LINE_BREAKS = false; settings.SPACE_AROUND_ASSIGNMENT_OPERATORS = false; settings.SPACE_AROUND_LOGICAL_OPERATORS = false; settings.SPACE_AROUND_EQUALITY_OPERATORS = false; settings.SPACE_AROUND_RELATIONAL_OPERATORS = false; settings.SPACE_AROUND_ADDITIVE_OPERATORS = false; settings.SPACE_AROUND_MULTIPLICATIVE_OPERATORS = false; doTest(); }
private static void useSpacesAroundAssignmentOperator( boolean value, Project project, Language language) { CodeStyleSettings settings = CodeStyleSettingsManager.getSettings(project); CommonCodeStyleSettings common = settings.getCommonSettings(language); common.SPACE_AROUND_ASSIGNMENT_OPERATORS = value; }