Added
Link Here
|
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2006 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
6 |
* http://www.eclipse.org/legal/epl-v10.html |
7 |
* |
8 |
* Contributors: |
9 |
* IBM Corporation - initial API and implementation |
10 |
* Sergey Prigogin, Google |
11 |
*******************************************************************************/ |
12 |
package org.eclipse.cdt.internal.formatter; |
13 |
|
14 |
import java.util.HashMap; |
15 |
import java.util.Map; |
16 |
|
17 |
import org.eclipse.cdt.core.formatter.CodeFormatterConstants; |
18 |
import org.eclipse.cdt.core.CCorePlugin; |
19 |
import org.eclipse.cdt.internal.formatter.align.Alignment; |
20 |
|
21 |
|
22 |
public class DefaultCodeFormatterOptions { |
23 |
public static final int TAB = 1; |
24 |
public static final int SPACE = 2; |
25 |
public static final int MIXED = 4; |
26 |
|
27 |
public static DefaultCodeFormatterOptions getDefaultSettings() { |
28 |
DefaultCodeFormatterOptions options = new DefaultCodeFormatterOptions(); |
29 |
options.setDefaultSettings(); |
30 |
return options; |
31 |
} |
32 |
|
33 |
public static DefaultCodeFormatterOptions getEclipseDefaultSettings() { |
34 |
DefaultCodeFormatterOptions options = new DefaultCodeFormatterOptions(); |
35 |
options.setEclipseDefaultSettings(); |
36 |
return options; |
37 |
} |
38 |
|
39 |
public int alignment_for_arguments_in_allocation_expression; |
40 |
public int alignment_for_arguments_in_enum_constant; |
41 |
public int alignment_for_arguments_in_explicit_constructor_call; |
42 |
public int alignment_for_arguments_in_method_invocation; |
43 |
public int alignment_for_arguments_in_qualified_allocation_expression; |
44 |
public int alignment_for_assignment; |
45 |
public int alignment_for_binary_expression; |
46 |
public int alignment_for_compact_if; |
47 |
public int alignment_for_conditional_expression; |
48 |
public int alignment_for_enum_constants; |
49 |
public int alignment_for_expressions_in_array_initializer; |
50 |
public int alignment_for_multiple_fields; |
51 |
public int alignment_for_parameters_in_constructor_declaration; |
52 |
public int alignment_for_parameters_in_method_declaration; |
53 |
public int alignment_for_selector_in_method_invocation; |
54 |
public int alignment_for_superclass_in_type_declaration; |
55 |
public int alignment_for_superinterfaces_in_enum_declaration; |
56 |
public int alignment_for_superinterfaces_in_type_declaration; |
57 |
public int alignment_for_throws_clause_in_constructor_declaration; |
58 |
public int alignment_for_throws_clause_in_method_declaration; |
59 |
|
60 |
public boolean align_type_members_on_columns; |
61 |
|
62 |
public String brace_position_for_array_initializer; |
63 |
public String brace_position_for_block; |
64 |
public String brace_position_for_block_in_case; |
65 |
public String brace_position_for_constructor_declaration; |
66 |
public String brace_position_for_enum_constant; |
67 |
public String brace_position_for_enum_declaration; |
68 |
public String brace_position_for_method_declaration; |
69 |
public String brace_position_for_type_declaration; |
70 |
public String brace_position_for_switch; |
71 |
|
72 |
public int continuation_indentation; |
73 |
public int continuation_indentation_for_array_initializer; |
74 |
|
75 |
// public int blank_lines_after_imports; |
76 |
// public int blank_lines_after_package; |
77 |
// public int blank_lines_before_field; |
78 |
// public int blank_lines_before_first_class_body_declaration; |
79 |
// public int blank_lines_before_imports; |
80 |
// public int blank_lines_before_member_type; |
81 |
// public int blank_lines_before_method; |
82 |
// public int blank_lines_before_new_chunk; |
83 |
// public int blank_lines_before_package; |
84 |
// public int blank_lines_between_type_declarations; |
85 |
// public int blank_lines_at_beginning_of_method_body; |
86 |
|
87 |
// public boolean comment_clear_blank_lines; |
88 |
// public boolean comment_format; |
89 |
// public boolean comment_format_header; |
90 |
// public boolean comment_format_html; |
91 |
// public boolean comment_format_source; |
92 |
// public int comment_line_length; |
93 |
|
94 |
public boolean indent_statements_compare_to_block; |
95 |
public boolean indent_statements_compare_to_body; |
96 |
public boolean indent_body_declarations_compare_to_enum_constant_header; |
97 |
public boolean indent_body_declarations_compare_to_enum_declaration_header; |
98 |
public boolean indent_body_declarations_compare_to_type_header; |
99 |
public boolean indent_breaks_compare_to_cases; |
100 |
public boolean indent_empty_lines; |
101 |
public boolean indent_switchstatements_compare_to_cases; |
102 |
public boolean indent_switchstatements_compare_to_switch; |
103 |
public int indentation_size; |
104 |
|
105 |
// public boolean insert_new_line_after_opening_brace_in_array_initializer; |
106 |
// public boolean insert_new_line_at_end_of_file_if_missing; |
107 |
// public boolean insert_new_line_before_catch_in_try_statement; |
108 |
// public boolean insert_new_line_before_closing_brace_in_array_initializer; |
109 |
// public boolean insert_new_line_before_else_in_if_statement; |
110 |
// public boolean insert_new_line_before_finally_in_try_statement; |
111 |
// public boolean insert_new_line_before_while_in_do_statement; |
112 |
// public boolean insert_new_line_in_empty_block; |
113 |
// public boolean insert_new_line_in_empty_enum_constant; |
114 |
// public boolean insert_new_line_in_empty_enum_declaration; |
115 |
// public boolean insert_new_line_in_empty_method_body; |
116 |
// public boolean insert_new_line_in_empty_type_declaration; |
117 |
// public boolean insert_space_after_and_in_type_parameter; |
118 |
// public boolean insert_space_after_assignment_operator; |
119 |
// public boolean insert_space_after_binary_operator; |
120 |
// public boolean insert_space_after_closing_angle_bracket_in_type_arguments; |
121 |
// public boolean insert_space_after_closing_angle_bracket_in_type_parameters; |
122 |
// public boolean insert_space_after_closing_paren_in_cast; |
123 |
// public boolean insert_space_after_closing_brace_in_block; |
124 |
// public boolean insert_space_after_colon_in_assert; |
125 |
// public boolean insert_space_after_colon_in_case; |
126 |
// public boolean insert_space_after_colon_in_conditional; |
127 |
// public boolean insert_space_after_colon_in_for; |
128 |
// public boolean insert_space_after_colon_in_labeled_statement; |
129 |
// public boolean insert_space_after_comma_in_allocation_expression; |
130 |
// public boolean insert_space_after_comma_in_array_initializer; |
131 |
// public boolean insert_space_after_comma_in_constructor_declaration_parameters; |
132 |
// public boolean insert_space_after_comma_in_constructor_declaration_throws; |
133 |
// public boolean insert_space_after_comma_in_enum_constant_arguments; |
134 |
// public boolean insert_space_after_comma_in_enum_declarations; |
135 |
// public boolean insert_space_after_comma_in_explicit_constructor_call_arguments; |
136 |
// public boolean insert_space_after_comma_in_for_increments; |
137 |
// public boolean insert_space_after_comma_in_for_inits; |
138 |
// public boolean insert_space_after_comma_in_method_invocation_arguments; |
139 |
// public boolean insert_space_after_comma_in_method_declaration_parameters; |
140 |
// public boolean insert_space_after_comma_in_method_declaration_throws; |
141 |
// public boolean insert_space_after_comma_in_multiple_field_declarations; |
142 |
// public boolean insert_space_after_comma_in_multiple_local_declarations; |
143 |
// public boolean insert_space_after_comma_in_parameterized_type_reference; |
144 |
// public boolean insert_space_after_comma_in_superinterfaces; |
145 |
// public boolean insert_space_after_comma_in_type_arguments; |
146 |
// public boolean insert_space_after_comma_in_type_parameters; |
147 |
// public boolean insert_space_after_ellipsis; |
148 |
// public boolean insert_space_after_opening_angle_bracket_in_parameterized_type_reference; |
149 |
// public boolean insert_space_after_opening_angle_bracket_in_type_arguments; |
150 |
// public boolean insert_space_after_opening_angle_bracket_in_type_parameters; |
151 |
// public boolean insert_space_after_opening_bracket_in_array_allocation_expression; |
152 |
// public boolean insert_space_after_opening_bracket_in_array_reference; |
153 |
// public boolean insert_space_after_opening_brace_in_array_initializer; |
154 |
// public boolean insert_space_after_opening_paren_in_cast; |
155 |
// public boolean insert_space_after_opening_paren_in_catch; |
156 |
// public boolean insert_space_after_opening_paren_in_constructor_declaration; |
157 |
// public boolean insert_space_after_opening_paren_in_enum_constant; |
158 |
// public boolean insert_space_after_opening_paren_in_for; |
159 |
// public boolean insert_space_after_opening_paren_in_if; |
160 |
// public boolean insert_space_after_opening_paren_in_method_declaration; |
161 |
// public boolean insert_space_after_opening_paren_in_method_invocation; |
162 |
// public boolean insert_space_after_opening_paren_in_parenthesized_expression; |
163 |
// public boolean insert_space_after_opening_paren_in_switch; |
164 |
// public boolean insert_space_after_opening_paren_in_synchronized; |
165 |
// public boolean insert_space_after_opening_paren_in_while; |
166 |
// public boolean insert_space_after_postfix_operator; |
167 |
// public boolean insert_space_after_prefix_operator; |
168 |
// public boolean insert_space_after_question_in_conditional; |
169 |
// public boolean insert_space_after_question_in_wilcard; |
170 |
// public boolean insert_space_after_semicolon_in_for; |
171 |
// public boolean insert_space_after_unary_operator; |
172 |
// public boolean insert_space_before_and_in_type_parameter; |
173 |
// public boolean insert_space_before_assignment_operator; |
174 |
// public boolean insert_space_before_binary_operator; |
175 |
// public boolean insert_space_before_closing_angle_bracket_in_parameterized_type_reference; |
176 |
// public boolean insert_space_before_closing_angle_bracket_in_type_arguments; |
177 |
// public boolean insert_space_before_closing_angle_bracket_in_type_parameters; |
178 |
// public boolean insert_space_before_closing_brace_in_array_initializer; |
179 |
// public boolean insert_space_before_closing_bracket_in_array_allocation_expression; |
180 |
// public boolean insert_space_before_closing_bracket_in_array_reference; |
181 |
// public boolean insert_space_before_closing_paren_in_cast; |
182 |
// public boolean insert_space_before_closing_paren_in_catch; |
183 |
// public boolean insert_space_before_closing_paren_in_constructor_declaration; |
184 |
// public boolean insert_space_before_closing_paren_in_enum_constant; |
185 |
// public boolean insert_space_before_closing_paren_in_for; |
186 |
// public boolean insert_space_before_closing_paren_in_if; |
187 |
// public boolean insert_space_before_closing_paren_in_method_declaration; |
188 |
// public boolean insert_space_before_closing_paren_in_method_invocation; |
189 |
// public boolean insert_space_before_closing_paren_in_parenthesized_expression; |
190 |
// public boolean insert_space_before_closing_paren_in_switch; |
191 |
// public boolean insert_space_before_closing_paren_in_synchronized; |
192 |
// public boolean insert_space_before_closing_paren_in_while; |
193 |
// public boolean insert_space_before_colon_in_assert; |
194 |
// public boolean insert_space_before_colon_in_case; |
195 |
// public boolean insert_space_before_colon_in_conditional; |
196 |
// public boolean insert_space_before_colon_in_default; |
197 |
// public boolean insert_space_before_colon_in_for; |
198 |
// public boolean insert_space_before_colon_in_labeled_statement; |
199 |
// public boolean insert_space_before_comma_in_allocation_expression; |
200 |
// public boolean insert_space_before_comma_in_array_initializer; |
201 |
// public boolean insert_space_before_comma_in_constructor_declaration_parameters; |
202 |
// public boolean insert_space_before_comma_in_constructor_declaration_throws; |
203 |
// public boolean insert_space_before_comma_in_enum_constant_arguments; |
204 |
// public boolean insert_space_before_comma_in_enum_declarations; |
205 |
// public boolean insert_space_before_comma_in_explicit_constructor_call_arguments; |
206 |
// public boolean insert_space_before_comma_in_for_increments; |
207 |
// public boolean insert_space_before_comma_in_for_inits; |
208 |
// public boolean insert_space_before_comma_in_method_invocation_arguments; |
209 |
// public boolean insert_space_before_comma_in_method_declaration_parameters; |
210 |
// public boolean insert_space_before_comma_in_method_declaration_throws; |
211 |
// public boolean insert_space_before_comma_in_multiple_field_declarations; |
212 |
// public boolean insert_space_before_comma_in_multiple_local_declarations; |
213 |
// public boolean insert_space_before_comma_in_parameterized_type_reference; |
214 |
// public boolean insert_space_before_comma_in_superinterfaces; |
215 |
// public boolean insert_space_before_comma_in_type_arguments; |
216 |
// public boolean insert_space_before_comma_in_type_parameters; |
217 |
// public boolean insert_space_before_ellipsis; |
218 |
// public boolean insert_space_before_parenthesized_expression_in_return; |
219 |
// public boolean insert_space_before_question_in_wilcard; |
220 |
// public boolean insert_space_before_opening_angle_bracket_in_parameterized_type_reference; |
221 |
// public boolean insert_space_before_opening_angle_bracket_in_type_arguments; |
222 |
// public boolean insert_space_before_opening_angle_bracket_in_type_parameters; |
223 |
// public boolean insert_space_before_opening_brace_in_array_initializer; |
224 |
// public boolean insert_space_before_opening_brace_in_block; |
225 |
// public boolean insert_space_before_opening_brace_in_constructor_declaration; |
226 |
// public boolean insert_space_before_opening_brace_in_enum_constant; |
227 |
// public boolean insert_space_before_opening_brace_in_enum_declaration; |
228 |
// public boolean insert_space_before_opening_brace_in_method_declaration; |
229 |
// public boolean insert_space_before_opening_brace_in_type_declaration; |
230 |
// public boolean insert_space_before_opening_bracket_in_array_allocation_expression; |
231 |
// public boolean insert_space_before_opening_bracket_in_array_reference; |
232 |
// public boolean insert_space_before_opening_bracket_in_array_type_reference; |
233 |
// public boolean insert_space_before_opening_paren_in_catch; |
234 |
// public boolean insert_space_before_opening_paren_in_constructor_declaration; |
235 |
// public boolean insert_space_before_opening_paren_in_enum_constant; |
236 |
// public boolean insert_space_before_opening_paren_in_for; |
237 |
// public boolean insert_space_before_opening_paren_in_if; |
238 |
// public boolean insert_space_before_opening_paren_in_method_invocation; |
239 |
// public boolean insert_space_before_opening_paren_in_method_declaration; |
240 |
// public boolean insert_space_before_opening_paren_in_switch; |
241 |
// public boolean insert_space_before_opening_brace_in_switch; |
242 |
// public boolean insert_space_before_opening_paren_in_synchronized; |
243 |
// public boolean insert_space_before_opening_paren_in_parenthesized_expression; |
244 |
// public boolean insert_space_before_opening_paren_in_while; |
245 |
// public boolean insert_space_before_postfix_operator; |
246 |
// public boolean insert_space_before_prefix_operator; |
247 |
// public boolean insert_space_before_question_in_conditional; |
248 |
// public boolean insert_space_before_semicolon; |
249 |
// public boolean insert_space_before_semicolon_in_for; |
250 |
// public boolean insert_space_before_unary_operator; |
251 |
// public boolean insert_space_between_brackets_in_array_type_reference; |
252 |
// public boolean insert_space_between_empty_braces_in_array_initializer; |
253 |
// public boolean insert_space_between_empty_brackets_in_array_allocation_expression; |
254 |
// public boolean insert_space_between_empty_parens_in_constructor_declaration; |
255 |
// public boolean insert_space_between_empty_parens_in_enum_constant; |
256 |
// public boolean insert_space_between_empty_parens_in_method_declaration; |
257 |
// public boolean insert_space_between_empty_parens_in_method_invocation; |
258 |
// public boolean compact_else_if; |
259 |
// public boolean keep_guardian_clause_on_one_line; |
260 |
// public boolean keep_else_statement_on_same_line; |
261 |
// public boolean keep_empty_array_initializer_on_one_line; |
262 |
// public boolean keep_simple_if_on_one_line; |
263 |
// public boolean keep_then_statement_on_same_line; |
264 |
// public int number_of_empty_lines_to_preserve; |
265 |
// public boolean put_empty_statement_on_new_line; |
266 |
public int tab_size; |
267 |
public final char filling_space = ' '; |
268 |
public int page_width; |
269 |
public int tab_char = TAB; |
270 |
public boolean use_tabs_only_for_leading_indentations; |
271 |
|
272 |
public int initial_indentation_level; |
273 |
public String line_separator; |
274 |
|
275 |
private DefaultCodeFormatterOptions() { |
276 |
// cannot be instantiated |
277 |
} |
278 |
|
279 |
public DefaultCodeFormatterOptions(Map settings) { |
280 |
setDefaultSettings(); |
281 |
if (settings == null) return; |
282 |
set(settings); |
283 |
} |
284 |
|
285 |
private String getAlignment(int alignment) { |
286 |
return Integer.toString(alignment); |
287 |
} |
288 |
|
289 |
public Map getMap() { |
290 |
Map options = new HashMap(); |
291 |
options.put(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_ALLOCATION_EXPRESSION, getAlignment(this.alignment_for_arguments_in_allocation_expression)); |
292 |
options.put(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_ENUM_CONSTANT, getAlignment(this.alignment_for_arguments_in_enum_constant)); |
293 |
options.put(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_EXPLICIT_CONSTRUCTOR_CALL, getAlignment(this.alignment_for_arguments_in_explicit_constructor_call)); |
294 |
options.put(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_METHOD_INVOCATION, getAlignment(this.alignment_for_arguments_in_method_invocation)); |
295 |
options.put(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_QUALIFIED_ALLOCATION_EXPRESSION, getAlignment(this.alignment_for_arguments_in_qualified_allocation_expression)); |
296 |
options.put(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ASSIGNMENT, getAlignment(this.alignment_for_assignment)); |
297 |
options.put(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_BINARY_EXPRESSION, getAlignment(this.alignment_for_binary_expression)); |
298 |
options.put(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_COMPACT_IF, getAlignment(this.alignment_for_compact_if)); |
299 |
options.put(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_CONDITIONAL_EXPRESSION, getAlignment(this.alignment_for_conditional_expression)); |
300 |
options.put(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ENUM_CONSTANTS, getAlignment(this.alignment_for_enum_constants)); |
301 |
options.put(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_EXPRESSIONS_IN_ARRAY_INITIALIZER, getAlignment(this.alignment_for_expressions_in_array_initializer)); |
302 |
options.put(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_MULTIPLE_FIELDS, getAlignment(this.alignment_for_multiple_fields)); |
303 |
options.put(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_CONSTRUCTOR_DECLARATION, getAlignment(this.alignment_for_parameters_in_constructor_declaration)); |
304 |
options.put(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_METHOD_DECLARATION, getAlignment(this.alignment_for_parameters_in_method_declaration)); |
305 |
options.put(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SELECTOR_IN_METHOD_INVOCATION, getAlignment(this.alignment_for_selector_in_method_invocation)); |
306 |
options.put(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SUPERCLASS_IN_TYPE_DECLARATION, getAlignment(this.alignment_for_superclass_in_type_declaration)); |
307 |
options.put(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SUPERINTERFACES_IN_ENUM_DECLARATION, getAlignment(this.alignment_for_superinterfaces_in_enum_declaration)); |
308 |
options.put(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SUPERINTERFACES_IN_TYPE_DECLARATION, getAlignment(this.alignment_for_superinterfaces_in_type_declaration)); |
309 |
options.put(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_THROWS_CLAUSE_IN_CONSTRUCTOR_DECLARATION, getAlignment(this.alignment_for_throws_clause_in_constructor_declaration)); |
310 |
options.put(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_THROWS_CLAUSE_IN_METHOD_DECLARATION, getAlignment(this.alignment_for_throws_clause_in_method_declaration)); |
311 |
options.put(CodeFormatterConstants.FORMATTER_ALIGN_TYPE_MEMBERS_ON_COLUMNS, this.align_type_members_on_columns ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
312 |
options.put(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_ARRAY_INITIALIZER, this.brace_position_for_array_initializer); |
313 |
options.put(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_BLOCK, this.brace_position_for_block); |
314 |
options.put(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_BLOCK_IN_CASE, this.brace_position_for_block_in_case); |
315 |
options.put(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_CONSTRUCTOR_DECLARATION, this.brace_position_for_constructor_declaration); |
316 |
options.put(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_ENUM_CONSTANT, this.brace_position_for_enum_constant); |
317 |
options.put(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_ENUM_DECLARATION, this.brace_position_for_enum_declaration); |
318 |
options.put(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_METHOD_DECLARATION, this.brace_position_for_method_declaration); |
319 |
options.put(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_TYPE_DECLARATION, this.brace_position_for_type_declaration); |
320 |
options.put(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_SWITCH, this.brace_position_for_switch); |
321 |
// options.put(CodeFormatterConstants.FORMATTER_COMMENT_CLEAR_BLANK_LINES, this.comment_clear_blank_lines ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
322 |
// options.put(CodeFormatterConstants.FORMATTER_COMMENT_FORMAT, this.comment_format ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
323 |
// options.put(CodeFormatterConstants.FORMATTER_COMMENT_FORMAT_HEADER, this.comment_format_header ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
324 |
// options.put(CodeFormatterConstants.FORMATTER_COMMENT_FORMAT_HTML, this.comment_format_html ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
325 |
// options.put(CodeFormatterConstants.FORMATTER_COMMENT_FORMAT_SOURCE, this.comment_format_source ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
326 |
// options.put(CodeFormatterConstants.FORMATTER_COMMENT_LINE_LENGTH, Integer.toString(this.comment_line_length)); |
327 |
options.put(CodeFormatterConstants.FORMATTER_CONTINUATION_INDENTATION, Integer.toString(this.continuation_indentation)); |
328 |
options.put(CodeFormatterConstants.FORMATTER_CONTINUATION_INDENTATION_FOR_ARRAY_INITIALIZER, Integer.toString(this.continuation_indentation_for_array_initializer)); |
329 |
// options.put(CodeFormatterConstants.FORMATTER_BLANK_LINES_AFTER_IMPORTS, Integer.toString(this.blank_lines_after_imports)); |
330 |
// options.put(CodeFormatterConstants.FORMATTER_BLANK_LINES_AFTER_PACKAGE, Integer.toString(this.blank_lines_after_package)); |
331 |
// options.put(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_FIELD, Integer.toString(this.blank_lines_before_field)); |
332 |
// options.put(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_FIRST_CLASS_BODY_DECLARATION, Integer.toString(this.blank_lines_before_first_class_body_declaration)); |
333 |
// options.put(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_IMPORTS, Integer.toString(this.blank_lines_before_imports)); |
334 |
// options.put(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_MEMBER_TYPE, Integer.toString(this.blank_lines_before_member_type)); |
335 |
// options.put(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_METHOD, Integer.toString(this.blank_lines_before_method)); |
336 |
// options.put(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_NEW_CHUNK, Integer.toString(this.blank_lines_before_new_chunk)); |
337 |
// options.put(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_PACKAGE, Integer.toString(this.blank_lines_before_package)); |
338 |
// options.put(CodeFormatterConstants.FORMATTER_BLANK_LINES_BETWEEN_TYPE_DECLARATIONS, Integer.toString(this.blank_lines_between_type_declarations)); |
339 |
// options.put(CodeFormatterConstants.FORMATTER_BLANK_LINES_AT_BEGINNING_OF_METHOD_BODY, Integer.toString(this.blank_lines_at_beginning_of_method_body)); |
340 |
options.put(CodeFormatterConstants.FORMATTER_INDENT_STATEMENTS_COMPARE_TO_BLOCK, this.indent_statements_compare_to_block ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
341 |
options.put(CodeFormatterConstants.FORMATTER_INDENT_STATEMENTS_COMPARE_TO_BODY, this.indent_statements_compare_to_body ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
342 |
options.put(CodeFormatterConstants.FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_ENUM_CONSTANT_HEADER, this.indent_body_declarations_compare_to_enum_constant_header ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
343 |
options.put(CodeFormatterConstants.FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_ENUM_DECLARATION_HEADER, this.indent_body_declarations_compare_to_enum_declaration_header ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
344 |
options.put(CodeFormatterConstants.FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_TYPE_HEADER, this.indent_body_declarations_compare_to_type_header ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
345 |
options.put(CodeFormatterConstants.FORMATTER_INDENT_BREAKS_COMPARE_TO_CASES, this.indent_breaks_compare_to_cases ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
346 |
options.put(CodeFormatterConstants.FORMATTER_INDENT_EMPTY_LINES, this.indent_empty_lines ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
347 |
options.put(CodeFormatterConstants.FORMATTER_INDENT_SWITCHSTATEMENTS_COMPARE_TO_CASES, this.indent_switchstatements_compare_to_cases ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
348 |
options.put(CodeFormatterConstants.FORMATTER_INDENT_SWITCHSTATEMENTS_COMPARE_TO_SWITCH, this.indent_switchstatements_compare_to_switch ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
349 |
options.put(CodeFormatterConstants.FORMATTER_INDENTATION_SIZE, Integer.toString(this.indentation_size)); |
350 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_AFTER_OPENING_BRACE_IN_ARRAY_INITIALIZER, this.insert_new_line_after_opening_brace_in_array_initializer? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
351 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_AT_END_OF_FILE_IF_MISSING, this.insert_new_line_at_end_of_file_if_missing ? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
352 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_CATCH_IN_TRY_STATEMENT, this.insert_new_line_before_catch_in_try_statement? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
353 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_CLOSING_BRACE_IN_ARRAY_INITIALIZER, this.insert_new_line_before_closing_brace_in_array_initializer? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
354 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_ELSE_IN_IF_STATEMENT, this.insert_new_line_before_else_in_if_statement? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
355 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_FINALLY_IN_TRY_STATEMENT, this.insert_new_line_before_finally_in_try_statement? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
356 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_WHILE_IN_DO_STATEMENT, this.insert_new_line_before_while_in_do_statement? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
357 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_BLOCK, this.insert_new_line_in_empty_block? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
358 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_ENUM_CONSTANT, this.insert_new_line_in_empty_enum_constant? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
359 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_ENUM_DECLARATION, this.insert_new_line_in_empty_enum_declaration? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
360 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_METHOD_BODY, this.insert_new_line_in_empty_method_body? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
361 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_TYPE_DECLARATION, this.insert_new_line_in_empty_type_declaration? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
362 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_AND_IN_TYPE_PARAMETER, this.insert_space_after_and_in_type_parameter? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
363 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_ASSIGNMENT_OPERATOR, this.insert_space_after_assignment_operator? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
364 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_BINARY_OPERATOR, this.insert_space_after_binary_operator? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
365 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_CLOSING_ANGLE_BRACKET_IN_TYPE_ARGUMENTS, this.insert_space_after_closing_angle_bracket_in_type_arguments ? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
366 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_CLOSING_ANGLE_BRACKET_IN_TYPE_PARAMETERS, this.insert_space_after_closing_angle_bracket_in_type_parameters ? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
367 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_CLOSING_PAREN_IN_CAST, this.insert_space_after_closing_paren_in_cast? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
368 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_CLOSING_BRACE_IN_BLOCK, this.insert_space_after_closing_brace_in_block? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
369 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_ASSERT, this.insert_space_after_colon_in_assert ? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
370 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_CASE, this.insert_space_after_colon_in_case ? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
371 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_CONDITIONAL, this.insert_space_after_colon_in_conditional ? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
372 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_FOR, this.insert_space_after_colon_in_for ? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
373 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_LABELED_STATEMENT, this.insert_space_after_colon_in_labeled_statement? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
374 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ALLOCATION_EXPRESSION, this.insert_space_after_comma_in_allocation_expression? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
375 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ARRAY_INITIALIZER, this.insert_space_after_comma_in_array_initializer? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
376 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_CONSTRUCTOR_DECLARATION_PARAMETERS, this.insert_space_after_comma_in_constructor_declaration_parameters? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
377 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_CONSTRUCTOR_DECLARATION_THROWS, this.insert_space_after_comma_in_constructor_declaration_throws? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
378 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ENUM_CONSTANT_ARGUMENTS, this.insert_space_after_comma_in_enum_constant_arguments ? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
379 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ENUM_DECLARATIONS, this.insert_space_after_comma_in_enum_declarations ? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
380 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_EXPLICIT_CONSTRUCTOR_CALL_ARGUMENTS, this.insert_space_after_comma_in_explicit_constructor_call_arguments? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
381 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_FOR_INCREMENTS, this.insert_space_after_comma_in_for_increments? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
382 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_FOR_INITS, this.insert_space_after_comma_in_for_inits? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
383 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_INVOCATION_ARGUMENTS, this.insert_space_after_comma_in_method_invocation_arguments? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
384 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_DECLARATION_PARAMETERS, this.insert_space_after_comma_in_method_declaration_parameters? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
385 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_DECLARATION_THROWS, this.insert_space_after_comma_in_method_declaration_throws? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
386 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_MULTIPLE_FIELD_DECLARATIONS, this.insert_space_after_comma_in_multiple_field_declarations? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
387 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_MULTIPLE_LOCAL_DECLARATIONS, this.insert_space_after_comma_in_multiple_local_declarations? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
388 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_PARAMETERIZED_TYPE_REFERENCE, this.insert_space_after_comma_in_parameterized_type_reference? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
389 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_SUPERINTERFACES, this.insert_space_after_comma_in_superinterfaces? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
390 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_TYPE_ARGUMENTS, this.insert_space_after_comma_in_type_arguments ? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
391 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_TYPE_PARAMETERS, this.insert_space_after_comma_in_type_parameters ? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
392 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_BRACKET_IN_ARRAY_ALLOCATION_EXPRESSION, this.insert_space_after_opening_bracket_in_array_allocation_expression? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
393 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_ELLIPSIS, this.insert_space_after_ellipsis ? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
394 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_ANGLE_BRACKET_IN_PARAMETERIZED_TYPE_REFERENCE, this.insert_space_after_opening_angle_bracket_in_parameterized_type_reference? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
395 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_ANGLE_BRACKET_IN_TYPE_ARGUMENTS, this.insert_space_after_opening_angle_bracket_in_type_arguments? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
396 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_ANGLE_BRACKET_IN_TYPE_PARAMETERS, this.insert_space_after_opening_angle_bracket_in_type_parameters? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
397 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_BRACKET_IN_ARRAY_REFERENCE, this.insert_space_after_opening_bracket_in_array_reference? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
398 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_BRACE_IN_ARRAY_INITIALIZER, this.insert_space_after_opening_brace_in_array_initializer? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
399 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CAST, this.insert_space_after_opening_paren_in_cast? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
400 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CATCH, this.insert_space_after_opening_paren_in_catch? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
401 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CONSTRUCTOR_DECLARATION, this.insert_space_after_opening_paren_in_constructor_declaration? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
402 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_ENUM_CONSTANT, this.insert_space_after_opening_paren_in_enum_constant? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
403 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_FOR, this.insert_space_after_opening_paren_in_for? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
404 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_IF, this.insert_space_after_opening_paren_in_if? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
405 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_METHOD_DECLARATION, this.insert_space_after_opening_paren_in_method_declaration? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
406 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_METHOD_INVOCATION, this.insert_space_after_opening_paren_in_method_invocation? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
407 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_PARENTHESIZED_EXPRESSION, this.insert_space_after_opening_paren_in_parenthesized_expression? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
408 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_SWITCH, this.insert_space_after_opening_paren_in_switch? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
409 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_SYNCHRONIZED, this.insert_space_after_opening_paren_in_synchronized? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
410 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_WHILE, this.insert_space_after_opening_paren_in_while? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
411 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_POSTFIX_OPERATOR, this.insert_space_after_postfix_operator? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
412 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_PREFIX_OPERATOR, this.insert_space_after_prefix_operator? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
413 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_QUESTION_IN_CONDITIONAL, this.insert_space_after_question_in_conditional? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
414 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_QUESTION_IN_WILDCARD, this.insert_space_after_question_in_wilcard? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
415 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_SEMICOLON_IN_FOR, this.insert_space_after_semicolon_in_for? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
416 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_UNARY_OPERATOR, this.insert_space_after_unary_operator? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
417 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_AND_IN_TYPE_PARAMETER, this.insert_space_before_and_in_type_parameter ? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
418 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_ASSIGNMENT_OPERATOR, this.insert_space_before_assignment_operator? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
419 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_BINARY_OPERATOR, this.insert_space_before_binary_operator? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
420 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_ANGLE_BRACKET_IN_PARAMETERIZED_TYPE_REFERENCE, this.insert_space_before_closing_angle_bracket_in_parameterized_type_reference? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
421 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_ANGLE_BRACKET_IN_TYPE_ARGUMENTS, this.insert_space_before_closing_angle_bracket_in_type_arguments? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
422 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_ANGLE_BRACKET_IN_TYPE_PARAMETERS, this.insert_space_before_closing_angle_bracket_in_type_parameters? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
423 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_BRACE_IN_ARRAY_INITIALIZER, this.insert_space_before_closing_brace_in_array_initializer? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
424 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_BRACKET_IN_ARRAY_ALLOCATION_EXPRESSION, this.insert_space_before_closing_bracket_in_array_allocation_expression? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
425 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_BRACKET_IN_ARRAY_REFERENCE, this.insert_space_before_closing_bracket_in_array_reference? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
426 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CAST, this.insert_space_before_closing_paren_in_cast? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
427 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CATCH, this.insert_space_before_closing_paren_in_catch? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
428 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CONSTRUCTOR_DECLARATION, this.insert_space_before_closing_paren_in_constructor_declaration? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
429 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_ENUM_CONSTANT, this.insert_space_before_closing_paren_in_enum_constant? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
430 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_FOR, this.insert_space_before_closing_paren_in_for? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
431 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_IF, this.insert_space_before_closing_paren_in_if? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
432 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_METHOD_DECLARATION, this.insert_space_before_closing_paren_in_method_declaration? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
433 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_METHOD_INVOCATION, this.insert_space_before_closing_paren_in_method_invocation? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
434 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_PARENTHESIZED_EXPRESSION, this.insert_space_before_closing_paren_in_parenthesized_expression? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
435 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_SWITCH, this.insert_space_before_closing_paren_in_switch? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
436 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_SYNCHRONIZED, this.insert_space_before_closing_paren_in_synchronized? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
437 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_WHILE, this.insert_space_before_closing_paren_in_while? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
438 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_ASSERT, this.insert_space_before_colon_in_assert? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
439 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_CASE, this.insert_space_before_colon_in_case? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
440 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_CONDITIONAL, this.insert_space_before_colon_in_conditional? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
441 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_DEFAULT, this.insert_space_before_colon_in_default? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
442 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_FOR, this.insert_space_before_colon_in_for ? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
443 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_LABELED_STATEMENT, this.insert_space_before_colon_in_labeled_statement? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
444 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ALLOCATION_EXPRESSION, this.insert_space_before_comma_in_allocation_expression? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
445 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ARRAY_INITIALIZER, this.insert_space_before_comma_in_array_initializer? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
446 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_CONSTRUCTOR_DECLARATION_PARAMETERS, this.insert_space_before_comma_in_constructor_declaration_parameters? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
447 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_CONSTRUCTOR_DECLARATION_THROWS, this.insert_space_before_comma_in_constructor_declaration_throws? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
448 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ENUM_CONSTANT_ARGUMENTS, this.insert_space_before_comma_in_enum_constant_arguments? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
449 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ENUM_DECLARATIONS, this.insert_space_before_comma_in_enum_declarations? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
450 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_EXPLICIT_CONSTRUCTOR_CALL_ARGUMENTS, this.insert_space_before_comma_in_explicit_constructor_call_arguments? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
451 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_FOR_INCREMENTS, this.insert_space_before_comma_in_for_increments? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
452 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_FOR_INITS, this.insert_space_before_comma_in_for_inits? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
453 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_INVOCATION_ARGUMENTS, this.insert_space_before_comma_in_method_invocation_arguments? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
454 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_DECLARATION_PARAMETERS, this.insert_space_before_comma_in_method_declaration_parameters? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
455 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_DECLARATION_THROWS, this.insert_space_before_comma_in_method_declaration_throws? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
456 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_MULTIPLE_FIELD_DECLARATIONS, this.insert_space_before_comma_in_multiple_field_declarations? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
457 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_MULTIPLE_LOCAL_DECLARATIONS, this.insert_space_before_comma_in_multiple_local_declarations? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
458 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_SUPERINTERFACES, this.insert_space_before_comma_in_superinterfaces? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
459 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_TYPE_ARGUMENTS, this.insert_space_before_comma_in_type_arguments ? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
460 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_TYPE_PARAMETERS, this.insert_space_before_comma_in_type_parameters? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
461 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_PARAMETERIZED_TYPE_REFERENCE, this.insert_space_before_comma_in_parameterized_type_reference? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
462 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_ELLIPSIS, this.insert_space_before_ellipsis ? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
463 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_ANGLE_BRACKET_IN_PARAMETERIZED_TYPE_REFERENCE, this.insert_space_before_opening_angle_bracket_in_parameterized_type_reference? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
464 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_ANGLE_BRACKET_IN_TYPE_ARGUMENTS, this.insert_space_before_opening_angle_bracket_in_type_arguments? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
465 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_ANGLE_BRACKET_IN_TYPE_PARAMETERS, this.insert_space_before_opening_angle_bracket_in_type_parameters? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
466 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_ARRAY_INITIALIZER, this.insert_space_before_opening_brace_in_array_initializer? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
467 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_BLOCK, this.insert_space_before_opening_brace_in_block? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
468 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_CONSTRUCTOR_DECLARATION, this.insert_space_before_opening_brace_in_constructor_declaration? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
469 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_ENUM_CONSTANT, this.insert_space_before_opening_brace_in_enum_constant? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
470 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_ENUM_DECLARATION, this.insert_space_before_opening_brace_in_enum_declaration? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
471 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_METHOD_DECLARATION, this.insert_space_before_opening_brace_in_method_declaration? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
472 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_TYPE_DECLARATION, this.insert_space_before_opening_brace_in_type_declaration? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
473 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACKET_IN_ARRAY_ALLOCATION_EXPRESSION, this.insert_space_before_opening_bracket_in_array_allocation_expression ? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
474 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACKET_IN_ARRAY_REFERENCE, this.insert_space_before_opening_bracket_in_array_reference? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
475 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACKET_IN_ARRAY_TYPE_REFERENCE, this.insert_space_before_opening_bracket_in_array_type_reference? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
476 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_CATCH, this.insert_space_before_opening_paren_in_catch? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
477 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_CONSTRUCTOR_DECLARATION, this.insert_space_before_opening_paren_in_constructor_declaration? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
478 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_ENUM_CONSTANT, this.insert_space_before_opening_paren_in_enum_constant? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
479 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_FOR, this.insert_space_before_opening_paren_in_for? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
480 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_IF, this.insert_space_before_opening_paren_in_if? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
481 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_METHOD_INVOCATION, this.insert_space_before_opening_paren_in_method_invocation? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
482 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_METHOD_DECLARATION, this.insert_space_before_opening_paren_in_method_declaration? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
483 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_SWITCH, this.insert_space_before_opening_paren_in_switch? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
484 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_SWITCH, this.insert_space_before_opening_brace_in_switch? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
485 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_SYNCHRONIZED, this.insert_space_before_opening_paren_in_synchronized? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
486 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_PARENTHESIZED_EXPRESSION, this.insert_space_before_opening_paren_in_parenthesized_expression? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
487 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_WHILE, this.insert_space_before_opening_paren_in_while? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
488 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_PARENTHESIZED_EXPRESSION_IN_RETURN, this.insert_space_before_parenthesized_expression_in_return ? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
489 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_POSTFIX_OPERATOR, this.insert_space_before_postfix_operator? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
490 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_PREFIX_OPERATOR, this.insert_space_before_prefix_operator? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
491 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_QUESTION_IN_CONDITIONAL, this.insert_space_before_question_in_conditional? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
492 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_QUESTION_IN_WILDCARD, this.insert_space_before_question_in_wilcard? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
493 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_SEMICOLON, this.insert_space_before_semicolon? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
494 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_SEMICOLON_IN_FOR, this.insert_space_before_semicolon_in_for? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
495 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_UNARY_OPERATOR, this.insert_space_before_unary_operator? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
496 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_BRACKETS_IN_ARRAY_TYPE_REFERENCE, this.insert_space_between_brackets_in_array_type_reference? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
497 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_BRACES_IN_ARRAY_INITIALIZER, this.insert_space_between_empty_braces_in_array_initializer? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
498 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_BRACKETS_IN_ARRAY_ALLOCATION_EXPRESSION, this.insert_space_between_empty_brackets_in_array_allocation_expression? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
499 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_CONSTRUCTOR_DECLARATION, this.insert_space_between_empty_parens_in_constructor_declaration? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
500 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_ENUM_CONSTANT, this.insert_space_between_empty_parens_in_enum_constant? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
501 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_METHOD_DECLARATION, this.insert_space_between_empty_parens_in_method_declaration? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
502 |
// options.put(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_METHOD_INVOCATION, this.insert_space_between_empty_parens_in_method_invocation? CCorePlugin.INSERT : CCorePlugin.DO_NOT_INSERT); |
503 |
// options.put(CodeFormatterConstants.FORMATTER_COMPACT_ELSE_IF, this.compact_else_if ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
504 |
// options.put(CodeFormatterConstants.FORMATTER_KEEP_GUARDIAN_CLAUSE_ON_ONE_LINE, this.keep_guardian_clause_on_one_line ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
505 |
// options.put(CodeFormatterConstants.FORMATTER_KEEP_ELSE_STATEMENT_ON_SAME_LINE, this.keep_else_statement_on_same_line ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
506 |
// options.put(CodeFormatterConstants.FORMATTER_KEEP_EMPTY_ARRAY_INITIALIZER_ON_ONE_LINE, this.keep_empty_array_initializer_on_one_line ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
507 |
// options.put(CodeFormatterConstants.FORMATTER_KEEP_SIMPLE_IF_ON_ONE_LINE, this.keep_simple_if_on_one_line ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
508 |
// options.put(CodeFormatterConstants.FORMATTER_KEEP_THEN_STATEMENT_ON_SAME_LINE, this.keep_then_statement_on_same_line ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
509 |
// options.put(CodeFormatterConstants.FORMATTER_NUMBER_OF_EMPTY_LINES_TO_PRESERVE, Integer.toString(this.number_of_empty_lines_to_preserve)); |
510 |
// options.put(CodeFormatterConstants.FORMATTER_PUT_EMPTY_STATEMENT_ON_NEW_LINE, this.put_empty_statement_on_new_line ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
511 |
// options.put(CodeFormatterConstants.FORMATTER_LINE_SPLIT, Integer.toString(this.page_width)); |
512 |
switch(this.tab_char) { |
513 |
case SPACE : |
514 |
options.put(CodeFormatterConstants.FORMATTER_TAB_CHAR, CCorePlugin.SPACE); |
515 |
break; |
516 |
case TAB : |
517 |
options.put(CodeFormatterConstants.FORMATTER_TAB_CHAR, CCorePlugin.TAB); |
518 |
break; |
519 |
case MIXED : |
520 |
options.put(CodeFormatterConstants.FORMATTER_TAB_CHAR, CodeFormatterConstants.MIXED); |
521 |
break; |
522 |
} |
523 |
options.put(CodeFormatterConstants.FORMATTER_TAB_SIZE, Integer.toString(this.tab_size)); |
524 |
options.put(CodeFormatterConstants.FORMATTER_USE_TABS_ONLY_FOR_LEADING_INDENTATIONS, this.use_tabs_only_for_leading_indentations ? CodeFormatterConstants.TRUE : CodeFormatterConstants.FALSE); |
525 |
return options; |
526 |
} |
527 |
|
528 |
public void set(Map settings) { |
529 |
final Object alignmentForArgumentsInAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_ALLOCATION_EXPRESSION); |
530 |
if (alignmentForArgumentsInAllocationExpressionOption != null) { |
531 |
try { |
532 |
this.alignment_for_arguments_in_allocation_expression = Integer.parseInt((String) alignmentForArgumentsInAllocationExpressionOption); |
533 |
} catch (NumberFormatException e) { |
534 |
this.alignment_for_arguments_in_allocation_expression = Alignment.M_COMPACT_SPLIT; |
535 |
} catch (ClassCastException e) { |
536 |
this.alignment_for_arguments_in_allocation_expression = Alignment.M_COMPACT_SPLIT; |
537 |
} |
538 |
} |
539 |
final Object alignmentForArgumentsInEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_ENUM_CONSTANT); |
540 |
if (alignmentForArgumentsInEnumConstantOption != null) { |
541 |
try { |
542 |
this.alignment_for_arguments_in_enum_constant = Integer.parseInt((String) alignmentForArgumentsInEnumConstantOption); |
543 |
} catch (NumberFormatException e) { |
544 |
this.alignment_for_arguments_in_enum_constant = Alignment.M_COMPACT_SPLIT; |
545 |
} catch (ClassCastException e) { |
546 |
this.alignment_for_arguments_in_enum_constant = Alignment.M_COMPACT_SPLIT; |
547 |
} |
548 |
} |
549 |
final Object alignmentForArgumentsInExplicitConstructorCallOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_EXPLICIT_CONSTRUCTOR_CALL); |
550 |
if (alignmentForArgumentsInExplicitConstructorCallOption != null) { |
551 |
try { |
552 |
this.alignment_for_arguments_in_explicit_constructor_call = Integer.parseInt((String) alignmentForArgumentsInExplicitConstructorCallOption); |
553 |
} catch (NumberFormatException e) { |
554 |
this.alignment_for_arguments_in_explicit_constructor_call = Alignment.M_COMPACT_SPLIT; |
555 |
} catch (ClassCastException e) { |
556 |
this.alignment_for_arguments_in_explicit_constructor_call = Alignment.M_COMPACT_SPLIT; |
557 |
} |
558 |
} |
559 |
final Object alignmentForArgumentsInMethodInvocationOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_METHOD_INVOCATION); |
560 |
if (alignmentForArgumentsInMethodInvocationOption != null) { |
561 |
try { |
562 |
this.alignment_for_arguments_in_method_invocation = Integer.parseInt((String) alignmentForArgumentsInMethodInvocationOption); |
563 |
} catch (NumberFormatException e) { |
564 |
this.alignment_for_arguments_in_method_invocation = Alignment.M_COMPACT_SPLIT; |
565 |
} catch (ClassCastException e) { |
566 |
this.alignment_for_arguments_in_method_invocation = Alignment.M_COMPACT_SPLIT; |
567 |
} |
568 |
} |
569 |
final Object alignmentForArgumentsInQualifiedAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_QUALIFIED_ALLOCATION_EXPRESSION); |
570 |
if (alignmentForArgumentsInQualifiedAllocationExpressionOption != null) { |
571 |
try { |
572 |
this.alignment_for_arguments_in_qualified_allocation_expression = Integer.parseInt((String) alignmentForArgumentsInQualifiedAllocationExpressionOption); |
573 |
} catch (NumberFormatException e) { |
574 |
this.alignment_for_arguments_in_qualified_allocation_expression = Alignment.M_COMPACT_SPLIT; |
575 |
} catch (ClassCastException e) { |
576 |
this.alignment_for_arguments_in_qualified_allocation_expression = Alignment.M_COMPACT_SPLIT; |
577 |
} |
578 |
} |
579 |
final Object alignmentForAssignmentOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ASSIGNMENT); |
580 |
if (alignmentForAssignmentOption != null) { |
581 |
try { |
582 |
this.alignment_for_assignment = Integer.parseInt((String) alignmentForAssignmentOption); |
583 |
} catch (NumberFormatException e) { |
584 |
this.alignment_for_assignment = Alignment.M_ONE_PER_LINE_SPLIT; |
585 |
} catch (ClassCastException e) { |
586 |
this.alignment_for_assignment = Alignment.M_ONE_PER_LINE_SPLIT; |
587 |
} |
588 |
} |
589 |
final Object alignmentForBinaryExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_BINARY_EXPRESSION); |
590 |
if (alignmentForBinaryExpressionOption != null) { |
591 |
try { |
592 |
this.alignment_for_binary_expression = Integer.parseInt((String) alignmentForBinaryExpressionOption); |
593 |
} catch (NumberFormatException e) { |
594 |
this.alignment_for_binary_expression = Alignment.M_COMPACT_SPLIT; |
595 |
} catch (ClassCastException e) { |
596 |
this.alignment_for_binary_expression = Alignment.M_COMPACT_SPLIT; |
597 |
} |
598 |
} |
599 |
final Object alignmentForCompactIfOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_COMPACT_IF); |
600 |
if (alignmentForCompactIfOption != null) { |
601 |
try { |
602 |
this.alignment_for_compact_if = Integer.parseInt((String) alignmentForCompactIfOption); |
603 |
} catch (NumberFormatException e) { |
604 |
this.alignment_for_compact_if = Alignment.M_ONE_PER_LINE_SPLIT | Alignment.M_INDENT_BY_ONE; |
605 |
} catch (ClassCastException e) { |
606 |
this.alignment_for_compact_if = Alignment.M_ONE_PER_LINE_SPLIT | Alignment.M_INDENT_BY_ONE; |
607 |
} |
608 |
} |
609 |
final Object alignmentForConditionalExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_CONDITIONAL_EXPRESSION); |
610 |
if (alignmentForConditionalExpressionOption != null) { |
611 |
try { |
612 |
this.alignment_for_conditional_expression = Integer.parseInt((String) alignmentForConditionalExpressionOption); |
613 |
} catch (NumberFormatException e) { |
614 |
this.alignment_for_conditional_expression = Alignment.M_ONE_PER_LINE_SPLIT; |
615 |
} catch (ClassCastException e) { |
616 |
this.alignment_for_conditional_expression = Alignment.M_ONE_PER_LINE_SPLIT; |
617 |
} |
618 |
} |
619 |
final Object alignmentForEnumConstantsOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ENUM_CONSTANTS); |
620 |
if (alignmentForEnumConstantsOption != null) { |
621 |
try { |
622 |
this.alignment_for_enum_constants = Integer.parseInt((String) alignmentForEnumConstantsOption); |
623 |
} catch (NumberFormatException e) { |
624 |
this.alignment_for_enum_constants = Alignment.NONE; |
625 |
} catch (ClassCastException e) { |
626 |
this.alignment_for_enum_constants = Alignment.NONE; |
627 |
} |
628 |
} |
629 |
final Object alignmentForExpressionsInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_EXPRESSIONS_IN_ARRAY_INITIALIZER); |
630 |
if (alignmentForExpressionsInArrayInitializerOption != null) { |
631 |
try { |
632 |
this.alignment_for_expressions_in_array_initializer = Integer.parseInt((String) alignmentForExpressionsInArrayInitializerOption); |
633 |
} catch (NumberFormatException e) { |
634 |
this.alignment_for_expressions_in_array_initializer = Alignment.M_COMPACT_SPLIT; |
635 |
} catch (ClassCastException e) { |
636 |
this.alignment_for_expressions_in_array_initializer = Alignment.M_COMPACT_SPLIT; |
637 |
} |
638 |
} |
639 |
final Object alignmentForMultipleFieldsOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_MULTIPLE_FIELDS); |
640 |
if (alignmentForMultipleFieldsOption != null) { |
641 |
try { |
642 |
this.alignment_for_multiple_fields = Integer.parseInt((String) alignmentForMultipleFieldsOption); |
643 |
} catch (NumberFormatException e) { |
644 |
this.alignment_for_multiple_fields = Alignment.M_COMPACT_SPLIT; |
645 |
} catch (ClassCastException e) { |
646 |
this.alignment_for_multiple_fields = Alignment.M_COMPACT_SPLIT; |
647 |
} |
648 |
} |
649 |
final Object alignmentForParametersInConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_CONSTRUCTOR_DECLARATION); |
650 |
if (alignmentForParametersInConstructorDeclarationOption != null) { |
651 |
try { |
652 |
this.alignment_for_parameters_in_constructor_declaration = Integer.parseInt((String) alignmentForParametersInConstructorDeclarationOption); |
653 |
} catch (NumberFormatException e) { |
654 |
this.alignment_for_parameters_in_constructor_declaration = Alignment.M_COMPACT_SPLIT; |
655 |
} catch (ClassCastException e) { |
656 |
this.alignment_for_parameters_in_constructor_declaration = Alignment.M_COMPACT_SPLIT; |
657 |
} |
658 |
} |
659 |
final Object alignmentForParametersInMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_METHOD_DECLARATION); |
660 |
if (alignmentForParametersInMethodDeclarationOption != null) { |
661 |
try { |
662 |
this.alignment_for_parameters_in_method_declaration = Integer.parseInt((String) alignmentForParametersInMethodDeclarationOption); |
663 |
} catch (NumberFormatException e) { |
664 |
this.alignment_for_parameters_in_method_declaration = Alignment.M_COMPACT_SPLIT; |
665 |
} catch(ClassCastException e) { |
666 |
this.alignment_for_parameters_in_method_declaration = Alignment.M_COMPACT_SPLIT; |
667 |
} |
668 |
} |
669 |
final Object alignmentForSelectorInMethodInvocationOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SELECTOR_IN_METHOD_INVOCATION); |
670 |
if (alignmentForSelectorInMethodInvocationOption != null) { |
671 |
try { |
672 |
this.alignment_for_selector_in_method_invocation = Integer.parseInt((String) alignmentForSelectorInMethodInvocationOption); |
673 |
} catch (NumberFormatException e) { |
674 |
this.alignment_for_selector_in_method_invocation = Alignment.M_COMPACT_SPLIT; |
675 |
} catch(ClassCastException e) { |
676 |
this.alignment_for_selector_in_method_invocation = Alignment.M_COMPACT_SPLIT; |
677 |
} |
678 |
} |
679 |
final Object alignmentForSuperclassInTypeDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SUPERCLASS_IN_TYPE_DECLARATION); |
680 |
if (alignmentForSuperclassInTypeDeclarationOption != null) { |
681 |
try { |
682 |
this.alignment_for_superclass_in_type_declaration = Integer.parseInt((String) alignmentForSuperclassInTypeDeclarationOption); |
683 |
} catch (NumberFormatException e) { |
684 |
this.alignment_for_superclass_in_type_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; |
685 |
} catch(ClassCastException e) { |
686 |
this.alignment_for_superclass_in_type_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; |
687 |
} |
688 |
} |
689 |
final Object alignmentForSuperinterfacesInEnumDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SUPERINTERFACES_IN_ENUM_DECLARATION); |
690 |
if (alignmentForSuperinterfacesInEnumDeclarationOption != null) { |
691 |
try { |
692 |
this.alignment_for_superinterfaces_in_enum_declaration = Integer.parseInt((String) alignmentForSuperinterfacesInEnumDeclarationOption); |
693 |
} catch (NumberFormatException e) { |
694 |
this.alignment_for_superinterfaces_in_enum_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; |
695 |
} catch(ClassCastException e) { |
696 |
this.alignment_for_superinterfaces_in_enum_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; |
697 |
} |
698 |
} |
699 |
final Object alignmentForSuperinterfacesInTypeDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SUPERINTERFACES_IN_TYPE_DECLARATION); |
700 |
if (alignmentForSuperinterfacesInTypeDeclarationOption != null) { |
701 |
try { |
702 |
this.alignment_for_superinterfaces_in_type_declaration = Integer.parseInt((String) alignmentForSuperinterfacesInTypeDeclarationOption); |
703 |
} catch (NumberFormatException e) { |
704 |
this.alignment_for_superinterfaces_in_type_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; |
705 |
} catch(ClassCastException e) { |
706 |
this.alignment_for_superinterfaces_in_type_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; |
707 |
} |
708 |
} |
709 |
final Object alignmentForThrowsClauseInConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_THROWS_CLAUSE_IN_CONSTRUCTOR_DECLARATION); |
710 |
if (alignmentForThrowsClauseInConstructorDeclarationOption != null) { |
711 |
try { |
712 |
this.alignment_for_throws_clause_in_constructor_declaration = Integer.parseInt((String) alignmentForThrowsClauseInConstructorDeclarationOption); |
713 |
} catch (NumberFormatException e) { |
714 |
this.alignment_for_throws_clause_in_constructor_declaration = Alignment.M_COMPACT_SPLIT; |
715 |
} catch(ClassCastException e) { |
716 |
this.alignment_for_throws_clause_in_constructor_declaration = Alignment.M_COMPACT_SPLIT; |
717 |
} |
718 |
} |
719 |
final Object alignmentForThrowsClauseInMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_THROWS_CLAUSE_IN_METHOD_DECLARATION); |
720 |
if (alignmentForThrowsClauseInMethodDeclarationOption != null) { |
721 |
try { |
722 |
this.alignment_for_throws_clause_in_method_declaration = Integer.parseInt((String) alignmentForThrowsClauseInMethodDeclarationOption); |
723 |
} catch (NumberFormatException e) { |
724 |
this.alignment_for_throws_clause_in_method_declaration = Alignment.M_COMPACT_SPLIT; |
725 |
} catch(ClassCastException e) { |
726 |
this.alignment_for_throws_clause_in_method_declaration = Alignment.M_COMPACT_SPLIT; |
727 |
} |
728 |
} |
729 |
final Object alignTypeMembersOnColumnsOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGN_TYPE_MEMBERS_ON_COLUMNS); |
730 |
if (alignTypeMembersOnColumnsOption != null) { |
731 |
this.align_type_members_on_columns = CodeFormatterConstants.TRUE.equals(alignTypeMembersOnColumnsOption); |
732 |
} |
733 |
final Object bracePositionForArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_ARRAY_INITIALIZER); |
734 |
if (bracePositionForArrayInitializerOption != null) { |
735 |
try { |
736 |
this.brace_position_for_array_initializer = (String) bracePositionForArrayInitializerOption; |
737 |
} catch(ClassCastException e) { |
738 |
this.brace_position_for_array_initializer = CodeFormatterConstants.END_OF_LINE; |
739 |
} |
740 |
} |
741 |
final Object bracePositionForBlockOption = settings.get(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_BLOCK); |
742 |
if (bracePositionForBlockOption != null) { |
743 |
try { |
744 |
this.brace_position_for_block = (String) bracePositionForBlockOption; |
745 |
} catch(ClassCastException e) { |
746 |
this.brace_position_for_block = CodeFormatterConstants.END_OF_LINE; |
747 |
} |
748 |
} |
749 |
final Object bracePositionForBlockInCaseOption = settings.get(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_BLOCK_IN_CASE); |
750 |
if (bracePositionForBlockInCaseOption != null) { |
751 |
try { |
752 |
this.brace_position_for_block_in_case = (String) bracePositionForBlockInCaseOption; |
753 |
} catch(ClassCastException e) { |
754 |
this.brace_position_for_block_in_case = CodeFormatterConstants.END_OF_LINE; |
755 |
} |
756 |
} |
757 |
final Object bracePositionForConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_CONSTRUCTOR_DECLARATION); |
758 |
if (bracePositionForConstructorDeclarationOption != null) { |
759 |
try { |
760 |
this.brace_position_for_constructor_declaration = (String) bracePositionForConstructorDeclarationOption; |
761 |
} catch(ClassCastException e) { |
762 |
this.brace_position_for_constructor_declaration = CodeFormatterConstants.END_OF_LINE; |
763 |
} |
764 |
} |
765 |
final Object bracePositionForEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_ENUM_CONSTANT); |
766 |
if (bracePositionForEnumConstantOption != null) { |
767 |
try { |
768 |
this.brace_position_for_enum_constant = (String) bracePositionForEnumConstantOption; |
769 |
} catch(ClassCastException e) { |
770 |
this.brace_position_for_enum_constant = CodeFormatterConstants.END_OF_LINE; |
771 |
} |
772 |
} |
773 |
final Object bracePositionForEnumDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_ENUM_DECLARATION); |
774 |
if (bracePositionForEnumDeclarationOption != null) { |
775 |
try { |
776 |
this.brace_position_for_enum_declaration = (String) bracePositionForEnumDeclarationOption; |
777 |
} catch(ClassCastException e) { |
778 |
this.brace_position_for_enum_declaration = CodeFormatterConstants.END_OF_LINE; |
779 |
} |
780 |
} |
781 |
final Object bracePositionForMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_METHOD_DECLARATION); |
782 |
if (bracePositionForMethodDeclarationOption != null) { |
783 |
try { |
784 |
this.brace_position_for_method_declaration = (String) bracePositionForMethodDeclarationOption; |
785 |
} catch(ClassCastException e) { |
786 |
this.brace_position_for_method_declaration = CodeFormatterConstants.END_OF_LINE; |
787 |
} |
788 |
} |
789 |
final Object bracePositionForSwitchOption = settings.get(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_SWITCH); |
790 |
if (bracePositionForSwitchOption != null) { |
791 |
try { |
792 |
this.brace_position_for_switch = (String) bracePositionForSwitchOption; |
793 |
} catch(ClassCastException e) { |
794 |
this.brace_position_for_switch = CodeFormatterConstants.END_OF_LINE; |
795 |
} |
796 |
} |
797 |
final Object bracePositionForTypeDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_TYPE_DECLARATION); |
798 |
if (bracePositionForTypeDeclarationOption != null) { |
799 |
try { |
800 |
this.brace_position_for_type_declaration = (String) bracePositionForTypeDeclarationOption; |
801 |
} catch(ClassCastException e) { |
802 |
this.brace_position_for_type_declaration = CodeFormatterConstants.END_OF_LINE; |
803 |
} |
804 |
} |
805 |
final Object continuationIndentationOption = settings.get(CodeFormatterConstants.FORMATTER_CONTINUATION_INDENTATION); |
806 |
if (continuationIndentationOption != null) { |
807 |
try { |
808 |
this.continuation_indentation = Integer.parseInt((String) continuationIndentationOption); |
809 |
} catch (NumberFormatException e) { |
810 |
this.continuation_indentation = 2; |
811 |
} catch(ClassCastException e) { |
812 |
this.continuation_indentation = 2; |
813 |
} |
814 |
} |
815 |
final Object continuationIndentationForArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_CONTINUATION_INDENTATION_FOR_ARRAY_INITIALIZER); |
816 |
if (continuationIndentationForArrayInitializerOption != null) { |
817 |
try { |
818 |
this.continuation_indentation_for_array_initializer = Integer.parseInt((String) continuationIndentationForArrayInitializerOption); |
819 |
} catch (NumberFormatException e) { |
820 |
this.continuation_indentation_for_array_initializer = 2; |
821 |
} catch(ClassCastException e) { |
822 |
this.continuation_indentation_for_array_initializer = 2; |
823 |
} |
824 |
} |
825 |
// final Object blankLinesAfterImportsOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_AFTER_IMPORTS); |
826 |
// if (blankLinesAfterImportsOption != null) { |
827 |
// try { |
828 |
// this.blank_lines_after_imports = Integer.parseInt((String) blankLinesAfterImportsOption); |
829 |
// } catch (NumberFormatException e) { |
830 |
// this.blank_lines_after_imports = 0; |
831 |
// } catch(ClassCastException e) { |
832 |
// this.blank_lines_after_imports = 0; |
833 |
// } |
834 |
// } |
835 |
// final Object blankLinesAfterPackageOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_AFTER_PACKAGE); |
836 |
// if (blankLinesAfterPackageOption != null) { |
837 |
// try { |
838 |
// this.blank_lines_after_package = Integer.parseInt((String) blankLinesAfterPackageOption); |
839 |
// } catch (NumberFormatException e) { |
840 |
// this.blank_lines_after_package = 0; |
841 |
// } catch(ClassCastException e) { |
842 |
// this.blank_lines_after_package = 0; |
843 |
// } |
844 |
// } |
845 |
// final Object blankLinesBeforeFieldOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_FIELD); |
846 |
// if (blankLinesBeforeFieldOption != null) { |
847 |
// try { |
848 |
// this.blank_lines_before_field = Integer.parseInt((String) blankLinesBeforeFieldOption); |
849 |
// } catch (NumberFormatException e) { |
850 |
// this.blank_lines_before_field = 0; |
851 |
// } catch(ClassCastException e) { |
852 |
// this.blank_lines_before_field = 0; |
853 |
// } |
854 |
// } |
855 |
// final Object blankLinesBeforeFirstClassBodyDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_FIRST_CLASS_BODY_DECLARATION); |
856 |
// if (blankLinesBeforeFirstClassBodyDeclarationOption != null) { |
857 |
// try { |
858 |
// this.blank_lines_before_first_class_body_declaration = Integer.parseInt((String) blankLinesBeforeFirstClassBodyDeclarationOption); |
859 |
// } catch (NumberFormatException e) { |
860 |
// this.blank_lines_before_first_class_body_declaration = 0; |
861 |
// } catch(ClassCastException e) { |
862 |
// this.blank_lines_before_first_class_body_declaration = 0; |
863 |
// } |
864 |
// } |
865 |
// final Object blankLinesBeforeImportsOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_IMPORTS); |
866 |
// if (blankLinesBeforeImportsOption != null) { |
867 |
// try { |
868 |
// this.blank_lines_before_imports = Integer.parseInt((String) blankLinesBeforeImportsOption); |
869 |
// } catch (NumberFormatException e) { |
870 |
// this.blank_lines_before_imports = 0; |
871 |
// } catch(ClassCastException e) { |
872 |
// this.blank_lines_before_imports = 0; |
873 |
// } |
874 |
// } |
875 |
// final Object blankLinesBeforeMemberTypeOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_MEMBER_TYPE); |
876 |
// if (blankLinesBeforeMemberTypeOption != null) { |
877 |
// try { |
878 |
// this.blank_lines_before_member_type = Integer.parseInt((String) blankLinesBeforeMemberTypeOption); |
879 |
// } catch (NumberFormatException e) { |
880 |
// this.blank_lines_before_member_type = 0; |
881 |
// } catch(ClassCastException e) { |
882 |
// this.blank_lines_before_member_type = 0; |
883 |
// } |
884 |
// } |
885 |
// final Object blankLinesBeforeMethodOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_METHOD); |
886 |
// if (blankLinesBeforeMethodOption != null) { |
887 |
// try { |
888 |
// this.blank_lines_before_method = Integer.parseInt((String) blankLinesBeforeMethodOption); |
889 |
// } catch (NumberFormatException e) { |
890 |
// this.blank_lines_before_method = 0; |
891 |
// } catch(ClassCastException e) { |
892 |
// this.blank_lines_before_method = 0; |
893 |
// } |
894 |
// } |
895 |
// final Object blankLinesBeforeNewChunkOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_NEW_CHUNK); |
896 |
// if (blankLinesBeforeNewChunkOption != null) { |
897 |
// try { |
898 |
// this.blank_lines_before_new_chunk = Integer.parseInt((String) blankLinesBeforeNewChunkOption); |
899 |
// } catch (NumberFormatException e) { |
900 |
// this.blank_lines_before_new_chunk = 0; |
901 |
// } catch(ClassCastException e) { |
902 |
// this.blank_lines_before_new_chunk = 0; |
903 |
// } |
904 |
// } |
905 |
// final Object blankLinesBeforePackageOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_PACKAGE); |
906 |
// if (blankLinesBeforePackageOption != null) { |
907 |
// try { |
908 |
// this.blank_lines_before_package = Integer.parseInt((String) blankLinesBeforePackageOption); |
909 |
// } catch (NumberFormatException e) { |
910 |
// this.blank_lines_before_package = 0; |
911 |
// } catch(ClassCastException e) { |
912 |
// this.blank_lines_before_package = 0; |
913 |
// } |
914 |
// } |
915 |
// final Object blankLinesBetweenTypeDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BETWEEN_TYPE_DECLARATIONS); |
916 |
// if (blankLinesBetweenTypeDeclarationsOption != null) { |
917 |
// try { |
918 |
// this.blank_lines_between_type_declarations = Integer.parseInt((String) blankLinesBetweenTypeDeclarationsOption); |
919 |
// } catch (NumberFormatException e) { |
920 |
// this.blank_lines_between_type_declarations = 0; |
921 |
// } catch(ClassCastException e) { |
922 |
// this.blank_lines_between_type_declarations = 0; |
923 |
// } |
924 |
// } |
925 |
// final Object blankLinesAtBeginningOfMethodBodyOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_AT_BEGINNING_OF_METHOD_BODY); |
926 |
// if (blankLinesAtBeginningOfMethodBodyOption != null) { |
927 |
// try { |
928 |
// this.blank_lines_at_beginning_of_method_body = Integer.parseInt((String) blankLinesAtBeginningOfMethodBodyOption); |
929 |
// } catch (NumberFormatException e) { |
930 |
// this.blank_lines_at_beginning_of_method_body = 0; |
931 |
// } catch(ClassCastException e) { |
932 |
// this.blank_lines_at_beginning_of_method_body = 0; |
933 |
// } |
934 |
// } |
935 |
// final Object commentClearBlankLinesOption = settings.get(CodeFormatterConstants.FORMATTER_COMMENT_CLEAR_BLANK_LINES); |
936 |
// if (commentClearBlankLinesOption != null) { |
937 |
// this.comment_clear_blank_lines = CodeFormatterConstants.TRUE.equals(commentClearBlankLinesOption); |
938 |
// } |
939 |
// final Object commentFormatOption = settings.get(CodeFormatterConstants.FORMATTER_COMMENT_FORMAT); |
940 |
// if (commentFormatOption != null) { |
941 |
// this.comment_format = CodeFormatterConstants.TRUE.equals(commentFormatOption); |
942 |
// } |
943 |
// final Object commentFormatHeaderOption = settings.get(CodeFormatterConstants.FORMATTER_COMMENT_FORMAT_HEADER); |
944 |
// if (commentFormatHeaderOption != null) { |
945 |
// this.comment_format_header = CodeFormatterConstants.TRUE.equals(commentFormatHeaderOption); |
946 |
// } |
947 |
// final Object commentFormatHtmlOption = settings.get(CodeFormatterConstants.FORMATTER_COMMENT_FORMAT_HTML); |
948 |
// if (commentFormatHtmlOption != null) { |
949 |
// this.comment_format_html = CodeFormatterConstants.TRUE.equals(commentFormatHtmlOption); |
950 |
// } |
951 |
// final Object commentFormatSourceOption = settings.get(CodeFormatterConstants.FORMATTER_COMMENT_FORMAT_SOURCE); |
952 |
// if (commentFormatSourceOption != null) { |
953 |
// this.comment_format_source = CodeFormatterConstants.TRUE.equals(commentFormatSourceOption); |
954 |
// } |
955 |
// final Object commentLineLengthOption = settings.get(CodeFormatterConstants.FORMATTER_COMMENT_LINE_LENGTH); |
956 |
// if (commentLineLengthOption != null) { |
957 |
// try { |
958 |
// this.comment_line_length = Integer.parseInt((String) commentLineLengthOption); |
959 |
// } catch (NumberFormatException e) { |
960 |
// this.comment_line_length = 80; |
961 |
// } catch(ClassCastException e) { |
962 |
// this.comment_line_length = 80; |
963 |
// } |
964 |
// } |
965 |
final Object indentStatementsCompareToBlockOption = settings.get(CodeFormatterConstants.FORMATTER_INDENT_STATEMENTS_COMPARE_TO_BLOCK); |
966 |
if (indentStatementsCompareToBlockOption != null) { |
967 |
this.indent_statements_compare_to_block = CodeFormatterConstants.TRUE.equals(indentStatementsCompareToBlockOption); |
968 |
} |
969 |
final Object indentStatementsCompareToBodyOption = settings.get(CodeFormatterConstants.FORMATTER_INDENT_STATEMENTS_COMPARE_TO_BODY); |
970 |
if (indentStatementsCompareToBodyOption != null) { |
971 |
this.indent_statements_compare_to_body = CodeFormatterConstants.TRUE.equals(indentStatementsCompareToBodyOption); |
972 |
} |
973 |
final Object indentBodyDeclarationsCompareToEnumConstantHeaderOption = settings.get(CodeFormatterConstants.FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_ENUM_CONSTANT_HEADER); |
974 |
if (indentBodyDeclarationsCompareToEnumConstantHeaderOption != null) { |
975 |
this.indent_body_declarations_compare_to_enum_constant_header = CodeFormatterConstants.TRUE.equals(indentBodyDeclarationsCompareToEnumConstantHeaderOption); |
976 |
} |
977 |
final Object indentBodyDeclarationsCompareToEnumDeclarationHeaderOption = settings.get(CodeFormatterConstants.FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_ENUM_DECLARATION_HEADER); |
978 |
if (indentBodyDeclarationsCompareToEnumDeclarationHeaderOption != null) { |
979 |
this.indent_body_declarations_compare_to_enum_declaration_header = CodeFormatterConstants.TRUE.equals(indentBodyDeclarationsCompareToEnumDeclarationHeaderOption); |
980 |
} |
981 |
final Object indentBodyDeclarationsCompareToTypeHeaderOption = settings.get(CodeFormatterConstants.FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_TYPE_HEADER); |
982 |
if (indentBodyDeclarationsCompareToTypeHeaderOption != null) { |
983 |
this.indent_body_declarations_compare_to_type_header = CodeFormatterConstants.TRUE.equals(indentBodyDeclarationsCompareToTypeHeaderOption); |
984 |
} |
985 |
final Object indentBreaksCompareToCasesOption = settings.get(CodeFormatterConstants.FORMATTER_INDENT_BREAKS_COMPARE_TO_CASES); |
986 |
if (indentBreaksCompareToCasesOption != null) { |
987 |
this.indent_breaks_compare_to_cases = CodeFormatterConstants.TRUE.equals(indentBreaksCompareToCasesOption); |
988 |
} |
989 |
final Object indentEmptyLinesOption = settings.get(CodeFormatterConstants.FORMATTER_INDENT_EMPTY_LINES); |
990 |
if (indentEmptyLinesOption != null) { |
991 |
this.indent_empty_lines = CodeFormatterConstants.TRUE.equals(indentEmptyLinesOption); |
992 |
} |
993 |
final Object indentSwitchstatementsCompareToCasesOption = settings.get(CodeFormatterConstants.FORMATTER_INDENT_SWITCHSTATEMENTS_COMPARE_TO_CASES); |
994 |
if (indentSwitchstatementsCompareToCasesOption != null) { |
995 |
this.indent_switchstatements_compare_to_cases = CodeFormatterConstants.TRUE.equals(indentSwitchstatementsCompareToCasesOption); |
996 |
} |
997 |
final Object indentSwitchstatementsCompareToSwitchOption = settings.get(CodeFormatterConstants.FORMATTER_INDENT_SWITCHSTATEMENTS_COMPARE_TO_SWITCH); |
998 |
if (indentSwitchstatementsCompareToSwitchOption != null) { |
999 |
this.indent_switchstatements_compare_to_switch = CodeFormatterConstants.TRUE.equals(indentSwitchstatementsCompareToSwitchOption); |
1000 |
} |
1001 |
final Object indentationSizeOption = settings.get(CodeFormatterConstants.FORMATTER_INDENTATION_SIZE); |
1002 |
if (indentationSizeOption != null) { |
1003 |
try { |
1004 |
this.indentation_size = Integer.parseInt((String) indentationSizeOption); |
1005 |
} catch (NumberFormatException e) { |
1006 |
this.indentation_size = 4; |
1007 |
} catch(ClassCastException e) { |
1008 |
this.indentation_size = 4; |
1009 |
} |
1010 |
} |
1011 |
// final Object insertNewLineAfterOpeningBraceInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_AFTER_OPENING_BRACE_IN_ARRAY_INITIALIZER); |
1012 |
// if (insertNewLineAfterOpeningBraceInArrayInitializerOption != null) { |
1013 |
// this.insert_new_line_after_opening_brace_in_array_initializer = CCorePlugin.INSERT.equals(insertNewLineAfterOpeningBraceInArrayInitializerOption); |
1014 |
// } |
1015 |
// final Object insertNewLineAtEndOfFileIfMissingOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_AT_END_OF_FILE_IF_MISSING); |
1016 |
// if (insertNewLineAtEndOfFileIfMissingOption != null) { |
1017 |
// this.insert_new_line_at_end_of_file_if_missing = CCorePlugin.INSERT.equals(insertNewLineAtEndOfFileIfMissingOption); |
1018 |
// } |
1019 |
// final Object insertNewLineBeforeCatchInTryStatementOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_CATCH_IN_TRY_STATEMENT); |
1020 |
// if (insertNewLineBeforeCatchInTryStatementOption != null) { |
1021 |
// this.insert_new_line_before_catch_in_try_statement = CCorePlugin.INSERT.equals(insertNewLineBeforeCatchInTryStatementOption); |
1022 |
// } |
1023 |
// final Object insertNewLineBeforeClosingBraceInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_CLOSING_BRACE_IN_ARRAY_INITIALIZER); |
1024 |
// if (insertNewLineBeforeClosingBraceInArrayInitializerOption != null) { |
1025 |
// this.insert_new_line_before_closing_brace_in_array_initializer = CCorePlugin.INSERT.equals(insertNewLineBeforeClosingBraceInArrayInitializerOption); |
1026 |
// } |
1027 |
// final Object insertNewLineBeforeElseInIfStatementOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_ELSE_IN_IF_STATEMENT); |
1028 |
// if (insertNewLineBeforeElseInIfStatementOption != null) { |
1029 |
// this.insert_new_line_before_else_in_if_statement = CCorePlugin.INSERT.equals(insertNewLineBeforeElseInIfStatementOption); |
1030 |
// } |
1031 |
// final Object insertNewLineBeforeFinallyInTryStatementOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_FINALLY_IN_TRY_STATEMENT); |
1032 |
// if (insertNewLineBeforeFinallyInTryStatementOption != null) { |
1033 |
// this.insert_new_line_before_finally_in_try_statement = CCorePlugin.INSERT.equals(insertNewLineBeforeFinallyInTryStatementOption); |
1034 |
// } |
1035 |
// final Object insertNewLineBeforeWhileInDoStatementOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_WHILE_IN_DO_STATEMENT); |
1036 |
// if (insertNewLineBeforeWhileInDoStatementOption != null) { |
1037 |
// this.insert_new_line_before_while_in_do_statement = CCorePlugin.INSERT.equals(insertNewLineBeforeWhileInDoStatementOption); |
1038 |
// } |
1039 |
// final Object insertNewLineInEmptyBlockOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_BLOCK); |
1040 |
// if (insertNewLineInEmptyBlockOption != null) { |
1041 |
// this.insert_new_line_in_empty_block = CCorePlugin.INSERT.equals(insertNewLineInEmptyBlockOption); |
1042 |
// } |
1043 |
// final Object insertNewLineInEmptyEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_ENUM_CONSTANT); |
1044 |
// if (insertNewLineInEmptyEnumConstantOption != null) { |
1045 |
// this.insert_new_line_in_empty_enum_constant = CCorePlugin.INSERT.equals(insertNewLineInEmptyEnumConstantOption); |
1046 |
// } |
1047 |
// final Object insertNewLineInEmptyEnumDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_ENUM_DECLARATION); |
1048 |
// if (insertNewLineInEmptyEnumDeclarationOption != null) { |
1049 |
// this.insert_new_line_in_empty_enum_declaration = CCorePlugin.INSERT.equals(insertNewLineInEmptyEnumDeclarationOption); |
1050 |
// } |
1051 |
// final Object insertNewLineInEmptyMethodBodyOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_METHOD_BODY); |
1052 |
// if (insertNewLineInEmptyMethodBodyOption != null) { |
1053 |
// this.insert_new_line_in_empty_method_body = CCorePlugin.INSERT.equals(insertNewLineInEmptyMethodBodyOption); |
1054 |
// } |
1055 |
// final Object insertNewLineInEmptyTypeDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_TYPE_DECLARATION); |
1056 |
// if (insertNewLineInEmptyTypeDeclarationOption != null) { |
1057 |
// this.insert_new_line_in_empty_type_declaration = CCorePlugin.INSERT.equals(insertNewLineInEmptyTypeDeclarationOption); |
1058 |
// } |
1059 |
// final Object insertSpaceAfterAndInWildcardOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_AND_IN_TYPE_PARAMETER); |
1060 |
// if (insertSpaceAfterAndInWildcardOption != null) { |
1061 |
// this.insert_space_after_and_in_type_parameter = CCorePlugin.INSERT.equals(insertSpaceAfterAndInWildcardOption); |
1062 |
// } |
1063 |
// final Object insertSpaceAfterAssignmentOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_ASSIGNMENT_OPERATOR); |
1064 |
// if (insertSpaceAfterAssignmentOperatorOption != null) { |
1065 |
// this.insert_space_after_assignment_operator = CCorePlugin.INSERT.equals(insertSpaceAfterAssignmentOperatorOption); |
1066 |
// } |
1067 |
// final Object insertSpaceAfterBinaryOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_BINARY_OPERATOR); |
1068 |
// if (insertSpaceAfterBinaryOperatorOption != null) { |
1069 |
// this.insert_space_after_binary_operator = CCorePlugin.INSERT.equals(insertSpaceAfterBinaryOperatorOption); |
1070 |
// } |
1071 |
// final Object insertSpaceAfterClosingAngleBracketInTypeArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_CLOSING_ANGLE_BRACKET_IN_TYPE_ARGUMENTS); |
1072 |
// if (insertSpaceAfterClosingAngleBracketInTypeArgumentsOption != null) { |
1073 |
// this.insert_space_after_closing_angle_bracket_in_type_arguments = CCorePlugin.INSERT.equals(insertSpaceAfterClosingAngleBracketInTypeArgumentsOption); |
1074 |
// } |
1075 |
// final Object insertSpaceAfterClosingAngleBracketInTypeParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_CLOSING_ANGLE_BRACKET_IN_TYPE_PARAMETERS); |
1076 |
// if (insertSpaceAfterClosingAngleBracketInTypeParametersOption != null) { |
1077 |
// this.insert_space_after_closing_angle_bracket_in_type_parameters = CCorePlugin.INSERT.equals(insertSpaceAfterClosingAngleBracketInTypeParametersOption); |
1078 |
// } |
1079 |
// final Object insertSpaceAfterClosingParenInCastOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_CLOSING_PAREN_IN_CAST); |
1080 |
// if (insertSpaceAfterClosingParenInCastOption != null) { |
1081 |
// this.insert_space_after_closing_paren_in_cast = CCorePlugin.INSERT.equals(insertSpaceAfterClosingParenInCastOption); |
1082 |
// } |
1083 |
// final Object insertSpaceAfterClosingBraceInBlockOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_CLOSING_BRACE_IN_BLOCK); |
1084 |
// if (insertSpaceAfterClosingBraceInBlockOption != null) { |
1085 |
// this.insert_space_after_closing_brace_in_block = CCorePlugin.INSERT.equals(insertSpaceAfterClosingBraceInBlockOption); |
1086 |
// } |
1087 |
// final Object insertSpaceAfterColonInAssertOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_ASSERT); |
1088 |
// if (insertSpaceAfterColonInAssertOption != null) { |
1089 |
// this.insert_space_after_colon_in_assert = CCorePlugin.INSERT.equals(insertSpaceAfterColonInAssertOption); |
1090 |
// } |
1091 |
// final Object insertSpaceAfterColonInCaseOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_CASE); |
1092 |
// if (insertSpaceAfterColonInCaseOption != null) { |
1093 |
// this.insert_space_after_colon_in_case = CCorePlugin.INSERT.equals(insertSpaceAfterColonInCaseOption); |
1094 |
// } |
1095 |
// final Object insertSpaceAfterColonInConditionalOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_CONDITIONAL); |
1096 |
// if (insertSpaceAfterColonInConditionalOption != null) { |
1097 |
// this.insert_space_after_colon_in_conditional = CCorePlugin.INSERT.equals(insertSpaceAfterColonInConditionalOption); |
1098 |
// } |
1099 |
// final Object insertSpaceAfterColonInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_FOR); |
1100 |
// if (insertSpaceAfterColonInForOption != null) { |
1101 |
// this.insert_space_after_colon_in_for = CCorePlugin.INSERT.equals(insertSpaceAfterColonInForOption); |
1102 |
// } |
1103 |
// final Object insertSpaceAfterColonInLabeledStatementOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_LABELED_STATEMENT); |
1104 |
// if (insertSpaceAfterColonInLabeledStatementOption != null) { |
1105 |
// this.insert_space_after_colon_in_labeled_statement = CCorePlugin.INSERT.equals(insertSpaceAfterColonInLabeledStatementOption); |
1106 |
// } |
1107 |
// final Object insertSpaceAfterCommaInAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ALLOCATION_EXPRESSION); |
1108 |
// if (insertSpaceAfterCommaInAllocationExpressionOption != null) { |
1109 |
// this.insert_space_after_comma_in_allocation_expression = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInAllocationExpressionOption); |
1110 |
// } |
1111 |
// final Object insertSpaceAfterCommaInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ARRAY_INITIALIZER); |
1112 |
// if (insertSpaceAfterCommaInArrayInitializerOption != null) { |
1113 |
// this.insert_space_after_comma_in_array_initializer = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInArrayInitializerOption); |
1114 |
// } |
1115 |
// final Object insertSpaceAfterCommaInConstructorDeclarationParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_CONSTRUCTOR_DECLARATION_PARAMETERS); |
1116 |
// if (insertSpaceAfterCommaInConstructorDeclarationParametersOption != null) { |
1117 |
// this.insert_space_after_comma_in_constructor_declaration_parameters = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInConstructorDeclarationParametersOption); |
1118 |
// } |
1119 |
// final Object insertSpaceAfterCommaInConstructorDeclarationThrowsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_CONSTRUCTOR_DECLARATION_THROWS); |
1120 |
// if (insertSpaceAfterCommaInConstructorDeclarationThrowsOption != null) { |
1121 |
// this.insert_space_after_comma_in_constructor_declaration_throws = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInConstructorDeclarationThrowsOption); |
1122 |
// } |
1123 |
// final Object insertSpaceAfterCommaInEnumConstantArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ENUM_CONSTANT_ARGUMENTS); |
1124 |
// if (insertSpaceAfterCommaInEnumConstantArgumentsOption != null) { |
1125 |
// this.insert_space_after_comma_in_enum_constant_arguments = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInEnumConstantArgumentsOption); |
1126 |
// } |
1127 |
// final Object insertSpaceAfterCommaInEnumDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ENUM_DECLARATIONS); |
1128 |
// if (insertSpaceAfterCommaInEnumDeclarationsOption != null) { |
1129 |
// this.insert_space_after_comma_in_enum_declarations = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInEnumDeclarationsOption); |
1130 |
// } |
1131 |
// final Object insertSpaceAfterCommaInExplicitConstructorCallArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_EXPLICIT_CONSTRUCTOR_CALL_ARGUMENTS); |
1132 |
// if (insertSpaceAfterCommaInExplicitConstructorCallArgumentsOption != null) { |
1133 |
// this.insert_space_after_comma_in_explicit_constructor_call_arguments = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInExplicitConstructorCallArgumentsOption); |
1134 |
// } |
1135 |
// final Object insertSpaceAfterCommaInForIncrementsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_FOR_INCREMENTS); |
1136 |
// if (insertSpaceAfterCommaInForIncrementsOption != null) { |
1137 |
// this.insert_space_after_comma_in_for_increments = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInForIncrementsOption); |
1138 |
// } |
1139 |
// final Object insertSpaceAfterCommaInForInitsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_FOR_INITS); |
1140 |
// if (insertSpaceAfterCommaInForInitsOption != null) { |
1141 |
// this.insert_space_after_comma_in_for_inits = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInForInitsOption); |
1142 |
// } |
1143 |
// final Object insertSpaceAfterCommaInMethodInvocationArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_INVOCATION_ARGUMENTS); |
1144 |
// if (insertSpaceAfterCommaInMethodInvocationArgumentsOption != null) { |
1145 |
// this.insert_space_after_comma_in_method_invocation_arguments = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInMethodInvocationArgumentsOption); |
1146 |
// } |
1147 |
// final Object insertSpaceAfterCommaInMethodDeclarationParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_DECLARATION_PARAMETERS); |
1148 |
// if (insertSpaceAfterCommaInMethodDeclarationParametersOption != null) { |
1149 |
// this.insert_space_after_comma_in_method_declaration_parameters = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInMethodDeclarationParametersOption); |
1150 |
// } |
1151 |
// final Object insertSpaceAfterCommaInMethodDeclarationThrowsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_DECLARATION_THROWS); |
1152 |
// if (insertSpaceAfterCommaInMethodDeclarationThrowsOption != null) { |
1153 |
// this.insert_space_after_comma_in_method_declaration_throws = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInMethodDeclarationThrowsOption); |
1154 |
// } |
1155 |
// final Object insertSpaceAfterCommaInMultipleFieldDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_MULTIPLE_FIELD_DECLARATIONS); |
1156 |
// if (insertSpaceAfterCommaInMultipleFieldDeclarationsOption != null) { |
1157 |
// this.insert_space_after_comma_in_multiple_field_declarations = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInMultipleFieldDeclarationsOption); |
1158 |
// } |
1159 |
// final Object insertSpaceAfterCommaInMultipleLocalDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_MULTIPLE_LOCAL_DECLARATIONS); |
1160 |
// if (insertSpaceAfterCommaInMultipleLocalDeclarationsOption != null) { |
1161 |
// this.insert_space_after_comma_in_multiple_local_declarations = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInMultipleLocalDeclarationsOption); |
1162 |
// } |
1163 |
// final Object insertSpaceAfterCommaInParameterizedTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_PARAMETERIZED_TYPE_REFERENCE); |
1164 |
// if (insertSpaceAfterCommaInParameterizedTypeReferenceOption != null) { |
1165 |
// this.insert_space_after_comma_in_parameterized_type_reference = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInParameterizedTypeReferenceOption); |
1166 |
// } |
1167 |
// final Object insertSpaceAfterCommaInSuperinterfacesOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_SUPERINTERFACES); |
1168 |
// if (insertSpaceAfterCommaInSuperinterfacesOption != null) { |
1169 |
// this.insert_space_after_comma_in_superinterfaces = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInSuperinterfacesOption); |
1170 |
// } |
1171 |
// final Object insertSpaceAfterCommaInTypeArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_TYPE_ARGUMENTS); |
1172 |
// if (insertSpaceAfterCommaInTypeArgumentsOption != null) { |
1173 |
// this.insert_space_after_comma_in_type_arguments = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInTypeArgumentsOption); |
1174 |
// } |
1175 |
// final Object insertSpaceAfterCommaInTypeParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_TYPE_PARAMETERS); |
1176 |
// if (insertSpaceAfterCommaInTypeParametersOption != null) { |
1177 |
// this.insert_space_after_comma_in_type_parameters = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInTypeParametersOption); |
1178 |
// } |
1179 |
// final Object insertSpaceAfterEllipsisOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_ELLIPSIS); |
1180 |
// if (insertSpaceAfterEllipsisOption != null) { |
1181 |
// this.insert_space_after_ellipsis = CCorePlugin.INSERT.equals(insertSpaceAfterEllipsisOption); |
1182 |
// } |
1183 |
// final Object insertSpaceAfterOpeningAngleBracketInParameterizedTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_ANGLE_BRACKET_IN_PARAMETERIZED_TYPE_REFERENCE); |
1184 |
// if (insertSpaceAfterOpeningAngleBracketInParameterizedTypeReferenceOption != null) { |
1185 |
// this.insert_space_after_opening_angle_bracket_in_parameterized_type_reference = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningAngleBracketInParameterizedTypeReferenceOption); |
1186 |
// } |
1187 |
// final Object insertSpaceAfterOpeningAngleBracketInTypeArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_ANGLE_BRACKET_IN_TYPE_ARGUMENTS); |
1188 |
// if (insertSpaceAfterOpeningAngleBracketInTypeArgumentsOption != null) { |
1189 |
// this.insert_space_after_opening_angle_bracket_in_type_arguments = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningAngleBracketInTypeArgumentsOption); |
1190 |
// } |
1191 |
// final Object insertSpaceAfterOpeningAngleBracketInTypeParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_ANGLE_BRACKET_IN_TYPE_PARAMETERS); |
1192 |
// if (insertSpaceAfterOpeningAngleBracketInTypeParametersOption != null) { |
1193 |
// this.insert_space_after_opening_angle_bracket_in_type_parameters = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningAngleBracketInTypeParametersOption); |
1194 |
// } |
1195 |
// final Object insertSpaceAfterOpeningBracketInArrayAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_BRACKET_IN_ARRAY_ALLOCATION_EXPRESSION); |
1196 |
// if (insertSpaceAfterOpeningBracketInArrayAllocationExpressionOption != null) { |
1197 |
// this.insert_space_after_opening_bracket_in_array_allocation_expression = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningBracketInArrayAllocationExpressionOption); |
1198 |
// } |
1199 |
// final Object insertSpaceAfterOpeningBracketInArrayReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_BRACKET_IN_ARRAY_REFERENCE); |
1200 |
// if (insertSpaceAfterOpeningBracketInArrayReferenceOption != null) { |
1201 |
// this.insert_space_after_opening_bracket_in_array_reference = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningBracketInArrayReferenceOption); |
1202 |
// } |
1203 |
// final Object insertSpaceAfterOpeningBraceInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_BRACE_IN_ARRAY_INITIALIZER); |
1204 |
// if (insertSpaceAfterOpeningBraceInArrayInitializerOption != null) { |
1205 |
// this.insert_space_after_opening_brace_in_array_initializer = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningBraceInArrayInitializerOption); |
1206 |
// } |
1207 |
// final Object insertSpaceAfterOpeningParenInCastOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CAST); |
1208 |
// if (insertSpaceAfterOpeningParenInCastOption != null) { |
1209 |
// this.insert_space_after_opening_paren_in_cast = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInCastOption); |
1210 |
// } |
1211 |
// final Object insertSpaceAfterOpeningParenInCatchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CATCH); |
1212 |
// if (insertSpaceAfterOpeningParenInCatchOption != null) { |
1213 |
// this.insert_space_after_opening_paren_in_catch = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInCatchOption); |
1214 |
// } |
1215 |
// final Object insertSpaceAfterOpeningParenInConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CONSTRUCTOR_DECLARATION); |
1216 |
// if (insertSpaceAfterOpeningParenInConstructorDeclarationOption != null) { |
1217 |
// this.insert_space_after_opening_paren_in_constructor_declaration = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInConstructorDeclarationOption); |
1218 |
// } |
1219 |
// final Object insertSpaceAfterOpeningParenInEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_ENUM_CONSTANT); |
1220 |
// if (insertSpaceAfterOpeningParenInEnumConstantOption != null) { |
1221 |
// this.insert_space_after_opening_paren_in_enum_constant = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInEnumConstantOption); |
1222 |
// } |
1223 |
// final Object insertSpaceAfterOpeningParenInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_FOR); |
1224 |
// if (insertSpaceAfterOpeningParenInForOption != null) { |
1225 |
// this.insert_space_after_opening_paren_in_for = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInForOption); |
1226 |
// } |
1227 |
// final Object insertSpaceAfterOpeningParenInIfOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_IF); |
1228 |
// if (insertSpaceAfterOpeningParenInIfOption != null) { |
1229 |
// this.insert_space_after_opening_paren_in_if = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInIfOption); |
1230 |
// } |
1231 |
// final Object insertSpaceAfterOpeningParenInMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_METHOD_DECLARATION); |
1232 |
// if (insertSpaceAfterOpeningParenInMethodDeclarationOption != null) { |
1233 |
// this.insert_space_after_opening_paren_in_method_declaration = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInMethodDeclarationOption); |
1234 |
// } |
1235 |
// final Object insertSpaceAfterOpeningParenInMethodInvocationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_METHOD_INVOCATION); |
1236 |
// if (insertSpaceAfterOpeningParenInMethodInvocationOption != null) { |
1237 |
// this.insert_space_after_opening_paren_in_method_invocation = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInMethodInvocationOption); |
1238 |
// } |
1239 |
// final Object insertSpaceAfterOpeningParenInParenthesizedExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_PARENTHESIZED_EXPRESSION); |
1240 |
// if (insertSpaceAfterOpeningParenInParenthesizedExpressionOption != null) { |
1241 |
// this.insert_space_after_opening_paren_in_parenthesized_expression = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInParenthesizedExpressionOption); |
1242 |
// } |
1243 |
// final Object insertSpaceAfterOpeningParenInSwitchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_SWITCH); |
1244 |
// if (insertSpaceAfterOpeningParenInSwitchOption != null) { |
1245 |
// this.insert_space_after_opening_paren_in_switch = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInSwitchOption); |
1246 |
// } |
1247 |
// final Object insertSpaceAfterOpeningParenInSynchronizedOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_SYNCHRONIZED); |
1248 |
// if (insertSpaceAfterOpeningParenInSynchronizedOption != null) { |
1249 |
// this.insert_space_after_opening_paren_in_synchronized = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInSynchronizedOption); |
1250 |
// } |
1251 |
// final Object insertSpaceAfterOpeningParenInWhileOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_WHILE); |
1252 |
// if (insertSpaceAfterOpeningParenInWhileOption != null) { |
1253 |
// this.insert_space_after_opening_paren_in_while = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInWhileOption); |
1254 |
// } |
1255 |
// final Object insertSpaceAfterPostfixOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_POSTFIX_OPERATOR); |
1256 |
// if (insertSpaceAfterPostfixOperatorOption != null) { |
1257 |
// this.insert_space_after_postfix_operator = CCorePlugin.INSERT.equals(insertSpaceAfterPostfixOperatorOption); |
1258 |
// } |
1259 |
// final Object insertSpaceAfterPrefixOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_PREFIX_OPERATOR); |
1260 |
// if (insertSpaceAfterPrefixOperatorOption != null) { |
1261 |
// this.insert_space_after_prefix_operator = CCorePlugin.INSERT.equals(insertSpaceAfterPrefixOperatorOption); |
1262 |
// } |
1263 |
// final Object insertSpaceAfterQuestionInConditionalOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_QUESTION_IN_CONDITIONAL); |
1264 |
// if (insertSpaceAfterQuestionInConditionalOption != null) { |
1265 |
// this.insert_space_after_question_in_conditional = CCorePlugin.INSERT.equals(insertSpaceAfterQuestionInConditionalOption); |
1266 |
// } |
1267 |
// final Object insertSpaceAfterQuestionInWildcardOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_QUESTION_IN_WILDCARD); |
1268 |
// if (insertSpaceAfterQuestionInWildcardOption != null) { |
1269 |
// this.insert_space_after_question_in_wilcard = CCorePlugin.INSERT.equals(insertSpaceAfterQuestionInWildcardOption); |
1270 |
// } |
1271 |
// final Object insertSpaceAfterSemicolonInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_SEMICOLON_IN_FOR); |
1272 |
// if (insertSpaceAfterSemicolonInForOption != null) { |
1273 |
// this.insert_space_after_semicolon_in_for = CCorePlugin.INSERT.equals(insertSpaceAfterSemicolonInForOption); |
1274 |
// } |
1275 |
// final Object insertSpaceAfterUnaryOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_UNARY_OPERATOR); |
1276 |
// if (insertSpaceAfterUnaryOperatorOption != null) { |
1277 |
// this.insert_space_after_unary_operator = CCorePlugin.INSERT.equals(insertSpaceAfterUnaryOperatorOption); |
1278 |
// } |
1279 |
// final Object insertSpaceBeforeAndInWildcardOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_AND_IN_TYPE_PARAMETER); |
1280 |
// if (insertSpaceBeforeAndInWildcardOption != null) { |
1281 |
// this.insert_space_before_and_in_type_parameter = CCorePlugin.INSERT.equals(insertSpaceBeforeAndInWildcardOption); |
1282 |
// } |
1283 |
// final Object insertSpaceBeforeAssignmentOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_ASSIGNMENT_OPERATOR); |
1284 |
// if (insertSpaceBeforeAssignmentOperatorOption != null) { |
1285 |
// this.insert_space_before_assignment_operator = CCorePlugin.INSERT.equals(insertSpaceBeforeAssignmentOperatorOption); |
1286 |
// } |
1287 |
// final Object insertSpaceBeforeBinaryOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_BINARY_OPERATOR); |
1288 |
// if (insertSpaceBeforeBinaryOperatorOption != null) { |
1289 |
// this.insert_space_before_binary_operator = CCorePlugin.INSERT.equals(insertSpaceBeforeBinaryOperatorOption); |
1290 |
// } |
1291 |
// final Object insertSpaceBeforeClosingAngleBracketInParameterizedTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_ANGLE_BRACKET_IN_PARAMETERIZED_TYPE_REFERENCE); |
1292 |
// if (insertSpaceBeforeClosingAngleBracketInParameterizedTypeReferenceOption != null) { |
1293 |
// this.insert_space_before_closing_angle_bracket_in_parameterized_type_reference = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingAngleBracketInParameterizedTypeReferenceOption); |
1294 |
// } |
1295 |
// final Object insertSpaceBeforeClosingAngleBracketInTypeArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_ANGLE_BRACKET_IN_TYPE_ARGUMENTS); |
1296 |
// if (insertSpaceBeforeClosingAngleBracketInTypeArgumentsOption != null) { |
1297 |
// this.insert_space_before_closing_angle_bracket_in_type_arguments = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingAngleBracketInTypeArgumentsOption); |
1298 |
// } |
1299 |
// final Object insertSpaceBeforeClosingAngleBracketInTypeParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_ANGLE_BRACKET_IN_TYPE_PARAMETERS); |
1300 |
// if (insertSpaceBeforeClosingAngleBracketInTypeParametersOption != null) { |
1301 |
// this.insert_space_before_closing_angle_bracket_in_type_parameters = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingAngleBracketInTypeParametersOption); |
1302 |
// } |
1303 |
// final Object insertSpaceBeforeClosingBraceInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_BRACE_IN_ARRAY_INITIALIZER); |
1304 |
// if (insertSpaceBeforeClosingBraceInArrayInitializerOption != null) { |
1305 |
// this.insert_space_before_closing_brace_in_array_initializer = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingBraceInArrayInitializerOption); |
1306 |
// } |
1307 |
// final Object insertSpaceBeforeClosingBracketInArrayAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_BRACKET_IN_ARRAY_ALLOCATION_EXPRESSION); |
1308 |
// if (insertSpaceBeforeClosingBracketInArrayAllocationExpressionOption != null) { |
1309 |
// this.insert_space_before_closing_bracket_in_array_allocation_expression = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingBracketInArrayAllocationExpressionOption); |
1310 |
// } |
1311 |
// final Object insertSpaceBeforeClosingBracketInArrayReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_BRACKET_IN_ARRAY_REFERENCE); |
1312 |
// if (insertSpaceBeforeClosingBracketInArrayReferenceOption != null) { |
1313 |
// this.insert_space_before_closing_bracket_in_array_reference = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingBracketInArrayReferenceOption); |
1314 |
// } |
1315 |
// final Object insertSpaceBeforeClosingParenInCastOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CAST); |
1316 |
// if (insertSpaceBeforeClosingParenInCastOption != null) { |
1317 |
// this.insert_space_before_closing_paren_in_cast = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInCastOption); |
1318 |
// } |
1319 |
// final Object insertSpaceBeforeClosingParenInCatchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CATCH); |
1320 |
// if (insertSpaceBeforeClosingParenInCatchOption != null) { |
1321 |
// this.insert_space_before_closing_paren_in_catch = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInCatchOption); |
1322 |
// } |
1323 |
// final Object insertSpaceBeforeClosingParenInConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CONSTRUCTOR_DECLARATION); |
1324 |
// if (insertSpaceBeforeClosingParenInConstructorDeclarationOption != null) { |
1325 |
// this.insert_space_before_closing_paren_in_constructor_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInConstructorDeclarationOption); |
1326 |
// } |
1327 |
// final Object insertSpaceBeforeClosingParenInEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_ENUM_CONSTANT); |
1328 |
// if (insertSpaceBeforeClosingParenInEnumConstantOption != null) { |
1329 |
// this.insert_space_before_closing_paren_in_enum_constant = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInEnumConstantOption); |
1330 |
// } |
1331 |
// final Object insertSpaceBeforeClosingParenInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_FOR); |
1332 |
// if (insertSpaceBeforeClosingParenInForOption != null) { |
1333 |
// this.insert_space_before_closing_paren_in_for = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInForOption); |
1334 |
// } |
1335 |
// final Object insertSpaceBeforeClosingParenInIfOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_IF); |
1336 |
// if (insertSpaceBeforeClosingParenInIfOption != null) { |
1337 |
// this.insert_space_before_closing_paren_in_if = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInIfOption); |
1338 |
// } |
1339 |
// final Object insertSpaceBeforeClosingParenInMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_METHOD_DECLARATION); |
1340 |
// if (insertSpaceBeforeClosingParenInMethodDeclarationOption != null) { |
1341 |
// this.insert_space_before_closing_paren_in_method_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInMethodDeclarationOption); |
1342 |
// } |
1343 |
// final Object insertSpaceBeforeClosingParenInMethodInvocationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_METHOD_INVOCATION); |
1344 |
// if (insertSpaceBeforeClosingParenInMethodInvocationOption != null) { |
1345 |
// this.insert_space_before_closing_paren_in_method_invocation = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInMethodInvocationOption); |
1346 |
// } |
1347 |
// final Object insertSpaceBeforeClosingParenInParenthesizedExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_PARENTHESIZED_EXPRESSION); |
1348 |
// if (insertSpaceBeforeClosingParenInParenthesizedExpressionOption != null) { |
1349 |
// this.insert_space_before_closing_paren_in_parenthesized_expression = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInParenthesizedExpressionOption); |
1350 |
// } |
1351 |
// final Object insertSpaceBeforeClosingParenInSwitchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_SWITCH); |
1352 |
// if (insertSpaceBeforeClosingParenInSwitchOption != null) { |
1353 |
// this.insert_space_before_closing_paren_in_switch = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInSwitchOption); |
1354 |
// } |
1355 |
// final Object insertSpaceBeforeClosingParenInSynchronizedOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_SYNCHRONIZED); |
1356 |
// if (insertSpaceBeforeClosingParenInSynchronizedOption != null) { |
1357 |
// this.insert_space_before_closing_paren_in_synchronized = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInSynchronizedOption); |
1358 |
// } |
1359 |
// final Object insertSpaceBeforeClosingParenInWhileOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_WHILE); |
1360 |
// if (insertSpaceBeforeClosingParenInWhileOption != null) { |
1361 |
// this.insert_space_before_closing_paren_in_while = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInWhileOption); |
1362 |
// } |
1363 |
// final Object insertSpaceBeforeColonInAssertOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_ASSERT); |
1364 |
// if (insertSpaceBeforeColonInAssertOption != null) { |
1365 |
// this.insert_space_before_colon_in_assert = CCorePlugin.INSERT.equals(insertSpaceBeforeColonInAssertOption); |
1366 |
// } |
1367 |
// final Object insertSpaceBeforeColonInCaseOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_CASE); |
1368 |
// if (insertSpaceBeforeColonInCaseOption != null) { |
1369 |
// this.insert_space_before_colon_in_case = CCorePlugin.INSERT.equals(insertSpaceBeforeColonInCaseOption); |
1370 |
// } |
1371 |
// final Object insertSpaceBeforeColonInConditionalOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_CONDITIONAL); |
1372 |
// if (insertSpaceBeforeColonInConditionalOption != null) { |
1373 |
// this.insert_space_before_colon_in_conditional = CCorePlugin.INSERT.equals(insertSpaceBeforeColonInConditionalOption); |
1374 |
// } |
1375 |
// final Object insertSpaceBeforeColonInDefaultOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_DEFAULT); |
1376 |
// if (insertSpaceBeforeColonInDefaultOption != null) { |
1377 |
// this.insert_space_before_colon_in_default = CCorePlugin.INSERT.equals(insertSpaceBeforeColonInDefaultOption); |
1378 |
// } |
1379 |
// final Object insertSpaceBeforeColonInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_FOR); |
1380 |
// if (insertSpaceBeforeColonInForOption != null) { |
1381 |
// this.insert_space_before_colon_in_for = CCorePlugin.INSERT.equals(insertSpaceBeforeColonInForOption); |
1382 |
// } |
1383 |
// final Object insertSpaceBeforeColonInLabeledStatementOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_LABELED_STATEMENT); |
1384 |
// if (insertSpaceBeforeColonInLabeledStatementOption != null) { |
1385 |
// this.insert_space_before_colon_in_labeled_statement = CCorePlugin.INSERT.equals(insertSpaceBeforeColonInLabeledStatementOption); |
1386 |
// } |
1387 |
// final Object insertSpaceBeforeCommaInAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ALLOCATION_EXPRESSION); |
1388 |
// if (insertSpaceBeforeCommaInAllocationExpressionOption != null) { |
1389 |
// this.insert_space_before_comma_in_allocation_expression = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInAllocationExpressionOption); |
1390 |
// } |
1391 |
// final Object insertSpaceBeforeCommaInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ARRAY_INITIALIZER); |
1392 |
// if (insertSpaceBeforeCommaInArrayInitializerOption != null) { |
1393 |
// this.insert_space_before_comma_in_array_initializer = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInArrayInitializerOption); |
1394 |
// } |
1395 |
// final Object insertSpaceBeforeCommaInConstructorDeclarationParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_CONSTRUCTOR_DECLARATION_PARAMETERS); |
1396 |
// if (insertSpaceBeforeCommaInConstructorDeclarationParametersOption != null) { |
1397 |
// this.insert_space_before_comma_in_constructor_declaration_parameters = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInConstructorDeclarationParametersOption); |
1398 |
// } |
1399 |
// final Object insertSpaceBeforeCommaInConstructorDeclarationThrowsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_CONSTRUCTOR_DECLARATION_THROWS); |
1400 |
// if (insertSpaceBeforeCommaInConstructorDeclarationThrowsOption != null) { |
1401 |
// this.insert_space_before_comma_in_constructor_declaration_throws = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInConstructorDeclarationThrowsOption); |
1402 |
// } |
1403 |
// final Object insertSpaceBeforeCommaInEnumConstantArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ENUM_CONSTANT_ARGUMENTS); |
1404 |
// if (insertSpaceBeforeCommaInEnumConstantArgumentsOption != null) { |
1405 |
// this.insert_space_before_comma_in_enum_constant_arguments = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInEnumConstantArgumentsOption); |
1406 |
// } |
1407 |
// final Object insertSpaceBeforeCommaInEnumDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ENUM_DECLARATIONS); |
1408 |
// if (insertSpaceBeforeCommaInEnumDeclarationsOption != null) { |
1409 |
// this.insert_space_before_comma_in_enum_declarations = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInEnumDeclarationsOption); |
1410 |
// } |
1411 |
// final Object insertSpaceBeforeCommaInExplicitConstructorCallArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_EXPLICIT_CONSTRUCTOR_CALL_ARGUMENTS); |
1412 |
// if (insertSpaceBeforeCommaInExplicitConstructorCallArgumentsOption != null) { |
1413 |
// this.insert_space_before_comma_in_explicit_constructor_call_arguments = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInExplicitConstructorCallArgumentsOption); |
1414 |
// } |
1415 |
// final Object insertSpaceBeforeCommaInForIncrementsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_FOR_INCREMENTS); |
1416 |
// if (insertSpaceBeforeCommaInForIncrementsOption != null) { |
1417 |
// this.insert_space_before_comma_in_for_increments = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInForIncrementsOption); |
1418 |
// } |
1419 |
// final Object insertSpaceBeforeCommaInForInitsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_FOR_INITS); |
1420 |
// if (insertSpaceBeforeCommaInForInitsOption != null) { |
1421 |
// this.insert_space_before_comma_in_for_inits = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInForInitsOption); |
1422 |
// } |
1423 |
// final Object insertSpaceBeforeCommaInMethodInvocationArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_INVOCATION_ARGUMENTS); |
1424 |
// if (insertSpaceBeforeCommaInMethodInvocationArgumentsOption != null) { |
1425 |
// this.insert_space_before_comma_in_method_invocation_arguments = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInMethodInvocationArgumentsOption); |
1426 |
// } |
1427 |
// final Object insertSpaceBeforeCommaInMethodDeclarationParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_DECLARATION_PARAMETERS); |
1428 |
// if (insertSpaceBeforeCommaInMethodDeclarationParametersOption != null) { |
1429 |
// this.insert_space_before_comma_in_method_declaration_parameters = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInMethodDeclarationParametersOption); |
1430 |
// } |
1431 |
// final Object insertSpaceBeforeCommaInMethodDeclarationThrowsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_DECLARATION_THROWS); |
1432 |
// if (insertSpaceBeforeCommaInMethodDeclarationThrowsOption != null) { |
1433 |
// this.insert_space_before_comma_in_method_declaration_throws = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInMethodDeclarationThrowsOption); |
1434 |
// } |
1435 |
// final Object insertSpaceBeforeCommaInMultipleFieldDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_MULTIPLE_FIELD_DECLARATIONS); |
1436 |
// if (insertSpaceBeforeCommaInMultipleFieldDeclarationsOption != null) { |
1437 |
// this.insert_space_before_comma_in_multiple_field_declarations = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInMultipleFieldDeclarationsOption); |
1438 |
// } |
1439 |
// final Object insertSpaceBeforeCommaInMultipleLocalDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_MULTIPLE_LOCAL_DECLARATIONS); |
1440 |
// if (insertSpaceBeforeCommaInMultipleLocalDeclarationsOption != null) { |
1441 |
// this.insert_space_before_comma_in_multiple_local_declarations = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInMultipleLocalDeclarationsOption); |
1442 |
// } |
1443 |
// final Object insertSpaceBeforeCommaInParameterizedTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_PARAMETERIZED_TYPE_REFERENCE); |
1444 |
// if (insertSpaceBeforeCommaInParameterizedTypeReferenceOption != null) { |
1445 |
// this.insert_space_before_comma_in_parameterized_type_reference = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInParameterizedTypeReferenceOption); |
1446 |
// } |
1447 |
// final Object insertSpaceBeforeCommaInSuperinterfacesOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_SUPERINTERFACES); |
1448 |
// if (insertSpaceBeforeCommaInSuperinterfacesOption != null) { |
1449 |
// this.insert_space_before_comma_in_superinterfaces = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInSuperinterfacesOption); |
1450 |
// } |
1451 |
// final Object insertSpaceBeforeCommaInTypeArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_TYPE_ARGUMENTS); |
1452 |
// if (insertSpaceBeforeCommaInTypeArgumentsOption != null) { |
1453 |
// this.insert_space_before_comma_in_type_arguments = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInTypeArgumentsOption); |
1454 |
// } |
1455 |
// final Object insertSpaceBeforeCommaInTypeParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_TYPE_PARAMETERS); |
1456 |
// if (insertSpaceBeforeCommaInTypeParametersOption != null) { |
1457 |
// this.insert_space_before_comma_in_type_parameters = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInTypeParametersOption); |
1458 |
// } |
1459 |
// final Object insertSpaceBeforeEllipsisOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_ELLIPSIS); |
1460 |
// if (insertSpaceBeforeEllipsisOption != null) { |
1461 |
// this.insert_space_before_ellipsis = CCorePlugin.INSERT.equals(insertSpaceBeforeEllipsisOption); |
1462 |
// } |
1463 |
// final Object insertSpaceBeforeOpeningAngleBrackerInParameterizedTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_ANGLE_BRACKET_IN_PARAMETERIZED_TYPE_REFERENCE); |
1464 |
// if (insertSpaceBeforeOpeningAngleBrackerInParameterizedTypeReferenceOption != null) { |
1465 |
// this.insert_space_before_opening_angle_bracket_in_parameterized_type_reference = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningAngleBrackerInParameterizedTypeReferenceOption); |
1466 |
// } |
1467 |
// final Object insertSpaceBeforeOpeningAngleBrackerInTypeArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_ANGLE_BRACKET_IN_TYPE_ARGUMENTS); |
1468 |
// if (insertSpaceBeforeOpeningAngleBrackerInTypeArgumentsOption != null) { |
1469 |
// this.insert_space_before_opening_angle_bracket_in_type_arguments = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningAngleBrackerInTypeArgumentsOption); |
1470 |
// } |
1471 |
// final Object insertSpaceBeforeOpeningAngleBrackerInTypeParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_ANGLE_BRACKET_IN_TYPE_PARAMETERS); |
1472 |
// if (insertSpaceBeforeOpeningAngleBrackerInTypeParametersOption != null) { |
1473 |
// this.insert_space_before_opening_angle_bracket_in_type_parameters = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningAngleBrackerInTypeParametersOption); |
1474 |
// } |
1475 |
// final Object insertSpaceBeforeOpeningBraceInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_ARRAY_INITIALIZER); |
1476 |
// if (insertSpaceBeforeOpeningBraceInArrayInitializerOption != null) { |
1477 |
// this.insert_space_before_opening_brace_in_array_initializer = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInArrayInitializerOption); |
1478 |
// } |
1479 |
// final Object insertSpaceBeforeOpeningBraceInBlockOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_BLOCK); |
1480 |
// if (insertSpaceBeforeOpeningBraceInBlockOption != null) { |
1481 |
// this.insert_space_before_opening_brace_in_block = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInBlockOption); |
1482 |
// } |
1483 |
// final Object insertSpaceBeforeOpeningBraceInConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_CONSTRUCTOR_DECLARATION); |
1484 |
// if (insertSpaceBeforeOpeningBraceInConstructorDeclarationOption != null) { |
1485 |
// this.insert_space_before_opening_brace_in_constructor_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInConstructorDeclarationOption); |
1486 |
// } |
1487 |
// final Object insertSpaceBeforeOpeningBraceInEnumDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_ENUM_DECLARATION); |
1488 |
// if (insertSpaceBeforeOpeningBraceInEnumDeclarationOption != null) { |
1489 |
// this.insert_space_before_opening_brace_in_enum_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInEnumDeclarationOption); |
1490 |
// } |
1491 |
// final Object insertSpaceBeforeOpeningBraceInEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_ENUM_CONSTANT); |
1492 |
// if (insertSpaceBeforeOpeningBraceInEnumConstantOption != null) { |
1493 |
// this.insert_space_before_opening_brace_in_enum_constant = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInEnumConstantOption); |
1494 |
// } |
1495 |
// final Object insertSpaceBeforeOpeningBraceInMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_METHOD_DECLARATION); |
1496 |
// if (insertSpaceBeforeOpeningBraceInMethodDeclarationOption != null) { |
1497 |
// this.insert_space_before_opening_brace_in_method_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInMethodDeclarationOption); |
1498 |
// } |
1499 |
// final Object insertSpaceBeforeOpeningBraceInTypeDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_TYPE_DECLARATION); |
1500 |
// if (insertSpaceBeforeOpeningBraceInTypeDeclarationOption != null) { |
1501 |
// this.insert_space_before_opening_brace_in_type_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInTypeDeclarationOption); |
1502 |
// } |
1503 |
// final Object insertSpaceBeforeOpeningBracketInArrayAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACKET_IN_ARRAY_ALLOCATION_EXPRESSION); |
1504 |
// if (insertSpaceBeforeOpeningBracketInArrayAllocationExpressionOption != null) { |
1505 |
// this.insert_space_before_opening_bracket_in_array_allocation_expression = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBracketInArrayAllocationExpressionOption); |
1506 |
// } |
1507 |
// final Object insertSpaceBeforeOpeningBracketInArrayReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACKET_IN_ARRAY_REFERENCE); |
1508 |
// if (insertSpaceBeforeOpeningBracketInArrayReferenceOption != null) { |
1509 |
// this.insert_space_before_opening_bracket_in_array_reference = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBracketInArrayReferenceOption); |
1510 |
// } |
1511 |
// final Object insertSpaceBeforeOpeningBracketInArrayTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACKET_IN_ARRAY_TYPE_REFERENCE); |
1512 |
// if (insertSpaceBeforeOpeningBracketInArrayTypeReferenceOption != null) { |
1513 |
// this.insert_space_before_opening_bracket_in_array_type_reference = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBracketInArrayTypeReferenceOption); |
1514 |
// } |
1515 |
// final Object insertSpaceBeforeOpeningParenInCatchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_CATCH); |
1516 |
// if (insertSpaceBeforeOpeningParenInCatchOption != null) { |
1517 |
// this.insert_space_before_opening_paren_in_catch = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInCatchOption); |
1518 |
// } |
1519 |
// final Object insertSpaceBeforeOpeningParenInConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_CONSTRUCTOR_DECLARATION); |
1520 |
// if (insertSpaceBeforeOpeningParenInConstructorDeclarationOption != null) { |
1521 |
// this.insert_space_before_opening_paren_in_constructor_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInConstructorDeclarationOption); |
1522 |
// } |
1523 |
// final Object insertSpaceBeforeOpeningParenInEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_ENUM_CONSTANT); |
1524 |
// if (insertSpaceBeforeOpeningParenInEnumConstantOption != null) { |
1525 |
// this.insert_space_before_opening_paren_in_enum_constant = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInEnumConstantOption); |
1526 |
// } |
1527 |
// final Object insertSpaceBeforeOpeningParenInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_FOR); |
1528 |
// if (insertSpaceBeforeOpeningParenInForOption != null) { |
1529 |
// this.insert_space_before_opening_paren_in_for = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInForOption); |
1530 |
// } |
1531 |
// final Object insertSpaceBeforeOpeningParenInIfOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_IF); |
1532 |
// if (insertSpaceBeforeOpeningParenInIfOption != null) { |
1533 |
// this.insert_space_before_opening_paren_in_if = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInIfOption); |
1534 |
// } |
1535 |
// final Object insertSpaceBeforeOpeningParenInMethodInvocationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_METHOD_INVOCATION); |
1536 |
// if (insertSpaceBeforeOpeningParenInMethodInvocationOption != null) { |
1537 |
// this.insert_space_before_opening_paren_in_method_invocation = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInMethodInvocationOption); |
1538 |
// } |
1539 |
// final Object insertSpaceBeforeOpeningParenInMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_METHOD_DECLARATION); |
1540 |
// if (insertSpaceBeforeOpeningParenInMethodDeclarationOption != null) { |
1541 |
// this.insert_space_before_opening_paren_in_method_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInMethodDeclarationOption); |
1542 |
// } |
1543 |
// final Object insertSpaceBeforeOpeningParenInSwitchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_SWITCH); |
1544 |
// if (insertSpaceBeforeOpeningParenInSwitchOption != null) { |
1545 |
// this.insert_space_before_opening_paren_in_switch = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInSwitchOption); |
1546 |
// } |
1547 |
// final Object insertSpaceBeforeOpeningBraceInSwitchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_SWITCH); |
1548 |
// if (insertSpaceBeforeOpeningBraceInSwitchOption != null) { |
1549 |
// this.insert_space_before_opening_brace_in_switch = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInSwitchOption); |
1550 |
// } |
1551 |
// final Object insertSpaceBeforeOpeningParenInSynchronizedOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_SYNCHRONIZED); |
1552 |
// if (insertSpaceBeforeOpeningParenInSynchronizedOption != null) { |
1553 |
// this.insert_space_before_opening_paren_in_synchronized = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInSynchronizedOption); |
1554 |
// } |
1555 |
// final Object insertSpaceBeforeOpeningParenInParenthesizedExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_PARENTHESIZED_EXPRESSION); |
1556 |
// if (insertSpaceBeforeOpeningParenInParenthesizedExpressionOption != null) { |
1557 |
// this.insert_space_before_opening_paren_in_parenthesized_expression = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInParenthesizedExpressionOption); |
1558 |
// } |
1559 |
// final Object insertSpaceBeforeOpeningParenInWhileOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_WHILE); |
1560 |
// if (insertSpaceBeforeOpeningParenInWhileOption != null) { |
1561 |
// this.insert_space_before_opening_paren_in_while = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInWhileOption); |
1562 |
// } |
1563 |
// final Object insertSpaceBeforeParenthesizedExpressionInReturnOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_PARENTHESIZED_EXPRESSION_IN_RETURN); |
1564 |
// if (insertSpaceBeforeParenthesizedExpressionInReturnOption != null) { |
1565 |
// this.insert_space_before_parenthesized_expression_in_return = CCorePlugin.INSERT.equals(insertSpaceBeforeParenthesizedExpressionInReturnOption); |
1566 |
// } |
1567 |
// final Object insertSpaceBeforePostfixOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_POSTFIX_OPERATOR); |
1568 |
// if (insertSpaceBeforePostfixOperatorOption != null) { |
1569 |
// this.insert_space_before_postfix_operator = CCorePlugin.INSERT.equals(insertSpaceBeforePostfixOperatorOption); |
1570 |
// } |
1571 |
// final Object insertSpaceBeforePrefixOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_PREFIX_OPERATOR); |
1572 |
// if (insertSpaceBeforePrefixOperatorOption != null) { |
1573 |
// this.insert_space_before_prefix_operator = CCorePlugin.INSERT.equals(insertSpaceBeforePrefixOperatorOption); |
1574 |
// } |
1575 |
// final Object insertSpaceBeforeQuestionInConditionalOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_QUESTION_IN_CONDITIONAL); |
1576 |
// if (insertSpaceBeforeQuestionInConditionalOption != null) { |
1577 |
// this.insert_space_before_question_in_conditional = CCorePlugin.INSERT.equals(insertSpaceBeforeQuestionInConditionalOption); |
1578 |
// } |
1579 |
// final Object insertSpaceBeforeQuestionInWildcardOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_QUESTION_IN_WILDCARD); |
1580 |
// if (insertSpaceBeforeQuestionInWildcardOption != null) { |
1581 |
// this.insert_space_before_question_in_wilcard = CCorePlugin.INSERT.equals(insertSpaceBeforeQuestionInWildcardOption); |
1582 |
// } |
1583 |
// final Object insertSpaceBeforeSemicolonOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_SEMICOLON); |
1584 |
// if (insertSpaceBeforeSemicolonOption != null) { |
1585 |
// this.insert_space_before_semicolon = CCorePlugin.INSERT.equals(insertSpaceBeforeSemicolonOption); |
1586 |
// } |
1587 |
// final Object insertSpaceBeforeSemicolonInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_SEMICOLON_IN_FOR); |
1588 |
// if (insertSpaceBeforeSemicolonInForOption != null) { |
1589 |
// this.insert_space_before_semicolon_in_for = CCorePlugin.INSERT.equals(insertSpaceBeforeSemicolonInForOption); |
1590 |
// } |
1591 |
// final Object insertSpaceBeforeUnaryOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_UNARY_OPERATOR); |
1592 |
// if (insertSpaceBeforeUnaryOperatorOption != null) { |
1593 |
// this.insert_space_before_unary_operator = CCorePlugin.INSERT.equals(insertSpaceBeforeUnaryOperatorOption); |
1594 |
// } |
1595 |
// final Object insertSpaceBetweenBracketsInArrayTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_BRACKETS_IN_ARRAY_TYPE_REFERENCE); |
1596 |
// if (insertSpaceBetweenBracketsInArrayTypeReferenceOption != null) { |
1597 |
// this.insert_space_between_brackets_in_array_type_reference = CCorePlugin.INSERT.equals(insertSpaceBetweenBracketsInArrayTypeReferenceOption); |
1598 |
// } |
1599 |
// final Object insertSpaceBetweenEmptyBracesInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_BRACES_IN_ARRAY_INITIALIZER); |
1600 |
// if (insertSpaceBetweenEmptyBracesInArrayInitializerOption != null) { |
1601 |
// this.insert_space_between_empty_braces_in_array_initializer = CCorePlugin.INSERT.equals(insertSpaceBetweenEmptyBracesInArrayInitializerOption); |
1602 |
// } |
1603 |
// final Object insertSpaceBetweenEmptyBracketsInArrayAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_BRACKETS_IN_ARRAY_ALLOCATION_EXPRESSION); |
1604 |
// if (insertSpaceBetweenEmptyBracketsInArrayAllocationExpressionOption != null) { |
1605 |
// this.insert_space_between_empty_brackets_in_array_allocation_expression = CCorePlugin.INSERT.equals(insertSpaceBetweenEmptyBracketsInArrayAllocationExpressionOption); |
1606 |
// } |
1607 |
// final Object insertSpaceBetweenEmptyParensInConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_CONSTRUCTOR_DECLARATION); |
1608 |
// if (insertSpaceBetweenEmptyParensInConstructorDeclarationOption != null) { |
1609 |
// this.insert_space_between_empty_parens_in_constructor_declaration = CCorePlugin.INSERT.equals(insertSpaceBetweenEmptyParensInConstructorDeclarationOption); |
1610 |
// } |
1611 |
// final Object insertSpaceBetweenEmptyParensInEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_ENUM_CONSTANT); |
1612 |
// if (insertSpaceBetweenEmptyParensInEnumConstantOption != null) { |
1613 |
// this.insert_space_between_empty_parens_in_enum_constant = CCorePlugin.INSERT.equals(insertSpaceBetweenEmptyParensInEnumConstantOption); |
1614 |
// } |
1615 |
// final Object insertSpaceBetweenEmptyParensInMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_METHOD_DECLARATION); |
1616 |
// if (insertSpaceBetweenEmptyParensInMethodDeclarationOption != null) { |
1617 |
// this.insert_space_between_empty_parens_in_method_declaration = CCorePlugin.INSERT.equals(insertSpaceBetweenEmptyParensInMethodDeclarationOption); |
1618 |
// } |
1619 |
// final Object insertSpaceBetweenEmptyParensInMethodInvocationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_METHOD_INVOCATION); |
1620 |
// if (insertSpaceBetweenEmptyParensInMethodInvocationOption != null) { |
1621 |
// this.insert_space_between_empty_parens_in_method_invocation = CCorePlugin.INSERT.equals(insertSpaceBetweenEmptyParensInMethodInvocationOption); |
1622 |
// } |
1623 |
// final Object compactElseIfOption = settings.get(CodeFormatterConstants.FORMATTER_COMPACT_ELSE_IF); |
1624 |
// if (compactElseIfOption != null) { |
1625 |
// this.compact_else_if = CodeFormatterConstants.TRUE.equals(compactElseIfOption); |
1626 |
// } |
1627 |
// final Object keepGuardianClauseOnOneLineOption = settings.get(CodeFormatterConstants.FORMATTER_KEEP_GUARDIAN_CLAUSE_ON_ONE_LINE); |
1628 |
// if (keepGuardianClauseOnOneLineOption != null) { |
1629 |
// this.keep_guardian_clause_on_one_line = CodeFormatterConstants.TRUE.equals(keepGuardianClauseOnOneLineOption); |
1630 |
// } |
1631 |
// final Object keepElseStatementOnSameLineOption = settings.get(CodeFormatterConstants.FORMATTER_KEEP_ELSE_STATEMENT_ON_SAME_LINE); |
1632 |
// if (keepElseStatementOnSameLineOption != null) { |
1633 |
// this.keep_else_statement_on_same_line = CodeFormatterConstants.TRUE.equals(keepElseStatementOnSameLineOption); |
1634 |
// } |
1635 |
// final Object keepEmptyArrayInitializerOnOneLineOption = settings.get(CodeFormatterConstants.FORMATTER_KEEP_EMPTY_ARRAY_INITIALIZER_ON_ONE_LINE); |
1636 |
// if (keepEmptyArrayInitializerOnOneLineOption != null) { |
1637 |
// this.keep_empty_array_initializer_on_one_line = CodeFormatterConstants.TRUE.equals(keepEmptyArrayInitializerOnOneLineOption); |
1638 |
// } |
1639 |
// final Object keepSimpleIfOnOneLineOption = settings.get(CodeFormatterConstants.FORMATTER_KEEP_SIMPLE_IF_ON_ONE_LINE); |
1640 |
// if (keepSimpleIfOnOneLineOption != null) { |
1641 |
// this.keep_simple_if_on_one_line = CodeFormatterConstants.TRUE.equals(keepSimpleIfOnOneLineOption); |
1642 |
// } |
1643 |
// final Object keepThenStatementOnSameLineOption = settings.get(CodeFormatterConstants.FORMATTER_KEEP_THEN_STATEMENT_ON_SAME_LINE); |
1644 |
// if (keepThenStatementOnSameLineOption != null) { |
1645 |
// this.keep_then_statement_on_same_line = CodeFormatterConstants.TRUE.equals(keepThenStatementOnSameLineOption); |
1646 |
// } |
1647 |
// final Object numberOfEmptyLinesToPreserveOption = settings.get(CodeFormatterConstants.FORMATTER_NUMBER_OF_EMPTY_LINES_TO_PRESERVE); |
1648 |
// if (numberOfEmptyLinesToPreserveOption != null) { |
1649 |
// try { |
1650 |
// this.number_of_empty_lines_to_preserve = Integer.parseInt((String) numberOfEmptyLinesToPreserveOption); |
1651 |
// } catch (NumberFormatException e) { |
1652 |
// this.number_of_empty_lines_to_preserve = 0; |
1653 |
// } catch(ClassCastException e) { |
1654 |
// this.number_of_empty_lines_to_preserve = 0; |
1655 |
// } |
1656 |
// } |
1657 |
// final Object putEmptyStatementOnNewLineOption = settings.get(CodeFormatterConstants.FORMATTER_PUT_EMPTY_STATEMENT_ON_NEW_LINE); |
1658 |
// if (putEmptyStatementOnNewLineOption != null) { |
1659 |
// this.put_empty_statement_on_new_line = CodeFormatterConstants.TRUE.equals(putEmptyStatementOnNewLineOption); |
1660 |
// } |
1661 |
final Object tabSizeOption = settings.get(CodeFormatterConstants.FORMATTER_TAB_SIZE); |
1662 |
if (tabSizeOption != null) { |
1663 |
try { |
1664 |
this.tab_size = Integer.parseInt((String) tabSizeOption); |
1665 |
} catch (NumberFormatException e) { |
1666 |
this.tab_size = 4; |
1667 |
} catch(ClassCastException e) { |
1668 |
this.tab_size = 4; |
1669 |
} |
1670 |
} |
1671 |
final Object useTabsOnlyForLeadingIndentationsOption = settings.get(CodeFormatterConstants.FORMATTER_USE_TABS_ONLY_FOR_LEADING_INDENTATIONS); |
1672 |
if (useTabsOnlyForLeadingIndentationsOption != null) { |
1673 |
this.use_tabs_only_for_leading_indentations = CodeFormatterConstants.TRUE.equals(useTabsOnlyForLeadingIndentationsOption); |
1674 |
} |
1675 |
final Object pageWidthOption = settings.get(CodeFormatterConstants.FORMATTER_LINE_SPLIT); |
1676 |
if (pageWidthOption != null) { |
1677 |
try { |
1678 |
this.page_width = Integer.parseInt((String) pageWidthOption); |
1679 |
} catch (NumberFormatException e) { |
1680 |
this.page_width = 80; |
1681 |
} catch(ClassCastException e) { |
1682 |
this.page_width = 80; |
1683 |
} |
1684 |
} |
1685 |
final Object useTabOption = settings.get(CodeFormatterConstants.FORMATTER_TAB_CHAR); |
1686 |
if (useTabOption != null) { |
1687 |
if (CCorePlugin.TAB.equals(useTabOption)) { |
1688 |
this.tab_char = TAB; |
1689 |
} else if (CCorePlugin.SPACE.equals(useTabOption)) { |
1690 |
this.tab_char = SPACE; |
1691 |
} else { |
1692 |
this.tab_char = MIXED; |
1693 |
} |
1694 |
} |
1695 |
} |
1696 |
|
1697 |
public void setDefaultSettings() { |
1698 |
this.alignment_for_arguments_in_allocation_expression = Alignment.M_COMPACT_SPLIT; |
1699 |
this.alignment_for_arguments_in_enum_constant = Alignment.M_COMPACT_SPLIT; |
1700 |
this.alignment_for_arguments_in_explicit_constructor_call = Alignment.M_COMPACT_SPLIT; |
1701 |
this.alignment_for_arguments_in_method_invocation = Alignment.M_COMPACT_SPLIT; |
1702 |
this.alignment_for_arguments_in_qualified_allocation_expression = Alignment.M_COMPACT_SPLIT; |
1703 |
this.alignment_for_assignment = Alignment.M_NO_ALIGNMENT; |
1704 |
this.alignment_for_binary_expression = Alignment.M_COMPACT_SPLIT; |
1705 |
this.alignment_for_compact_if = Alignment.M_ONE_PER_LINE_SPLIT | Alignment.M_INDENT_BY_ONE; |
1706 |
this.alignment_for_conditional_expression = Alignment.M_ONE_PER_LINE_SPLIT; |
1707 |
this.alignment_for_enum_constants = Alignment.NONE; |
1708 |
this.alignment_for_expressions_in_array_initializer = Alignment.M_COMPACT_SPLIT; |
1709 |
this.alignment_for_multiple_fields = Alignment.M_COMPACT_SPLIT; |
1710 |
this.alignment_for_parameters_in_constructor_declaration = Alignment.M_COMPACT_SPLIT; |
1711 |
this.alignment_for_parameters_in_method_declaration = Alignment.M_COMPACT_SPLIT; |
1712 |
this.alignment_for_selector_in_method_invocation = Alignment.M_COMPACT_SPLIT; |
1713 |
this.alignment_for_superclass_in_type_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; |
1714 |
this.alignment_for_superinterfaces_in_enum_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; |
1715 |
this.alignment_for_superinterfaces_in_type_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; |
1716 |
this.alignment_for_throws_clause_in_constructor_declaration = Alignment.M_COMPACT_SPLIT; |
1717 |
this.alignment_for_throws_clause_in_method_declaration = Alignment.M_COMPACT_SPLIT; |
1718 |
this.align_type_members_on_columns = false; |
1719 |
this.brace_position_for_array_initializer = CodeFormatterConstants.END_OF_LINE; |
1720 |
this.brace_position_for_block = CodeFormatterConstants.END_OF_LINE; |
1721 |
this.brace_position_for_block_in_case = CodeFormatterConstants.END_OF_LINE; |
1722 |
this.brace_position_for_constructor_declaration = CodeFormatterConstants.END_OF_LINE; |
1723 |
this.brace_position_for_enum_constant = CodeFormatterConstants.END_OF_LINE; |
1724 |
this.brace_position_for_enum_declaration = CodeFormatterConstants.END_OF_LINE; |
1725 |
this.brace_position_for_method_declaration = CodeFormatterConstants.END_OF_LINE; |
1726 |
this.brace_position_for_type_declaration = CodeFormatterConstants.END_OF_LINE; |
1727 |
this.brace_position_for_switch = CodeFormatterConstants.END_OF_LINE; |
1728 |
// this.comment_clear_blank_lines = false; |
1729 |
// this.comment_format = true; |
1730 |
// this.comment_format_header = false; |
1731 |
// this.comment_format_html = true; |
1732 |
// this.comment_format_source = true; |
1733 |
// this.comment_indent_parameter_description = true; |
1734 |
// this.comment_indent_root_tags = true; |
1735 |
// this.comment_insert_empty_line_before_root_tags = true; |
1736 |
// this.comment_insert_new_line_for_parameter = true; |
1737 |
// this.comment_line_length = 80; |
1738 |
this.continuation_indentation = 2; |
1739 |
this.continuation_indentation_for_array_initializer = 2; |
1740 |
// this.blank_lines_after_imports = 0; |
1741 |
// this.blank_lines_after_package = 0; |
1742 |
// this.blank_lines_before_field = 0; |
1743 |
// this.blank_lines_before_first_class_body_declaration = 0; |
1744 |
// this.blank_lines_before_imports = 0; |
1745 |
// this.blank_lines_before_member_type = 0; |
1746 |
// this.blank_lines_before_method = 0; |
1747 |
// this.blank_lines_before_new_chunk = 0; |
1748 |
// this.blank_lines_before_package = 0; |
1749 |
// this.blank_lines_between_type_declarations = 0; |
1750 |
// this.blank_lines_at_beginning_of_method_body = 0; |
1751 |
this.indent_statements_compare_to_block = true; |
1752 |
this.indent_statements_compare_to_body = true; |
1753 |
this.indent_body_declarations_compare_to_enum_constant_header = true; |
1754 |
this.indent_body_declarations_compare_to_enum_declaration_header = true; |
1755 |
this.indent_body_declarations_compare_to_type_header = true; |
1756 |
this.indent_breaks_compare_to_cases = true; |
1757 |
this.indent_empty_lines = false; |
1758 |
this.indent_switchstatements_compare_to_cases = true; |
1759 |
this.indent_switchstatements_compare_to_switch = true; |
1760 |
this.indentation_size = 4; |
1761 |
// this.insert_new_line_after_opening_brace_in_array_initializer = false; |
1762 |
// this.insert_new_line_at_end_of_file_if_missing = false; |
1763 |
// this.insert_new_line_before_catch_in_try_statement = false; |
1764 |
// this.insert_new_line_before_closing_brace_in_array_initializer = false; |
1765 |
// this.insert_new_line_before_else_in_if_statement = false; |
1766 |
// this.insert_new_line_before_finally_in_try_statement = false; |
1767 |
// this.insert_new_line_before_while_in_do_statement = false; |
1768 |
// this.insert_new_line_in_empty_block = true; |
1769 |
// this.insert_new_line_in_empty_enum_constant = true; |
1770 |
// this.insert_new_line_in_empty_enum_declaration = true; |
1771 |
// this.insert_new_line_in_empty_method_body = true; |
1772 |
// this.insert_new_line_in_empty_type_declaration = true; |
1773 |
// this.insert_space_after_and_in_type_parameter = true; |
1774 |
// this.insert_space_after_assignment_operator = true; |
1775 |
// this.insert_space_after_binary_operator = true; |
1776 |
// this.insert_space_after_closing_angle_bracket_in_type_arguments = true; |
1777 |
// this.insert_space_after_closing_angle_bracket_in_type_parameters = true; |
1778 |
// this.insert_space_after_closing_paren_in_cast = true; |
1779 |
// this.insert_space_after_closing_brace_in_block = true; |
1780 |
// this.insert_space_after_colon_in_assert = true; |
1781 |
// this.insert_space_after_colon_in_case = true; |
1782 |
// this.insert_space_after_colon_in_conditional = true; |
1783 |
// this.insert_space_after_colon_in_for = true; |
1784 |
// this.insert_space_after_colon_in_labeled_statement = true; |
1785 |
// this.insert_space_after_comma_in_allocation_expression = true; |
1786 |
// this.insert_space_after_comma_in_array_initializer = true; |
1787 |
// this.insert_space_after_comma_in_constructor_declaration_parameters = true; |
1788 |
// this.insert_space_after_comma_in_constructor_declaration_throws = true; |
1789 |
// this.insert_space_after_comma_in_enum_constant_arguments = true; |
1790 |
// this.insert_space_after_comma_in_enum_declarations = true; |
1791 |
// this.insert_space_after_comma_in_explicit_constructor_call_arguments = true; |
1792 |
// this.insert_space_after_comma_in_for_increments = true; |
1793 |
// this.insert_space_after_comma_in_for_inits = true; |
1794 |
// this.insert_space_after_comma_in_method_invocation_arguments = true; |
1795 |
// this.insert_space_after_comma_in_method_declaration_parameters = true; |
1796 |
// this.insert_space_after_comma_in_method_declaration_throws = true; |
1797 |
// this.insert_space_after_comma_in_multiple_field_declarations = true; |
1798 |
// this.insert_space_after_comma_in_multiple_local_declarations = true; |
1799 |
// this.insert_space_after_comma_in_parameterized_type_reference = true; |
1800 |
// this.insert_space_after_comma_in_superinterfaces = true; |
1801 |
// this.insert_space_after_comma_in_type_arguments = true; |
1802 |
// this.insert_space_after_comma_in_type_parameters = true; |
1803 |
// this.insert_space_after_ellipsis = true; |
1804 |
// this.insert_space_after_opening_angle_bracket_in_parameterized_type_reference = false; |
1805 |
// this.insert_space_after_opening_angle_bracket_in_type_arguments = false; |
1806 |
// this.insert_space_after_opening_angle_bracket_in_type_parameters = false; |
1807 |
// this.insert_space_after_opening_bracket_in_array_allocation_expression = false; |
1808 |
// this.insert_space_after_opening_bracket_in_array_reference = false; |
1809 |
// this.insert_space_after_opening_brace_in_array_initializer = false; |
1810 |
// this.insert_space_after_opening_paren_in_cast = false; |
1811 |
// this.insert_space_after_opening_paren_in_catch = false; |
1812 |
// this.insert_space_after_opening_paren_in_constructor_declaration = false; |
1813 |
// this.insert_space_after_opening_paren_in_enum_constant = false; |
1814 |
// this.insert_space_after_opening_paren_in_for = false; |
1815 |
// this.insert_space_after_opening_paren_in_if = false; |
1816 |
// this.insert_space_after_opening_paren_in_method_declaration = false; |
1817 |
// this.insert_space_after_opening_paren_in_method_invocation = false; |
1818 |
// this.insert_space_after_opening_paren_in_parenthesized_expression = false; |
1819 |
// this.insert_space_after_opening_paren_in_switch = false; |
1820 |
// this.insert_space_after_opening_paren_in_synchronized = false; |
1821 |
// this.insert_space_after_opening_paren_in_while = false; |
1822 |
// this.insert_space_after_postfix_operator = false; |
1823 |
// this.insert_space_after_prefix_operator = false; |
1824 |
// this.insert_space_after_question_in_conditional = true; |
1825 |
// this.insert_space_after_question_in_wilcard = false; |
1826 |
// this.insert_space_after_semicolon_in_for = true; |
1827 |
// this.insert_space_after_unary_operator = false; |
1828 |
// this.insert_space_before_and_in_type_parameter = true; |
1829 |
// this.insert_space_before_assignment_operator = true; |
1830 |
// this.insert_space_before_binary_operator = true; |
1831 |
// this.insert_space_before_closing_angle_bracket_in_parameterized_type_reference = false; |
1832 |
// this.insert_space_before_closing_angle_bracket_in_type_arguments = false; |
1833 |
// this.insert_space_before_closing_angle_bracket_in_type_parameters = false; |
1834 |
// this.insert_space_before_closing_brace_in_array_initializer = false; |
1835 |
// this.insert_space_before_closing_bracket_in_array_allocation_expression = false; |
1836 |
// this.insert_space_before_closing_bracket_in_array_reference = false; |
1837 |
// this.insert_space_before_closing_paren_in_cast = false; |
1838 |
// this.insert_space_before_closing_paren_in_catch = false; |
1839 |
// this.insert_space_before_closing_paren_in_constructor_declaration = false; |
1840 |
// this.insert_space_before_closing_paren_in_enum_constant = false; |
1841 |
// this.insert_space_before_closing_paren_in_for = false; |
1842 |
// this.insert_space_before_closing_paren_in_if = false; |
1843 |
// this.insert_space_before_closing_paren_in_method_declaration = false; |
1844 |
// this.insert_space_before_closing_paren_in_method_invocation = false; |
1845 |
// this.insert_space_before_closing_paren_in_parenthesized_expression = false; |
1846 |
// this.insert_space_before_closing_paren_in_switch = false; |
1847 |
// this.insert_space_before_closing_paren_in_synchronized = false; |
1848 |
// this.insert_space_before_closing_paren_in_while = false; |
1849 |
// this.insert_space_before_colon_in_assert = true; |
1850 |
// this.insert_space_before_colon_in_case = true; |
1851 |
// this.insert_space_before_colon_in_conditional = true; |
1852 |
// this.insert_space_before_colon_in_default = true; |
1853 |
// this.insert_space_before_colon_in_for = true; |
1854 |
// this.insert_space_before_colon_in_labeled_statement = true; |
1855 |
// this.insert_space_before_comma_in_allocation_expression = false; |
1856 |
// this.insert_space_before_comma_in_array_initializer = false; |
1857 |
// this.insert_space_before_comma_in_constructor_declaration_parameters = false; |
1858 |
// this.insert_space_before_comma_in_constructor_declaration_throws = false; |
1859 |
// this.insert_space_before_comma_in_enum_constant_arguments = false; |
1860 |
// this.insert_space_before_comma_in_enum_declarations = false; |
1861 |
// this.insert_space_before_comma_in_explicit_constructor_call_arguments = false; |
1862 |
// this.insert_space_before_comma_in_for_increments = false; |
1863 |
// this.insert_space_before_comma_in_for_inits = false; |
1864 |
// this.insert_space_before_comma_in_method_invocation_arguments = false; |
1865 |
// this.insert_space_before_comma_in_method_declaration_parameters = false; |
1866 |
// this.insert_space_before_comma_in_method_declaration_throws = false; |
1867 |
// this.insert_space_before_comma_in_multiple_field_declarations = false; |
1868 |
// this.insert_space_before_comma_in_multiple_local_declarations = false; |
1869 |
// this.insert_space_before_comma_in_parameterized_type_reference = false; |
1870 |
// this.insert_space_before_comma_in_superinterfaces = false; |
1871 |
// this.insert_space_before_comma_in_type_arguments = false; |
1872 |
// this.insert_space_before_comma_in_type_parameters = false; |
1873 |
// this.insert_space_before_ellipsis = false; |
1874 |
// this.insert_space_before_parenthesized_expression_in_return = true; |
1875 |
// this.insert_space_before_opening_angle_bracket_in_parameterized_type_reference = false; |
1876 |
// this.insert_space_before_opening_angle_bracket_in_type_arguments = false; |
1877 |
// this.insert_space_before_opening_angle_bracket_in_type_parameters = false; |
1878 |
// this.insert_space_before_opening_brace_in_array_initializer = false; |
1879 |
// this.insert_space_before_opening_brace_in_block = true; |
1880 |
// this.insert_space_before_opening_brace_in_constructor_declaration = true; |
1881 |
// this.insert_space_before_opening_brace_in_enum_constant = true; |
1882 |
// this.insert_space_before_opening_brace_in_enum_declaration = true; |
1883 |
// this.insert_space_before_opening_brace_in_method_declaration = true; |
1884 |
// this.insert_space_before_opening_brace_in_switch = true; |
1885 |
// this.insert_space_before_opening_brace_in_type_declaration = true; |
1886 |
// this.insert_space_before_opening_bracket_in_array_allocation_expression = false; |
1887 |
// this.insert_space_before_opening_bracket_in_array_reference = false; |
1888 |
// this.insert_space_before_opening_bracket_in_array_type_reference = false; |
1889 |
// this.insert_space_before_opening_paren_in_catch = true; |
1890 |
// this.insert_space_before_opening_paren_in_constructor_declaration = false; |
1891 |
// this.insert_space_before_opening_paren_in_enum_constant = false; |
1892 |
// this.insert_space_before_opening_paren_in_for = true; |
1893 |
// this.insert_space_before_opening_paren_in_if = true; |
1894 |
// this.insert_space_before_opening_paren_in_method_invocation = false; |
1895 |
// this.insert_space_before_opening_paren_in_method_declaration = false; |
1896 |
// this.insert_space_before_opening_paren_in_switch = true; |
1897 |
// this.insert_space_before_opening_paren_in_synchronized = true; |
1898 |
// this.insert_space_before_opening_paren_in_parenthesized_expression = false; |
1899 |
// this.insert_space_before_opening_paren_in_while = true; |
1900 |
// this.insert_space_before_postfix_operator = false; |
1901 |
// this.insert_space_before_prefix_operator = false; |
1902 |
// this.insert_space_before_question_in_conditional = true; |
1903 |
// this.insert_space_before_question_in_wilcard = false; |
1904 |
// this.insert_space_before_semicolon = false; |
1905 |
// this.insert_space_before_semicolon_in_for = false; |
1906 |
// this.insert_space_before_unary_operator = false; |
1907 |
// this.insert_space_between_brackets_in_array_type_reference = false; |
1908 |
// this.insert_space_between_empty_braces_in_array_initializer = false; |
1909 |
// this.insert_space_between_empty_brackets_in_array_allocation_expression = false; |
1910 |
// this.insert_space_between_empty_parens_in_constructor_declaration = false; |
1911 |
// this.insert_space_between_empty_parens_in_enum_constant = false; |
1912 |
// this.insert_space_between_empty_parens_in_method_declaration = false; |
1913 |
// this.insert_space_between_empty_parens_in_method_invocation = false; |
1914 |
// this.compact_else_if = true; |
1915 |
// this.keep_guardian_clause_on_one_line = false; |
1916 |
// this.keep_else_statement_on_same_line = false; |
1917 |
// this.keep_empty_array_initializer_on_one_line = false; |
1918 |
// this.keep_simple_if_on_one_line = false; |
1919 |
// this.keep_then_statement_on_same_line = false; |
1920 |
// this.number_of_empty_lines_to_preserve = 1; |
1921 |
// this.put_empty_statement_on_new_line = false; |
1922 |
this.tab_size = 4; |
1923 |
this.page_width = 80; |
1924 |
this.tab_char = TAB; // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=49081 |
1925 |
this.use_tabs_only_for_leading_indentations = false; |
1926 |
} |
1927 |
|
1928 |
public void setEclipseDefaultSettings() { |
1929 |
this.alignment_for_arguments_in_allocation_expression = Alignment.M_COMPACT_SPLIT; |
1930 |
this.alignment_for_arguments_in_enum_constant = Alignment.M_COMPACT_SPLIT; |
1931 |
this.alignment_for_arguments_in_explicit_constructor_call = Alignment.M_COMPACT_SPLIT; |
1932 |
this.alignment_for_arguments_in_method_invocation = Alignment.M_COMPACT_SPLIT; |
1933 |
this.alignment_for_arguments_in_qualified_allocation_expression = Alignment.M_COMPACT_SPLIT; |
1934 |
this.alignment_for_assignment = Alignment.M_NO_ALIGNMENT; |
1935 |
this.alignment_for_binary_expression = Alignment.M_COMPACT_SPLIT; |
1936 |
this.alignment_for_compact_if = Alignment.M_COMPACT_SPLIT; |
1937 |
this.alignment_for_conditional_expression = Alignment.M_NEXT_PER_LINE_SPLIT; |
1938 |
this.alignment_for_enum_constants = Alignment.NONE; |
1939 |
this.alignment_for_expressions_in_array_initializer = Alignment.M_COMPACT_SPLIT; |
1940 |
this.alignment_for_multiple_fields = Alignment.M_COMPACT_SPLIT; |
1941 |
this.alignment_for_parameters_in_constructor_declaration = Alignment.M_COMPACT_SPLIT; |
1942 |
this.alignment_for_parameters_in_method_declaration = Alignment.M_COMPACT_SPLIT; |
1943 |
this.alignment_for_selector_in_method_invocation = Alignment.M_COMPACT_SPLIT; |
1944 |
this.alignment_for_superclass_in_type_declaration = Alignment.M_COMPACT_SPLIT; |
1945 |
this.alignment_for_superinterfaces_in_enum_declaration = Alignment.M_COMPACT_SPLIT; |
1946 |
this.alignment_for_superinterfaces_in_type_declaration = Alignment.M_COMPACT_SPLIT; |
1947 |
this.alignment_for_throws_clause_in_constructor_declaration = Alignment.M_COMPACT_SPLIT; |
1948 |
this.alignment_for_throws_clause_in_method_declaration = Alignment.M_COMPACT_SPLIT; |
1949 |
this.align_type_members_on_columns = false; |
1950 |
this.brace_position_for_array_initializer = CodeFormatterConstants.END_OF_LINE; |
1951 |
this.brace_position_for_block = CodeFormatterConstants.END_OF_LINE; |
1952 |
this.brace_position_for_block_in_case = CodeFormatterConstants.END_OF_LINE; |
1953 |
this.brace_position_for_constructor_declaration = CodeFormatterConstants.END_OF_LINE; |
1954 |
this.brace_position_for_enum_constant = CodeFormatterConstants.END_OF_LINE; |
1955 |
this.brace_position_for_enum_declaration = CodeFormatterConstants.END_OF_LINE; |
1956 |
this.brace_position_for_method_declaration = CodeFormatterConstants.END_OF_LINE; |
1957 |
this.brace_position_for_type_declaration = CodeFormatterConstants.END_OF_LINE; |
1958 |
this.brace_position_for_switch = CodeFormatterConstants.END_OF_LINE; |
1959 |
// this.comment_clear_blank_lines = false; |
1960 |
// this.comment_format = true; |
1961 |
// this.comment_format_header = false; |
1962 |
// this.comment_format_html = true; |
1963 |
// this.comment_format_source = true; |
1964 |
// this.comment_indent_parameter_description = true; |
1965 |
// this.comment_indent_root_tags = true; |
1966 |
// this.comment_insert_empty_line_before_root_tags = true; |
1967 |
// this.comment_insert_new_line_for_parameter = true; |
1968 |
// this.comment_line_length = 80; |
1969 |
this.continuation_indentation = 2; |
1970 |
this.continuation_indentation_for_array_initializer = 2; |
1971 |
// this.blank_lines_after_imports = 1; |
1972 |
// this.blank_lines_after_package = 1; |
1973 |
// this.blank_lines_before_field = 1; |
1974 |
// this.blank_lines_before_first_class_body_declaration = 0; |
1975 |
// this.blank_lines_before_imports = 1; |
1976 |
// this.blank_lines_before_member_type = 1; |
1977 |
// this.blank_lines_before_method = 1; |
1978 |
// this.blank_lines_before_new_chunk = 1; |
1979 |
// this.blank_lines_before_package = 0; |
1980 |
// this.blank_lines_between_type_declarations = 1; |
1981 |
// this.blank_lines_at_beginning_of_method_body = 0; |
1982 |
this.indent_statements_compare_to_block = true; |
1983 |
this.indent_statements_compare_to_body = true; |
1984 |
this.indent_body_declarations_compare_to_enum_constant_header = true; |
1985 |
this.indent_body_declarations_compare_to_enum_declaration_header = true; |
1986 |
this.indent_body_declarations_compare_to_type_header = true; |
1987 |
this.indent_breaks_compare_to_cases = true; |
1988 |
this.indent_empty_lines = false; |
1989 |
this.indent_switchstatements_compare_to_cases = true; |
1990 |
this.indent_switchstatements_compare_to_switch = false; |
1991 |
this.indentation_size = 4; |
1992 |
// this.insert_new_line_after_opening_brace_in_array_initializer = false; |
1993 |
// this.insert_new_line_at_end_of_file_if_missing = false; |
1994 |
// this.insert_new_line_before_catch_in_try_statement = false; |
1995 |
// this.insert_new_line_before_closing_brace_in_array_initializer = false; |
1996 |
// this.insert_new_line_before_else_in_if_statement = false; |
1997 |
// this.insert_new_line_before_finally_in_try_statement = false; |
1998 |
// this.insert_new_line_before_while_in_do_statement = false; |
1999 |
// this.insert_new_line_in_empty_block = true; |
2000 |
// this.insert_new_line_in_empty_enum_constant = true; |
2001 |
// this.insert_new_line_in_empty_enum_declaration = true; |
2002 |
// this.insert_new_line_in_empty_method_body = true; |
2003 |
// this.insert_new_line_in_empty_type_declaration = true; |
2004 |
// this.insert_space_after_and_in_type_parameter = true; |
2005 |
// this.insert_space_after_assignment_operator = true; |
2006 |
// this.insert_space_after_binary_operator = true; |
2007 |
// this.insert_space_after_closing_angle_bracket_in_type_arguments = true; |
2008 |
// this.insert_space_after_closing_angle_bracket_in_type_parameters = true; |
2009 |
// this.insert_space_after_closing_paren_in_cast = true; |
2010 |
// this.insert_space_after_closing_brace_in_block = true; |
2011 |
// this.insert_space_after_colon_in_assert = true; |
2012 |
// this.insert_space_after_colon_in_case = true; |
2013 |
// this.insert_space_after_colon_in_conditional = true; |
2014 |
// this.insert_space_after_colon_in_for = true; |
2015 |
// this.insert_space_after_colon_in_labeled_statement = true; |
2016 |
// this.insert_space_after_comma_in_allocation_expression = true; |
2017 |
// this.insert_space_after_comma_in_array_initializer = true; |
2018 |
// this.insert_space_after_comma_in_constructor_declaration_parameters = true; |
2019 |
// this.insert_space_after_comma_in_constructor_declaration_throws = true; |
2020 |
// this.insert_space_after_comma_in_enum_constant_arguments = true; |
2021 |
// this.insert_space_after_comma_in_enum_declarations = true; |
2022 |
// this.insert_space_after_comma_in_explicit_constructor_call_arguments = true; |
2023 |
// this.insert_space_after_comma_in_for_increments = true; |
2024 |
// this.insert_space_after_comma_in_for_inits = true; |
2025 |
// this.insert_space_after_comma_in_method_invocation_arguments = true; |
2026 |
// this.insert_space_after_comma_in_method_declaration_parameters = true; |
2027 |
// this.insert_space_after_comma_in_method_declaration_throws = true; |
2028 |
// this.insert_space_after_comma_in_multiple_field_declarations = true; |
2029 |
// this.insert_space_after_comma_in_multiple_local_declarations = true; |
2030 |
// this.insert_space_after_comma_in_parameterized_type_reference = true; |
2031 |
// this.insert_space_after_comma_in_superinterfaces = true; |
2032 |
// this.insert_space_after_comma_in_type_arguments = true; |
2033 |
// this.insert_space_after_comma_in_type_parameters = true; |
2034 |
// this.insert_space_after_ellipsis = true; |
2035 |
// this.insert_space_after_opening_angle_bracket_in_parameterized_type_reference = false; |
2036 |
// this.insert_space_after_opening_angle_bracket_in_type_arguments = false; |
2037 |
// this.insert_space_after_opening_angle_bracket_in_type_parameters = false; |
2038 |
// this.insert_space_after_opening_bracket_in_array_allocation_expression = false; |
2039 |
// this.insert_space_after_opening_bracket_in_array_reference = false; |
2040 |
// this.insert_space_after_opening_brace_in_array_initializer = true; |
2041 |
// this.insert_space_after_opening_paren_in_cast = false; |
2042 |
// this.insert_space_after_opening_paren_in_catch = false; |
2043 |
// this.insert_space_after_opening_paren_in_constructor_declaration = false; |
2044 |
// this.insert_space_after_opening_paren_in_enum_constant = false; |
2045 |
// this.insert_space_after_opening_paren_in_for = false; |
2046 |
// this.insert_space_after_opening_paren_in_if = false; |
2047 |
// this.insert_space_after_opening_paren_in_method_declaration = false; |
2048 |
// this.insert_space_after_opening_paren_in_method_invocation = false; |
2049 |
// this.insert_space_after_opening_paren_in_parenthesized_expression = false; |
2050 |
// this.insert_space_after_opening_paren_in_switch = false; |
2051 |
// this.insert_space_after_opening_paren_in_synchronized = false; |
2052 |
// this.insert_space_after_opening_paren_in_while = false; |
2053 |
// this.insert_space_after_postfix_operator = false; |
2054 |
// this.insert_space_after_prefix_operator = false; |
2055 |
// this.insert_space_after_question_in_conditional = true; |
2056 |
// this.insert_space_after_question_in_wilcard = false; |
2057 |
// this.insert_space_after_semicolon_in_for = true; |
2058 |
// this.insert_space_after_unary_operator = false; |
2059 |
// this.insert_space_before_and_in_type_parameter = true; |
2060 |
// this.insert_space_before_assignment_operator = true; |
2061 |
// this.insert_space_before_binary_operator = true; |
2062 |
// this.insert_space_before_closing_angle_bracket_in_parameterized_type_reference = false; |
2063 |
// this.insert_space_before_closing_angle_bracket_in_type_arguments = false; |
2064 |
// this.insert_space_before_closing_angle_bracket_in_type_parameters = false; |
2065 |
// this.insert_space_before_closing_brace_in_array_initializer = true; |
2066 |
// this.insert_space_before_closing_bracket_in_array_allocation_expression = false; |
2067 |
// this.insert_space_before_closing_bracket_in_array_reference = false; |
2068 |
// this.insert_space_before_closing_paren_in_cast = false; |
2069 |
// this.insert_space_before_closing_paren_in_catch = false; |
2070 |
// this.insert_space_before_closing_paren_in_constructor_declaration = false; |
2071 |
// this.insert_space_before_closing_paren_in_enum_constant = false; |
2072 |
// this.insert_space_before_closing_paren_in_for = false; |
2073 |
// this.insert_space_before_closing_paren_in_if = false; |
2074 |
// this.insert_space_before_closing_paren_in_method_declaration = false; |
2075 |
// this.insert_space_before_closing_paren_in_method_invocation = false; |
2076 |
// this.insert_space_before_closing_paren_in_parenthesized_expression = false; |
2077 |
// this.insert_space_before_closing_paren_in_switch = false; |
2078 |
// this.insert_space_before_closing_paren_in_synchronized = false; |
2079 |
// this.insert_space_before_closing_paren_in_while = false; |
2080 |
// this.insert_space_before_colon_in_assert = true; |
2081 |
// this.insert_space_before_colon_in_case = false; |
2082 |
// this.insert_space_before_colon_in_conditional = true; |
2083 |
// this.insert_space_before_colon_in_default = false; |
2084 |
// this.insert_space_before_colon_in_for = true; |
2085 |
// this.insert_space_before_colon_in_labeled_statement = false; |
2086 |
// this.insert_space_before_comma_in_allocation_expression = false; |
2087 |
// this.insert_space_before_comma_in_array_initializer = false; |
2088 |
// this.insert_space_before_comma_in_constructor_declaration_parameters = false; |
2089 |
// this.insert_space_before_comma_in_constructor_declaration_throws = false; |
2090 |
// this.insert_space_before_comma_in_enum_constant_arguments = false; |
2091 |
// this.insert_space_before_comma_in_enum_declarations = false; |
2092 |
// this.insert_space_before_comma_in_explicit_constructor_call_arguments = false; |
2093 |
// this.insert_space_before_comma_in_for_increments = false; |
2094 |
// this.insert_space_before_comma_in_for_inits = false; |
2095 |
// this.insert_space_before_comma_in_method_invocation_arguments = false; |
2096 |
// this.insert_space_before_comma_in_method_declaration_parameters = false; |
2097 |
// this.insert_space_before_comma_in_method_declaration_throws = false; |
2098 |
// this.insert_space_before_comma_in_multiple_field_declarations = false; |
2099 |
// this.insert_space_before_comma_in_multiple_local_declarations = false; |
2100 |
// this.insert_space_before_comma_in_parameterized_type_reference = false; |
2101 |
// this.insert_space_before_comma_in_superinterfaces = false; |
2102 |
// this.insert_space_before_comma_in_type_arguments = false; |
2103 |
// this.insert_space_before_comma_in_type_parameters = false; |
2104 |
// this.insert_space_before_ellipsis = false; |
2105 |
// this.insert_space_before_parenthesized_expression_in_return = true; |
2106 |
// this.insert_space_before_opening_angle_bracket_in_parameterized_type_reference = false; |
2107 |
// this.insert_space_before_opening_angle_bracket_in_type_arguments = false; |
2108 |
// this.insert_space_before_opening_angle_bracket_in_type_parameters = false; |
2109 |
// this.insert_space_before_opening_brace_in_array_initializer = true; |
2110 |
// this.insert_space_before_opening_brace_in_block = true; |
2111 |
// this.insert_space_before_opening_brace_in_constructor_declaration = true; |
2112 |
// this.insert_space_before_opening_brace_in_enum_constant = true; |
2113 |
// this.insert_space_before_opening_brace_in_enum_declaration = true; |
2114 |
// this.insert_space_before_opening_brace_in_method_declaration = true; |
2115 |
// this.insert_space_before_opening_brace_in_switch = true; |
2116 |
// this.insert_space_before_opening_brace_in_type_declaration = true; |
2117 |
// this.insert_space_before_opening_bracket_in_array_allocation_expression = false; |
2118 |
// this.insert_space_before_opening_bracket_in_array_reference = false; |
2119 |
// this.insert_space_before_opening_bracket_in_array_type_reference = false; |
2120 |
// this.insert_space_before_opening_paren_in_catch = true; |
2121 |
// this.insert_space_before_opening_paren_in_constructor_declaration = false; |
2122 |
// this.insert_space_before_opening_paren_in_enum_constant = false; |
2123 |
// this.insert_space_before_opening_paren_in_for = true; |
2124 |
// this.insert_space_before_opening_paren_in_if = true; |
2125 |
// this.insert_space_before_opening_paren_in_method_invocation = false; |
2126 |
// this.insert_space_before_opening_paren_in_method_declaration = false; |
2127 |
// this.insert_space_before_opening_paren_in_switch = true; |
2128 |
// this.insert_space_before_opening_paren_in_synchronized = true; |
2129 |
// this.insert_space_before_opening_paren_in_parenthesized_expression = false; |
2130 |
// this.insert_space_before_opening_paren_in_while = true; |
2131 |
// this.insert_space_before_postfix_operator = false; |
2132 |
// this.insert_space_before_prefix_operator = false; |
2133 |
// this.insert_space_before_question_in_conditional = true; |
2134 |
// this.insert_space_before_question_in_wilcard = false; |
2135 |
// this.insert_space_before_semicolon = false; |
2136 |
// this.insert_space_before_semicolon_in_for = false; |
2137 |
// this.insert_space_before_unary_operator = false; |
2138 |
// this.insert_space_between_brackets_in_array_type_reference = false; |
2139 |
// this.insert_space_between_empty_braces_in_array_initializer = false; |
2140 |
// this.insert_space_between_empty_brackets_in_array_allocation_expression = false; |
2141 |
// this.insert_space_between_empty_parens_in_constructor_declaration = false; |
2142 |
// this.insert_space_between_empty_parens_in_enum_constant = false; |
2143 |
// this.insert_space_between_empty_parens_in_method_declaration = false; |
2144 |
// this.insert_space_between_empty_parens_in_method_invocation = false; |
2145 |
// this.compact_else_if = true; |
2146 |
// this.keep_guardian_clause_on_one_line = false; |
2147 |
// this.keep_else_statement_on_same_line = false; |
2148 |
// this.keep_empty_array_initializer_on_one_line = false; |
2149 |
// this.keep_simple_if_on_one_line = false; |
2150 |
// this.keep_then_statement_on_same_line = false; |
2151 |
// this.number_of_empty_lines_to_preserve = 1; |
2152 |
// this.put_empty_statement_on_new_line = true; |
2153 |
this.tab_size = 4; |
2154 |
this.page_width = 80; |
2155 |
this.tab_char = TAB; |
2156 |
this.use_tabs_only_for_leading_indentations = false; |
2157 |
} |
2158 |
} |