Lines 100-107
Link Here
|
100 |
|
100 |
|
101 |
public boolean comment_clear_blank_lines_in_javadoc_comment; |
101 |
public boolean comment_clear_blank_lines_in_javadoc_comment; |
102 |
public boolean comment_clear_blank_lines_in_block_comment; |
102 |
public boolean comment_clear_blank_lines_in_block_comment; |
103 |
public boolean comment_condensed_block_comment; |
103 |
public boolean comment_new_lines_at_block_boundaries; |
104 |
public boolean comment_condensed_javadoc_comment; |
104 |
public boolean comment_new_lines_at_javadoc_boundaries; |
105 |
public boolean comment_format_javadoc_comment; |
105 |
public boolean comment_format_javadoc_comment; |
106 |
public boolean comment_format_line_comment; |
106 |
public boolean comment_format_line_comment; |
107 |
public boolean comment_format_block_comment; |
107 |
public boolean comment_format_block_comment; |
Lines 371-378
Link Here
|
371 |
options.put(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_SWITCH, this.brace_position_for_switch); |
371 |
options.put(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_SWITCH, this.brace_position_for_switch); |
372 |
options.put(DefaultCodeFormatterConstants.FORMATTER_COMMENT_CLEAR_BLANK_LINES_IN_BLOCK_COMMENT, this.comment_clear_blank_lines_in_block_comment ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
372 |
options.put(DefaultCodeFormatterConstants.FORMATTER_COMMENT_CLEAR_BLANK_LINES_IN_BLOCK_COMMENT, this.comment_clear_blank_lines_in_block_comment ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
373 |
options.put(DefaultCodeFormatterConstants.FORMATTER_COMMENT_CLEAR_BLANK_LINES_IN_JAVADOC_COMMENT, this.comment_clear_blank_lines_in_javadoc_comment ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
373 |
options.put(DefaultCodeFormatterConstants.FORMATTER_COMMENT_CLEAR_BLANK_LINES_IN_JAVADOC_COMMENT, this.comment_clear_blank_lines_in_javadoc_comment ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
374 |
options.put(DefaultCodeFormatterConstants.FORMATTER_COMMENT_CONDENSED_BLOCK_COMMENT, this.comment_condensed_block_comment ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
374 |
options.put(DefaultCodeFormatterConstants.FORMATTER_COMMENT_NEW_LINES_AT_BLOCK_BOUNDARIES, this.comment_new_lines_at_block_boundaries ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
375 |
options.put(DefaultCodeFormatterConstants.FORMATTER_COMMENT_CONDENSED_JAVADOC_COMMENT, this.comment_condensed_javadoc_comment ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
375 |
options.put(DefaultCodeFormatterConstants.FORMATTER_COMMENT_NEW_LINES_AT_JAVADOC_BOUNDARIES, this.comment_new_lines_at_javadoc_boundaries ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
376 |
options.put(DefaultCodeFormatterConstants.FORMATTER_COMMENT_FORMAT_JAVADOC_COMMENT, this.comment_format_javadoc_comment ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
376 |
options.put(DefaultCodeFormatterConstants.FORMATTER_COMMENT_FORMAT_JAVADOC_COMMENT, this.comment_format_javadoc_comment ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
377 |
options.put(DefaultCodeFormatterConstants.FORMATTER_COMMENT_FORMAT_LINE_COMMENT, this.comment_format_line_comment ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
377 |
options.put(DefaultCodeFormatterConstants.FORMATTER_COMMENT_FORMAT_LINE_COMMENT, this.comment_format_line_comment ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
378 |
options.put(DefaultCodeFormatterConstants.FORMATTER_COMMENT_FORMAT_BLOCK_COMMENT, this.comment_format_block_comment ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
378 |
options.put(DefaultCodeFormatterConstants.FORMATTER_COMMENT_FORMAT_BLOCK_COMMENT, this.comment_format_block_comment ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
Lines 1105-1117
Link Here
|
1105 |
this.comment_line_length = 80; |
1105 |
this.comment_line_length = 80; |
1106 |
} |
1106 |
} |
1107 |
} |
1107 |
} |
1108 |
final Object commentCondensedBlockCommentOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_COMMENT_CONDENSED_BLOCK_COMMENT); |
1108 |
final Object commentNewLinesAtBlockBoundariesOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_COMMENT_NEW_LINES_AT_BLOCK_BOUNDARIES); |
1109 |
if (commentCondensedBlockCommentOption != null) { |
1109 |
if (commentNewLinesAtBlockBoundariesOption != null) { |
1110 |
this.comment_condensed_block_comment = DefaultCodeFormatterConstants.TRUE.equals(commentCondensedBlockCommentOption); |
1110 |
this.comment_new_lines_at_block_boundaries = DefaultCodeFormatterConstants.TRUE.equals(commentNewLinesAtBlockBoundariesOption); |
1111 |
} |
1111 |
} |
1112 |
final Object commentCondensedJavadocCommentOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_COMMENT_CONDENSED_JAVADOC_COMMENT); |
1112 |
final Object commentNewLinesAtJavadocBoundariesOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_COMMENT_NEW_LINES_AT_JAVADOC_BOUNDARIES); |
1113 |
if (commentCondensedJavadocCommentOption != null) { |
1113 |
if (commentNewLinesAtJavadocBoundariesOption != null) { |
1114 |
this.comment_condensed_javadoc_comment = DefaultCodeFormatterConstants.TRUE.equals(commentCondensedJavadocCommentOption); |
1114 |
this.comment_new_lines_at_javadoc_boundaries = DefaultCodeFormatterConstants.TRUE.equals(commentNewLinesAtJavadocBoundariesOption); |
1115 |
} |
1115 |
} |
1116 |
final Object indentStatementsCompareToBlockOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_INDENT_STATEMENTS_COMPARE_TO_BLOCK); |
1116 |
final Object indentStatementsCompareToBlockOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_INDENT_STATEMENTS_COMPARE_TO_BLOCK); |
1117 |
if (indentStatementsCompareToBlockOption != null) { |
1117 |
if (indentStatementsCompareToBlockOption != null) { |
Lines 2024-2029
Link Here
|
2024 |
this.comment_indent_root_tags = true; |
2024 |
this.comment_indent_root_tags = true; |
2025 |
this.comment_insert_empty_line_before_root_tags = true; |
2025 |
this.comment_insert_empty_line_before_root_tags = true; |
2026 |
this.comment_insert_new_line_for_parameter = true; |
2026 |
this.comment_insert_new_line_for_parameter = true; |
|
|
2027 |
this.comment_new_lines_at_block_boundaries = true; |
2028 |
this.comment_new_lines_at_javadoc_boundaries = true; |
2027 |
this.comment_line_length = 80; |
2029 |
this.comment_line_length = 80; |
2028 |
this.continuation_indentation = 2; |
2030 |
this.continuation_indentation = 2; |
2029 |
this.continuation_indentation_for_array_initializer = 2; |
2031 |
this.continuation_indentation_for_array_initializer = 2; |
Lines 2291-2296
Link Here
|
2291 |
this.comment_indent_root_tags = true; |
2293 |
this.comment_indent_root_tags = true; |
2292 |
this.comment_insert_empty_line_before_root_tags = true; |
2294 |
this.comment_insert_empty_line_before_root_tags = true; |
2293 |
this.comment_insert_new_line_for_parameter = true; |
2295 |
this.comment_insert_new_line_for_parameter = true; |
|
|
2296 |
this.comment_new_lines_at_block_boundaries = true; |
2297 |
this.comment_new_lines_at_javadoc_boundaries = true; |
2294 |
this.comment_line_length = 80; |
2298 |
this.comment_line_length = 80; |
2295 |
this.continuation_indentation = 2; |
2299 |
this.continuation_indentation = 2; |
2296 |
this.continuation_indentation_for_array_initializer = 2; |
2300 |
this.continuation_indentation_for_array_initializer = 2; |