Lines 117-122
Link Here
|
117 |
public boolean indent_body_declarations_compare_to_enum_declaration_header; |
117 |
public boolean indent_body_declarations_compare_to_enum_declaration_header; |
118 |
public boolean indent_body_declarations_compare_to_type_header; |
118 |
public boolean indent_body_declarations_compare_to_type_header; |
119 |
public boolean indent_breaks_compare_to_cases; |
119 |
public boolean indent_breaks_compare_to_cases; |
|
|
120 |
public boolean indent_comments_on_first_column; |
120 |
public boolean indent_empty_lines; |
121 |
public boolean indent_empty_lines; |
121 |
public boolean indent_switchstatements_compare_to_cases; |
122 |
public boolean indent_switchstatements_compare_to_cases; |
122 |
public boolean indent_switchstatements_compare_to_switch; |
123 |
public boolean indent_switchstatements_compare_to_switch; |
Lines 390-395
Link Here
|
390 |
options.put(DefaultCodeFormatterConstants.FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_ENUM_DECLARATION_HEADER, this.indent_body_declarations_compare_to_enum_declaration_header ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
391 |
options.put(DefaultCodeFormatterConstants.FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_ENUM_DECLARATION_HEADER, this.indent_body_declarations_compare_to_enum_declaration_header ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
391 |
options.put(DefaultCodeFormatterConstants.FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_TYPE_HEADER, this.indent_body_declarations_compare_to_type_header ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
392 |
options.put(DefaultCodeFormatterConstants.FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_TYPE_HEADER, this.indent_body_declarations_compare_to_type_header ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
392 |
options.put(DefaultCodeFormatterConstants.FORMATTER_INDENT_BREAKS_COMPARE_TO_CASES, this.indent_breaks_compare_to_cases ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
393 |
options.put(DefaultCodeFormatterConstants.FORMATTER_INDENT_BREAKS_COMPARE_TO_CASES, this.indent_breaks_compare_to_cases ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
|
|
394 |
options.put(DefaultCodeFormatterConstants.FORMATTER_INDENT_COMMENTS_ON_FIRST_COLUMN, this.indent_comments_on_first_column ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
393 |
options.put(DefaultCodeFormatterConstants.FORMATTER_INDENT_EMPTY_LINES, this.indent_empty_lines ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
395 |
options.put(DefaultCodeFormatterConstants.FORMATTER_INDENT_EMPTY_LINES, this.indent_empty_lines ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
394 |
options.put(DefaultCodeFormatterConstants.FORMATTER_INDENT_SWITCHSTATEMENTS_COMPARE_TO_CASES, this.indent_switchstatements_compare_to_cases ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
396 |
options.put(DefaultCodeFormatterConstants.FORMATTER_INDENT_SWITCHSTATEMENTS_COMPARE_TO_CASES, this.indent_switchstatements_compare_to_cases ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
395 |
options.put(DefaultCodeFormatterConstants.FORMATTER_INDENT_SWITCHSTATEMENTS_COMPARE_TO_SWITCH, this.indent_switchstatements_compare_to_switch ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
397 |
options.put(DefaultCodeFormatterConstants.FORMATTER_INDENT_SWITCHSTATEMENTS_COMPARE_TO_SWITCH, this.indent_switchstatements_compare_to_switch ? DefaultCodeFormatterConstants.TRUE : DefaultCodeFormatterConstants.FALSE); |
Lines 1100-1105
Link Here
|
1100 |
if (indentBreaksCompareToCasesOption != null) { |
1102 |
if (indentBreaksCompareToCasesOption != null) { |
1101 |
this.indent_breaks_compare_to_cases = DefaultCodeFormatterConstants.TRUE.equals(indentBreaksCompareToCasesOption); |
1103 |
this.indent_breaks_compare_to_cases = DefaultCodeFormatterConstants.TRUE.equals(indentBreaksCompareToCasesOption); |
1102 |
} |
1104 |
} |
|
|
1105 |
final Object indentCommentsOnFirstColumnOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_INDENT_COMMENTS_ON_FIRST_COLUMN); |
1106 |
if (indentCommentsOnFirstColumnOption != null) { |
1107 |
this.indent_comments_on_first_column = DefaultCodeFormatterConstants.TRUE.equals(indentCommentsOnFirstColumnOption); |
1108 |
} |
1103 |
final Object indentEmptyLinesOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_INDENT_EMPTY_LINES); |
1109 |
final Object indentEmptyLinesOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_INDENT_EMPTY_LINES); |
1104 |
if (indentEmptyLinesOption != null) { |
1110 |
if (indentEmptyLinesOption != null) { |
1105 |
this.indent_empty_lines = DefaultCodeFormatterConstants.TRUE.equals(indentEmptyLinesOption); |
1111 |
this.indent_empty_lines = DefaultCodeFormatterConstants.TRUE.equals(indentEmptyLinesOption); |
Lines 1961-1966
Link Here
|
1961 |
this.indent_body_declarations_compare_to_enum_declaration_header = true; |
1967 |
this.indent_body_declarations_compare_to_enum_declaration_header = true; |
1962 |
this.indent_body_declarations_compare_to_type_header = true; |
1968 |
this.indent_body_declarations_compare_to_type_header = true; |
1963 |
this.indent_breaks_compare_to_cases = true; |
1969 |
this.indent_breaks_compare_to_cases = true; |
|
|
1970 |
this.indent_comments_on_first_column = true; |
1964 |
this.indent_empty_lines = false; |
1971 |
this.indent_empty_lines = false; |
1965 |
this.indent_switchstatements_compare_to_cases = true; |
1972 |
this.indent_switchstatements_compare_to_cases = true; |
1966 |
this.indent_switchstatements_compare_to_switch = true; |
1973 |
this.indent_switchstatements_compare_to_switch = true; |
Lines 2151-2156
Link Here
|
2151 |
setJavaConventionsSettings(); |
2158 |
setJavaConventionsSettings(); |
2152 |
this.tab_char = TAB; |
2159 |
this.tab_char = TAB; |
2153 |
this.tab_size = 4; |
2160 |
this.tab_size = 4; |
|
|
2161 |
this.indent_comments_on_first_column = false; |
2154 |
} |
2162 |
} |
2155 |
|
2163 |
|
2156 |
public void setJavaConventionsSettings() { |
2164 |
public void setJavaConventionsSettings() { |
Lines 2220-2225
Link Here
|
2220 |
this.indent_body_declarations_compare_to_enum_declaration_header = true; |
2228 |
this.indent_body_declarations_compare_to_enum_declaration_header = true; |
2221 |
this.indent_body_declarations_compare_to_type_header = true; |
2229 |
this.indent_body_declarations_compare_to_type_header = true; |
2222 |
this.indent_breaks_compare_to_cases = true; |
2230 |
this.indent_breaks_compare_to_cases = true; |
|
|
2231 |
this.indent_comments_on_first_column = true; |
2223 |
this.indent_empty_lines = false; |
2232 |
this.indent_empty_lines = false; |
2224 |
this.indent_switchstatements_compare_to_cases = true; |
2233 |
this.indent_switchstatements_compare_to_cases = true; |
2225 |
this.indent_switchstatements_compare_to_switch = false; |
2234 |
this.indent_switchstatements_compare_to_switch = false; |