Lines 50-55
Link Here
|
50 |
public int alignment_for_arguments_in_explicit_constructor_call; |
50 |
public int alignment_for_arguments_in_explicit_constructor_call; |
51 |
public int alignment_for_arguments_in_method_invocation; |
51 |
public int alignment_for_arguments_in_method_invocation; |
52 |
public int alignment_for_arguments_in_qualified_allocation_expression; |
52 |
public int alignment_for_arguments_in_qualified_allocation_expression; |
|
|
53 |
public int alignment_for_assignment; |
53 |
public int alignment_for_binary_expression; |
54 |
public int alignment_for_binary_expression; |
54 |
public int alignment_for_compact_if; |
55 |
public int alignment_for_compact_if; |
55 |
public int alignment_for_conditional_expression; |
56 |
public int alignment_for_conditional_expression; |
Lines 320-325
Link Here
|
320 |
options.put(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_EXPLICIT_CONSTRUCTOR_CALL, getAlignment(this.alignment_for_arguments_in_explicit_constructor_call)); |
321 |
options.put(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_EXPLICIT_CONSTRUCTOR_CALL, getAlignment(this.alignment_for_arguments_in_explicit_constructor_call)); |
321 |
options.put(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_METHOD_INVOCATION, getAlignment(this.alignment_for_arguments_in_method_invocation)); |
322 |
options.put(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_METHOD_INVOCATION, getAlignment(this.alignment_for_arguments_in_method_invocation)); |
322 |
options.put(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_QUALIFIED_ALLOCATION_EXPRESSION, getAlignment(this.alignment_for_arguments_in_qualified_allocation_expression)); |
323 |
options.put(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_QUALIFIED_ALLOCATION_EXPRESSION, getAlignment(this.alignment_for_arguments_in_qualified_allocation_expression)); |
|
|
324 |
options.put(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ASSIGNMENT, getAlignment(this.alignment_for_assignment)); |
323 |
options.put(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_BINARY_EXPRESSION, getAlignment(this.alignment_for_binary_expression)); |
325 |
options.put(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_BINARY_EXPRESSION, getAlignment(this.alignment_for_binary_expression)); |
324 |
options.put(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_COMPACT_IF, getAlignment(this.alignment_for_compact_if)); |
326 |
options.put(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_COMPACT_IF, getAlignment(this.alignment_for_compact_if)); |
325 |
options.put(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_CONDITIONAL_EXPRESSION, getAlignment(this.alignment_for_conditional_expression)); |
327 |
options.put(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_CONDITIONAL_EXPRESSION, getAlignment(this.alignment_for_conditional_expression)); |
Lines 621-626
Link Here
|
621 |
this.alignment_for_arguments_in_qualified_allocation_expression = Alignment.M_COMPACT_SPLIT; |
623 |
this.alignment_for_arguments_in_qualified_allocation_expression = Alignment.M_COMPACT_SPLIT; |
622 |
} |
624 |
} |
623 |
} |
625 |
} |
|
|
626 |
final Object alignmentForAssignmentOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ASSIGNMENT); |
627 |
if (alignmentForAssignmentOption != null) { |
628 |
try { |
629 |
this.alignment_for_assignment = Integer.parseInt((String) alignmentForAssignmentOption); |
630 |
} catch (NumberFormatException e) { |
631 |
this.alignment_for_assignment = Alignment.M_ONE_PER_LINE_SPLIT; |
632 |
} catch (ClassCastException e) { |
633 |
this.alignment_for_assignment = Alignment.M_ONE_PER_LINE_SPLIT; |
634 |
} |
635 |
} |
624 |
final Object alignmentForBinaryExpressionOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_BINARY_EXPRESSION); |
636 |
final Object alignmentForBinaryExpressionOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_BINARY_EXPRESSION); |
625 |
if (alignmentForBinaryExpressionOption != null) { |
637 |
if (alignmentForBinaryExpressionOption != null) { |
626 |
try { |
638 |
try { |
Lines 1819-1824
Link Here
|
1819 |
this.alignment_for_arguments_in_explicit_constructor_call = Alignment.M_COMPACT_SPLIT; |
1831 |
this.alignment_for_arguments_in_explicit_constructor_call = Alignment.M_COMPACT_SPLIT; |
1820 |
this.alignment_for_arguments_in_method_invocation = Alignment.M_COMPACT_SPLIT; |
1832 |
this.alignment_for_arguments_in_method_invocation = Alignment.M_COMPACT_SPLIT; |
1821 |
this.alignment_for_arguments_in_qualified_allocation_expression = Alignment.M_COMPACT_SPLIT; |
1833 |
this.alignment_for_arguments_in_qualified_allocation_expression = Alignment.M_COMPACT_SPLIT; |
|
|
1834 |
this.alignment_for_assignment = Alignment.M_NO_ALIGNMENT; |
1822 |
this.alignment_for_binary_expression = Alignment.M_COMPACT_SPLIT; |
1835 |
this.alignment_for_binary_expression = Alignment.M_COMPACT_SPLIT; |
1823 |
this.alignment_for_compact_if = Alignment.M_ONE_PER_LINE_SPLIT | Alignment.M_INDENT_BY_ONE; |
1836 |
this.alignment_for_compact_if = Alignment.M_ONE_PER_LINE_SPLIT | Alignment.M_INDENT_BY_ONE; |
1824 |
this.alignment_for_conditional_expression = Alignment.M_ONE_PER_LINE_SPLIT; |
1837 |
this.alignment_for_conditional_expression = Alignment.M_ONE_PER_LINE_SPLIT; |
Lines 2069-2074
Link Here
|
2069 |
this.alignment_for_arguments_in_explicit_constructor_call = Alignment.M_COMPACT_SPLIT; |
2082 |
this.alignment_for_arguments_in_explicit_constructor_call = Alignment.M_COMPACT_SPLIT; |
2070 |
this.alignment_for_arguments_in_method_invocation = Alignment.M_COMPACT_SPLIT; |
2083 |
this.alignment_for_arguments_in_method_invocation = Alignment.M_COMPACT_SPLIT; |
2071 |
this.alignment_for_arguments_in_qualified_allocation_expression = Alignment.M_COMPACT_SPLIT; |
2084 |
this.alignment_for_arguments_in_qualified_allocation_expression = Alignment.M_COMPACT_SPLIT; |
|
|
2085 |
this.alignment_for_assignment = Alignment.M_NO_ALIGNMENT; |
2072 |
this.alignment_for_binary_expression = Alignment.M_COMPACT_SPLIT; |
2086 |
this.alignment_for_binary_expression = Alignment.M_COMPACT_SPLIT; |
2073 |
this.alignment_for_compact_if = Alignment.M_COMPACT_SPLIT; |
2087 |
this.alignment_for_compact_if = Alignment.M_COMPACT_SPLIT; |
2074 |
this.alignment_for_conditional_expression = Alignment.M_NEXT_PER_LINE_SPLIT; |
2088 |
this.alignment_for_conditional_expression = Alignment.M_NEXT_PER_LINE_SPLIT; |