Fixed IDEA-117789 Eclipse code style import: "Never join already wrapped lines" seems to be ignored

This commit is contained in:
Rustam Vishnyakov
2014-10-21 13:27:05 +04:00
parent 41d54c3f7e
commit 60332bb405
2 changed files with 3 additions and 1 deletions
@@ -60,7 +60,7 @@ org.eclipse.jdt.core.formatter.blank_lines_before_package=Java:BLANK_LINES_BEFOR
#org.eclipse.jdt.core.formatter.comment.format_line_comments=
#org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=
#org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=
#org.eclipse.jdt.core.formatter.join_wrapped_lines=
org.eclipse.jdt.core.formatter.join_wrapped_lines=Java:KEEP_LINE_BREAKS
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=Java:<Programmatic>
#org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=Java:SPACE_BEFORE_COMMA
@@ -143,6 +143,7 @@ public class EclipseSettingsImportTest extends PlatformTestCase {
javaSettings.SPACE_BEFORE_METHOD_LBRACE = false;
javaSettings.SPACE_BEFORE_CLASS_LBRACE = false;
javaSettings.SPACE_BEFORE_ANOTATION_PARAMETER_LIST = true;
javaSettings.KEEP_LINE_BREAKS = false;
InputStream inputStream = new FileInputStream(input);
try {
@@ -257,6 +258,7 @@ public class EclipseSettingsImportTest extends PlatformTestCase {
assertTrue(javaSettings.SPACE_BEFORE_METHOD_LBRACE);
assertTrue(javaSettings.SPACE_BEFORE_CLASS_LBRACE);
assertFalse(javaSettings.SPACE_BEFORE_ANOTATION_PARAMETER_LIST);
assertTrue(javaSettings.KEEP_LINE_BREAKS);
}
finally {
inputStream.close();