0001: /*******************************************************************************
0002: * Copyright (c) 2000, 2007 IBM Corporation and others.
0003: * All rights reserved. This program and the accompanying materials
0004: * are made available under the terms of the Eclipse Public License v1.0
0005: * which accompanies this distribution, and is available at
0006: * http://www.eclipse.org/legal/epl-v10.html
0007: *
0008: * Contributors:
0009: * IBM Corporation - initial API and implementation
0010: *******************************************************************************/package org.eclipse.jdt.testplugin;
0011:
0012: import java.util.HashMap;
0013: import java.util.Hashtable;
0014: import java.util.Map;
0015:
0016: import org.eclipse.jdt.core.IJavaProject;
0017: import org.eclipse.jdt.core.JavaCore;
0018: import org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants;
0019:
0020: import org.eclipse.jface.preference.IPreferenceStore;
0021:
0022: import org.eclipse.jdt.internal.ui.JavaPlugin;
0023:
0024: import org.eclipse.jdt.ui.PreferenceConstants;
0025:
0026: import org.eclipse.jdt.internal.formatter.align.Alignment;
0027:
0028: public class TestOptions {
0029:
0030: /**
0031: * @deprecated use getDefaultOptions() instead
0032: */
0033: public static Hashtable getFormatterOptions() {
0034: return getDefaultOptions();
0035: }
0036:
0037: public static Hashtable getDefaultOptions() {
0038: Hashtable result = JavaCore.getDefaultOptions();
0039: result.put(JavaCore.COMPILER_PB_LOCAL_VARIABLE_HIDING,
0040: JavaCore.IGNORE);
0041: result.put(JavaCore.COMPILER_PB_FIELD_HIDING, JavaCore.IGNORE);
0042: result.put(JavaCore.COMPILER_PB_UNUSED_PRIVATE_MEMBER,
0043: JavaCore.IGNORE);
0044: result.put(JavaCore.COMPILER_PB_UNUSED_LOCAL, JavaCore.IGNORE);
0045: result.put(JavaCore.COMPILER_PB_RAW_TYPE_REFERENCE,
0046: JavaCore.IGNORE);
0047: // should cover all compiler settings
0048: result.putAll(TestFormatterOptions.getSettings());
0049: return result;
0050: }
0051:
0052: public static void initializeCodeGenerationOptions() {
0053: IPreferenceStore store = JavaPlugin.getDefault()
0054: .getPreferenceStore();
0055: store.setValue(PreferenceConstants.CODEGEN_KEYWORD_THIS, false);
0056: store
0057: .setValue(PreferenceConstants.CODEGEN_IS_FOR_GETTERS,
0058: true);
0059: store.setValue(PreferenceConstants.CODEGEN_EXCEPTION_VAR_NAME,
0060: "e"); //$NON-NLS-1$
0061: store.setValue(PreferenceConstants.CODEGEN_ADD_COMMENTS, true);
0062: store.setValue(PreferenceConstants.ORGIMPORTS_IMPORTORDER,
0063: "java;javax;org;com"); //$NON-NLS-1$
0064: store.setValue(
0065: PreferenceConstants.ORGIMPORTS_ONDEMANDTHRESHOLD, 99);
0066: store.setValue(PreferenceConstants.ORGIMPORTS_IGNORELOWERCASE,
0067: true);
0068: }
0069:
0070: public static void initializeProjectOptions(IJavaProject project) {
0071: Map options = new HashMap();
0072: JavaProjectHelper.set15CompilerOptions(options);
0073: project.setOptions(options);
0074: }
0075:
0076: }
0077:
0078: class TestFormatterOptions {
0079:
0080: public static Hashtable getSettings() {
0081: TestFormatterOptions options = new TestFormatterOptions();
0082: options.setDefaultSettings();
0083: return options.getMap();
0084: }
0085:
0086: public int alignment_for_arguments_in_allocation_expression;
0087: public int alignment_for_arguments_in_explicit_constructor_call;
0088: public int alignment_for_arguments_in_method_invocation;
0089: public int alignment_for_arguments_in_qualified_allocation_expression;
0090: public int alignment_for_binary_expression;
0091: public int alignment_for_compact_if;
0092: public int alignment_for_conditional_expression;
0093: public int alignment_for_expressions_in_array_initializer;
0094: public int alignment_for_multiple_fields;
0095: public int alignment_for_parameters_in_constructor_declaration;
0096: public int alignment_for_parameters_in_method_declaration;
0097: public int alignment_for_selector_in_method_invocation;
0098: public int alignment_for_super class_in_type_declaration;
0099: public int alignment_for_super interfaces_in_type_declaration;
0100: public int alignment_for_throws_clause_in_constructor_declaration;
0101: public int alignment_for_throws_clause_in_method_declaration;
0102:
0103: public boolean align_type_members_on_columns;
0104:
0105: public String brace_position_for_anonymous_type_declaration;
0106: public String brace_position_for_array_initializer;
0107: public String brace_position_for_block;
0108: public String brace_position_for_block_in_case;
0109: public String brace_position_for_constructor_declaration;
0110: public String brace_position_for_method_declaration;
0111: public String brace_position_for_type_declaration;
0112: public String brace_position_for_switch;
0113:
0114: public int continuation_indentation;
0115: public int continuation_indentation_for_array_initializer;
0116:
0117: public int blank_lines_after_imports;
0118: public int blank_lines_after_package;
0119: public int blank_lines_before_field;
0120: public int blank_lines_before_first_class_body_declaration;
0121: public int blank_lines_before_imports;
0122: public int blank_lines_before_member_type;
0123: public int blank_lines_before_method;
0124: public int blank_lines_before_new_chunk;
0125: public int blank_lines_before_package;
0126: public int blank_lines_between_type_declarations;
0127: public int blank_lines_at_beginning_of_method_body;
0128:
0129: public boolean indent_statements_compare_to_block;
0130: public boolean indent_statements_compare_to_body;
0131: public boolean indent_body_declarations_compare_to_type_header;
0132: public boolean indent_breaks_compare_to_cases;
0133: public boolean indent_switchstatements_compare_to_cases;
0134: public boolean indent_switchstatements_compare_to_switch;
0135:
0136: public boolean insert_new_line_after_opening_brace_in_array_initializer;
0137: public boolean insert_new_line_before_catch_in_try_statement;
0138: public boolean insert_new_line_before_closing_brace_in_array_initializer;
0139: public boolean insert_new_line_before_else_in_if_statement;
0140: public boolean insert_new_line_before_finally_in_try_statement;
0141: public boolean insert_new_line_before_while_in_do_statement;
0142: public boolean insert_new_line_in_empty_anonymous_type_declaration;
0143: public boolean insert_new_line_in_empty_block;
0144: public boolean insert_new_line_in_empty_method_body;
0145: public boolean insert_new_line_in_empty_type_declaration;
0146: public boolean insert_space_after_assignment_operator;
0147: public boolean insert_space_after_binary_operator;
0148: public boolean insert_space_after_closing_paren_in_cast;
0149: public boolean insert_space_after_closing_brace_in_block;
0150: public boolean insert_space_after_colon_in_assert;
0151: public boolean insert_space_after_colon_in_case;
0152: public boolean insert_space_after_colon_in_conditional;
0153: public boolean insert_space_after_colon_in_labeled_statement;
0154: public boolean insert_space_after_comma_in_allocation_expression;
0155: public boolean insert_space_after_comma_in_array_initializer;
0156: public boolean insert_space_after_comma_in_constructor_declaration_parameters;
0157: public boolean insert_space_after_comma_in_constructor_declaration_throws;
0158: public boolean insert_space_after_comma_in_explicit_constructor_call_arguments;
0159: public boolean insert_space_after_comma_in_for_increments;
0160: public boolean insert_space_after_comma_in_for_inits;
0161: public boolean insert_space_after_comma_in_method_invocation_arguments;
0162: public boolean insert_space_after_comma_in_method_declaration_parameters;
0163: public boolean insert_space_after_comma_in_method_declaration_throws;
0164: public boolean insert_space_after_comma_in_multiple_field_declarations;
0165: public boolean insert_space_after_comma_in_multiple_local_declarations;
0166: public boolean insert_space_after_comma_in_super interfaces;
0167: public boolean insert_space_after_opening_bracket_in_array_allocation_expression;
0168: public boolean insert_space_after_opening_bracket_in_array_reference;
0169: public boolean insert_space_after_opening_brace_in_array_initializer;
0170: public boolean insert_space_after_opening_paren_in_cast;
0171: public boolean insert_space_after_opening_paren_in_catch;
0172: public boolean insert_space_after_opening_paren_in_constructor_declaration;
0173: public boolean insert_space_after_opening_paren_in_for;
0174: public boolean insert_space_after_opening_paren_in_if;
0175: public boolean insert_space_after_opening_paren_in_method_declaration;
0176: public boolean insert_space_after_opening_paren_in_method_invocation;
0177: public boolean insert_space_after_opening_paren_in_parenthesized_expression;
0178: public boolean insert_space_after_opening_paren_in_switch;
0179: public boolean insert_space_after_opening_paren_in_synchronized;
0180: public boolean insert_space_after_opening_paren_in_while;
0181: public boolean insert_space_after_postfix_operator;
0182: public boolean insert_space_after_prefix_operator;
0183: public boolean insert_space_after_question_in_conditional;
0184: public boolean insert_space_after_semicolon_in_for;
0185: public boolean insert_space_after_unary_operator;
0186: public boolean insert_space_before_assignment_operator;
0187: public boolean insert_space_before_binary_operator;
0188: public boolean insert_space_before_closing_brace_in_array_initializer;
0189: public boolean insert_space_before_closing_bracket_in_array_allocation_expression;
0190: public boolean insert_space_before_closing_bracket_in_array_reference;
0191: public boolean insert_space_before_closing_paren_in_cast;
0192: public boolean insert_space_before_closing_paren_in_catch;
0193: public boolean insert_space_before_closing_paren_in_constructor_declaration;
0194: public boolean insert_space_before_closing_paren_in_for;
0195: public boolean insert_space_before_closing_paren_in_if;
0196: public boolean insert_space_before_closing_paren_in_method_declaration;
0197: public boolean insert_space_before_closing_paren_in_method_invocation;
0198: public boolean insert_space_before_closing_paren_in_parenthesized_expression;
0199: public boolean insert_space_before_closing_paren_in_switch;
0200: public boolean insert_space_before_closing_paren_in_synchronized;
0201: public boolean insert_space_before_closing_paren_in_while;
0202: public boolean insert_space_before_colon_in_assert;
0203: public boolean insert_space_before_colon_in_case;
0204: public boolean insert_space_before_colon_in_conditional;
0205: public boolean insert_space_before_colon_in_default;
0206: public boolean insert_space_before_colon_in_labeled_statement;
0207: public boolean insert_space_before_comma_in_allocation_expression;
0208: public boolean insert_space_before_comma_in_array_initializer;
0209: public boolean insert_space_before_comma_in_constructor_declaration_parameters;
0210: public boolean insert_space_before_comma_in_constructor_declaration_throws;
0211: public boolean insert_space_before_comma_in_explicit_constructor_call_arguments;
0212: public boolean insert_space_before_comma_in_for_increments;
0213: public boolean insert_space_before_comma_in_for_inits;
0214: public boolean insert_space_before_comma_in_method_invocation_arguments;
0215: public boolean insert_space_before_comma_in_method_declaration_parameters;
0216: public boolean insert_space_before_comma_in_method_declaration_throws;
0217: public boolean insert_space_before_comma_in_multiple_field_declarations;
0218: public boolean insert_space_before_comma_in_multiple_local_declarations;
0219: public boolean insert_space_before_comma_in_super interfaces;
0220: public boolean insert_space_before_opening_brace_in_anonymous_type_declaration;
0221: public boolean insert_space_before_opening_brace_in_array_initializer;
0222: public boolean insert_space_before_opening_brace_in_block;
0223: public boolean insert_space_before_opening_brace_in_constructor_declaration;
0224: public boolean insert_space_before_opening_brace_in_method_declaration;
0225: public boolean insert_space_before_opening_brace_in_type_declaration;
0226: public boolean insert_space_before_opening_bracket_in_array_allocation_expression;
0227: public boolean insert_space_before_opening_bracket_in_array_reference;
0228: public boolean insert_space_before_opening_bracket_in_array_type_reference;
0229: public boolean insert_space_before_opening_paren_in_catch;
0230: public boolean insert_space_before_opening_paren_in_constructor_declaration;
0231: public boolean insert_space_before_opening_paren_in_for;
0232: public boolean insert_space_before_opening_paren_in_if;
0233: public boolean insert_space_before_opening_paren_in_method_invocation;
0234: public boolean insert_space_before_opening_paren_in_method_declaration;
0235: public boolean insert_space_before_opening_paren_in_switch;
0236: public boolean insert_space_before_opening_brace_in_switch;
0237: public boolean insert_space_before_opening_paren_in_synchronized;
0238: public boolean insert_space_before_opening_paren_in_parenthesized_expression;
0239: public boolean insert_space_before_opening_paren_in_while;
0240: public boolean insert_space_before_postfix_operator;
0241: public boolean insert_space_before_prefix_operator;
0242: public boolean insert_space_before_question_in_conditional;
0243: public boolean insert_space_before_semicolon;
0244: public boolean insert_space_before_semicolon_in_for;
0245: public boolean insert_space_before_unary_operator;
0246: public boolean insert_space_between_brackets_in_array_type_reference;
0247: public boolean insert_space_between_empty_braces_in_array_initializer;
0248: public boolean insert_space_between_empty_brackets_in_array_allocation_expression;
0249: public boolean insert_space_between_empty_parens_in_constructor_declaration;
0250: public boolean insert_space_between_empty_parens_in_method_declaration;
0251: public boolean insert_space_between_empty_parens_in_method_invocation;
0252: public boolean compact_else_if;
0253: public boolean keep_guardian_clause_on_one_line;
0254: public boolean keep_else_statement_on_same_line;
0255: public boolean keep_empty_array_initializer_on_one_line;
0256: public boolean keep_simple_if_on_one_line;
0257: public boolean keep_then_statement_on_same_line;
0258: public boolean never_indent_block_comments_on_first_column;
0259: public boolean never_indent_line_comments_on_first_column;
0260: public int number_of_empty_lines_to_preserve;
0261: public boolean put_empty_statement_on_new_line;
0262: public int tab_size;
0263: public final char filling_space = ' ';
0264: public int page_width;
0265: public boolean use_tab;
0266: public boolean wrapBeforeBinaryOperator;
0267:
0268: public int initial_indentation_level;
0269: public String line_separator;
0270:
0271: private TestFormatterOptions() {
0272: // cannot be instantiated
0273: }
0274:
0275: private String getAlignment(int alignment) {
0276: return Integer.toString(alignment);
0277: }
0278:
0279: private Hashtable getMap() {
0280: Hashtable options = new Hashtable();
0281: options
0282: .put(
0283: DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_ALLOCATION_EXPRESSION,
0284: getAlignment(this .alignment_for_arguments_in_allocation_expression));
0285: options
0286: .put(
0287: DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_EXPLICIT_CONSTRUCTOR_CALL,
0288: getAlignment(this .alignment_for_arguments_in_explicit_constructor_call));
0289: options
0290: .put(
0291: DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_METHOD_INVOCATION,
0292: getAlignment(this .alignment_for_arguments_in_method_invocation));
0293: options
0294: .put(
0295: DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_QUALIFIED_ALLOCATION_EXPRESSION,
0296: getAlignment(this .alignment_for_arguments_in_qualified_allocation_expression));
0297: options
0298: .put(
0299: DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_BINARY_EXPRESSION,
0300: getAlignment(this .alignment_for_binary_expression));
0301: options
0302: .put(
0303: DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_COMPACT_IF,
0304: getAlignment(this .alignment_for_compact_if));
0305: options
0306: .put(
0307: DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_CONDITIONAL_EXPRESSION,
0308: getAlignment(this .alignment_for_conditional_expression));
0309: options
0310: .put(
0311: DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_EXPRESSIONS_IN_ARRAY_INITIALIZER,
0312: getAlignment(this .alignment_for_expressions_in_array_initializer));
0313: options
0314: .put(
0315: DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_MULTIPLE_FIELDS,
0316: getAlignment(this .alignment_for_multiple_fields));
0317: options
0318: .put(
0319: DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_CONSTRUCTOR_DECLARATION,
0320: getAlignment(this .alignment_for_parameters_in_constructor_declaration));
0321: options
0322: .put(
0323: DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_METHOD_DECLARATION,
0324: getAlignment(this .alignment_for_parameters_in_method_declaration));
0325: options
0326: .put(
0327: DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SELECTOR_IN_METHOD_INVOCATION,
0328: getAlignment(this .alignment_for_selector_in_method_invocation));
0329: options
0330: .put(
0331: DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SUPERCLASS_IN_TYPE_DECLARATION,
0332: getAlignment(this .alignment_for_super class_in_type_declaration));
0333: options
0334: .put(
0335: DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SUPERINTERFACES_IN_TYPE_DECLARATION,
0336: getAlignment(this .alignment_for_super interfaces_in_type_declaration));
0337: options
0338: .put(
0339: DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_THROWS_CLAUSE_IN_CONSTRUCTOR_DECLARATION,
0340: getAlignment(this .alignment_for_throws_clause_in_constructor_declaration));
0341: options
0342: .put(
0343: DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_THROWS_CLAUSE_IN_METHOD_DECLARATION,
0344: getAlignment(this .alignment_for_throws_clause_in_method_declaration));
0345: options
0346: .put(
0347: DefaultCodeFormatterConstants.FORMATTER_ALIGN_TYPE_MEMBERS_ON_COLUMNS,
0348: this .align_type_members_on_columns ? DefaultCodeFormatterConstants.TRUE
0349: : DefaultCodeFormatterConstants.FALSE);
0350: options
0351: .put(
0352: DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_ANONYMOUS_TYPE_DECLARATION,
0353: this .brace_position_for_anonymous_type_declaration);
0354: options
0355: .put(
0356: DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_ARRAY_INITIALIZER,
0357: this .brace_position_for_array_initializer);
0358: options
0359: .put(
0360: DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_BLOCK,
0361: this .brace_position_for_block);
0362: options
0363: .put(
0364: DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_BLOCK_IN_CASE,
0365: this .brace_position_for_block_in_case);
0366: options
0367: .put(
0368: DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_CONSTRUCTOR_DECLARATION,
0369: this .brace_position_for_constructor_declaration);
0370: options
0371: .put(
0372: DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_METHOD_DECLARATION,
0373: this .brace_position_for_method_declaration);
0374: options
0375: .put(
0376: DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_TYPE_DECLARATION,
0377: this .brace_position_for_type_declaration);
0378: options
0379: .put(
0380: DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_SWITCH,
0381: this .brace_position_for_switch);
0382: options
0383: .put(
0384: DefaultCodeFormatterConstants.FORMATTER_CONTINUATION_INDENTATION,
0385: Integer.toString(this .continuation_indentation));
0386: options
0387: .put(
0388: DefaultCodeFormatterConstants.FORMATTER_CONTINUATION_INDENTATION_FOR_ARRAY_INITIALIZER,
0389: Integer
0390: .toString(this .continuation_indentation_for_array_initializer));
0391: options
0392: .put(
0393: DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_AFTER_IMPORTS,
0394: Integer
0395: .toString(this .blank_lines_after_imports));
0396: options
0397: .put(
0398: DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_AFTER_PACKAGE,
0399: Integer
0400: .toString(this .blank_lines_after_package));
0401: options
0402: .put(
0403: DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_FIELD,
0404: Integer.toString(this .blank_lines_before_field));
0405: options
0406: .put(
0407: DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_FIRST_CLASS_BODY_DECLARATION,
0408: Integer
0409: .toString(this .blank_lines_before_first_class_body_declaration));
0410: options
0411: .put(
0412: DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_IMPORTS,
0413: Integer
0414: .toString(this .blank_lines_before_imports));
0415: options
0416: .put(
0417: DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_MEMBER_TYPE,
0418: Integer
0419: .toString(this .blank_lines_before_member_type));
0420: options
0421: .put(
0422: DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_METHOD,
0423: Integer
0424: .toString(this .blank_lines_before_method));
0425: options
0426: .put(
0427: DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_NEW_CHUNK,
0428: Integer
0429: .toString(this .blank_lines_before_new_chunk));
0430: options
0431: .put(
0432: DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_PACKAGE,
0433: Integer
0434: .toString(this .blank_lines_before_package));
0435: options
0436: .put(
0437: DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_BETWEEN_TYPE_DECLARATIONS,
0438: Integer
0439: .toString(this .blank_lines_between_type_declarations));
0440: options
0441: .put(
0442: DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_AT_BEGINNING_OF_METHOD_BODY,
0443: Integer
0444: .toString(this .blank_lines_at_beginning_of_method_body));
0445: options
0446: .put(
0447: DefaultCodeFormatterConstants.FORMATTER_INDENT_STATEMENTS_COMPARE_TO_BLOCK,
0448: this .indent_statements_compare_to_block ? DefaultCodeFormatterConstants.TRUE
0449: : DefaultCodeFormatterConstants.FALSE);
0450: options
0451: .put(
0452: DefaultCodeFormatterConstants.FORMATTER_INDENT_STATEMENTS_COMPARE_TO_BODY,
0453: this .indent_statements_compare_to_body ? DefaultCodeFormatterConstants.TRUE
0454: : DefaultCodeFormatterConstants.FALSE);
0455: options
0456: .put(
0457: DefaultCodeFormatterConstants.FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_TYPE_HEADER,
0458: this .indent_body_declarations_compare_to_type_header ? DefaultCodeFormatterConstants.TRUE
0459: : DefaultCodeFormatterConstants.FALSE);
0460: options
0461: .put(
0462: DefaultCodeFormatterConstants.FORMATTER_INDENT_BREAKS_COMPARE_TO_CASES,
0463: this .indent_breaks_compare_to_cases ? DefaultCodeFormatterConstants.TRUE
0464: : DefaultCodeFormatterConstants.FALSE);
0465: options
0466: .put(
0467: DefaultCodeFormatterConstants.FORMATTER_INDENT_SWITCHSTATEMENTS_COMPARE_TO_CASES,
0468: this .indent_switchstatements_compare_to_cases ? DefaultCodeFormatterConstants.TRUE
0469: : DefaultCodeFormatterConstants.FALSE);
0470: options
0471: .put(
0472: DefaultCodeFormatterConstants.FORMATTER_INDENT_SWITCHSTATEMENTS_COMPARE_TO_SWITCH,
0473: this .indent_switchstatements_compare_to_switch ? DefaultCodeFormatterConstants.TRUE
0474: : DefaultCodeFormatterConstants.FALSE);
0475: options
0476: .put(
0477: DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_AFTER_OPENING_BRACE_IN_ARRAY_INITIALIZER,
0478: this .insert_new_line_after_opening_brace_in_array_initializer ? JavaCore.INSERT
0479: : JavaCore.DO_NOT_INSERT);
0480: options
0481: .put(
0482: DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_CATCH_IN_TRY_STATEMENT,
0483: this .insert_new_line_before_catch_in_try_statement ? JavaCore.INSERT
0484: : JavaCore.DO_NOT_INSERT);
0485: options
0486: .put(
0487: DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_CLOSING_BRACE_IN_ARRAY_INITIALIZER,
0488: this .insert_new_line_before_closing_brace_in_array_initializer ? JavaCore.INSERT
0489: : JavaCore.DO_NOT_INSERT);
0490: options
0491: .put(
0492: DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_ELSE_IN_IF_STATEMENT,
0493: this .insert_new_line_before_else_in_if_statement ? JavaCore.INSERT
0494: : JavaCore.DO_NOT_INSERT);
0495: options
0496: .put(
0497: DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_FINALLY_IN_TRY_STATEMENT,
0498: this .insert_new_line_before_finally_in_try_statement ? JavaCore.INSERT
0499: : JavaCore.DO_NOT_INSERT);
0500: options
0501: .put(
0502: DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_WHILE_IN_DO_STATEMENT,
0503: this .insert_new_line_before_while_in_do_statement ? JavaCore.INSERT
0504: : JavaCore.DO_NOT_INSERT);
0505: options
0506: .put(
0507: DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_ANONYMOUS_TYPE_DECLARATION,
0508: this .insert_new_line_in_empty_anonymous_type_declaration ? JavaCore.INSERT
0509: : JavaCore.DO_NOT_INSERT);
0510: options
0511: .put(
0512: DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_BLOCK,
0513: this .insert_new_line_in_empty_block ? JavaCore.INSERT
0514: : JavaCore.DO_NOT_INSERT);
0515: options
0516: .put(
0517: DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_METHOD_BODY,
0518: this .insert_new_line_in_empty_method_body ? JavaCore.INSERT
0519: : JavaCore.DO_NOT_INSERT);
0520: options
0521: .put(
0522: DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_TYPE_DECLARATION,
0523: this .insert_new_line_in_empty_type_declaration ? JavaCore.INSERT
0524: : JavaCore.DO_NOT_INSERT);
0525: options
0526: .put(
0527: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_ASSIGNMENT_OPERATOR,
0528: this .insert_space_after_assignment_operator ? JavaCore.INSERT
0529: : JavaCore.DO_NOT_INSERT);
0530: options
0531: .put(
0532: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_BINARY_OPERATOR,
0533: this .insert_space_after_binary_operator ? JavaCore.INSERT
0534: : JavaCore.DO_NOT_INSERT);
0535: options
0536: .put(
0537: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_CLOSING_PAREN_IN_CAST,
0538: this .insert_space_after_closing_paren_in_cast ? JavaCore.INSERT
0539: : JavaCore.DO_NOT_INSERT);
0540: options
0541: .put(
0542: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_CLOSING_BRACE_IN_BLOCK,
0543: this .insert_space_after_closing_brace_in_block ? JavaCore.INSERT
0544: : JavaCore.DO_NOT_INSERT);
0545: options
0546: .put(
0547: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_ASSERT,
0548: this .insert_space_after_colon_in_assert ? JavaCore.INSERT
0549: : JavaCore.DO_NOT_INSERT);
0550: options
0551: .put(
0552: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_CASE,
0553: this .insert_space_after_colon_in_case ? JavaCore.INSERT
0554: : JavaCore.DO_NOT_INSERT);
0555: options
0556: .put(
0557: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_CONDITIONAL,
0558: this .insert_space_after_colon_in_conditional ? JavaCore.INSERT
0559: : JavaCore.DO_NOT_INSERT);
0560: options
0561: .put(
0562: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_LABELED_STATEMENT,
0563: this .insert_space_after_colon_in_labeled_statement ? JavaCore.INSERT
0564: : JavaCore.DO_NOT_INSERT);
0565: options
0566: .put(
0567: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ALLOCATION_EXPRESSION,
0568: this .insert_space_after_comma_in_allocation_expression ? JavaCore.INSERT
0569: : JavaCore.DO_NOT_INSERT);
0570: options
0571: .put(
0572: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ARRAY_INITIALIZER,
0573: this .insert_space_after_comma_in_array_initializer ? JavaCore.INSERT
0574: : JavaCore.DO_NOT_INSERT);
0575: options
0576: .put(
0577: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_CONSTRUCTOR_DECLARATION_PARAMETERS,
0578: this .insert_space_after_comma_in_constructor_declaration_parameters ? JavaCore.INSERT
0579: : JavaCore.DO_NOT_INSERT);
0580: options
0581: .put(
0582: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_CONSTRUCTOR_DECLARATION_THROWS,
0583: this .insert_space_after_comma_in_constructor_declaration_throws ? JavaCore.INSERT
0584: : JavaCore.DO_NOT_INSERT);
0585: options
0586: .put(
0587: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_EXPLICIT_CONSTRUCTOR_CALL_ARGUMENTS,
0588: this .insert_space_after_comma_in_explicit_constructor_call_arguments ? JavaCore.INSERT
0589: : JavaCore.DO_NOT_INSERT);
0590: options
0591: .put(
0592: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_FOR_INCREMENTS,
0593: this .insert_space_after_comma_in_for_increments ? JavaCore.INSERT
0594: : JavaCore.DO_NOT_INSERT);
0595: options
0596: .put(
0597: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_FOR_INITS,
0598: this .insert_space_after_comma_in_for_inits ? JavaCore.INSERT
0599: : JavaCore.DO_NOT_INSERT);
0600: options
0601: .put(
0602: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_INVOCATION_ARGUMENTS,
0603: this .insert_space_after_comma_in_method_invocation_arguments ? JavaCore.INSERT
0604: : JavaCore.DO_NOT_INSERT);
0605: options
0606: .put(
0607: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_DECLARATION_PARAMETERS,
0608: this .insert_space_after_comma_in_method_declaration_parameters ? JavaCore.INSERT
0609: : JavaCore.DO_NOT_INSERT);
0610: options
0611: .put(
0612: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_DECLARATION_THROWS,
0613: this .insert_space_after_comma_in_method_declaration_throws ? JavaCore.INSERT
0614: : JavaCore.DO_NOT_INSERT);
0615: options
0616: .put(
0617: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_MULTIPLE_FIELD_DECLARATIONS,
0618: this .insert_space_after_comma_in_multiple_field_declarations ? JavaCore.INSERT
0619: : JavaCore.DO_NOT_INSERT);
0620: options
0621: .put(
0622: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_MULTIPLE_LOCAL_DECLARATIONS,
0623: this .insert_space_after_comma_in_multiple_local_declarations ? JavaCore.INSERT
0624: : JavaCore.DO_NOT_INSERT);
0625: options
0626: .put(
0627: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_SUPERINTERFACES,
0628: this .insert_space_after_comma_in_super interfaces ? JavaCore.INSERT
0629: : JavaCore.DO_NOT_INSERT);
0630: options
0631: .put(
0632: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_BRACKET_IN_ARRAY_ALLOCATION_EXPRESSION,
0633: this .insert_space_after_opening_bracket_in_array_allocation_expression ? JavaCore.INSERT
0634: : JavaCore.DO_NOT_INSERT);
0635: options
0636: .put(
0637: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_BRACKET_IN_ARRAY_REFERENCE,
0638: this .insert_space_after_opening_bracket_in_array_reference ? JavaCore.INSERT
0639: : JavaCore.DO_NOT_INSERT);
0640: options
0641: .put(
0642: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_BRACE_IN_ARRAY_INITIALIZER,
0643: this .insert_space_after_opening_brace_in_array_initializer ? JavaCore.INSERT
0644: : JavaCore.DO_NOT_INSERT);
0645: options
0646: .put(
0647: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CAST,
0648: this .insert_space_after_opening_paren_in_cast ? JavaCore.INSERT
0649: : JavaCore.DO_NOT_INSERT);
0650: options
0651: .put(
0652: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CATCH,
0653: this .insert_space_after_opening_paren_in_catch ? JavaCore.INSERT
0654: : JavaCore.DO_NOT_INSERT);
0655: options
0656: .put(
0657: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CONSTRUCTOR_DECLARATION,
0658: this .insert_space_after_opening_paren_in_constructor_declaration ? JavaCore.INSERT
0659: : JavaCore.DO_NOT_INSERT);
0660: options
0661: .put(
0662: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_FOR,
0663: this .insert_space_after_opening_paren_in_for ? JavaCore.INSERT
0664: : JavaCore.DO_NOT_INSERT);
0665: options
0666: .put(
0667: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_IF,
0668: this .insert_space_after_opening_paren_in_if ? JavaCore.INSERT
0669: : JavaCore.DO_NOT_INSERT);
0670: options
0671: .put(
0672: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_METHOD_DECLARATION,
0673: this .insert_space_after_opening_paren_in_method_declaration ? JavaCore.INSERT
0674: : JavaCore.DO_NOT_INSERT);
0675: options
0676: .put(
0677: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_METHOD_INVOCATION,
0678: this .insert_space_after_opening_paren_in_method_invocation ? JavaCore.INSERT
0679: : JavaCore.DO_NOT_INSERT);
0680: options
0681: .put(
0682: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_PARENTHESIZED_EXPRESSION,
0683: this .insert_space_after_opening_paren_in_parenthesized_expression ? JavaCore.INSERT
0684: : JavaCore.DO_NOT_INSERT);
0685: options
0686: .put(
0687: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_SWITCH,
0688: this .insert_space_after_opening_paren_in_switch ? JavaCore.INSERT
0689: : JavaCore.DO_NOT_INSERT);
0690: options
0691: .put(
0692: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_SYNCHRONIZED,
0693: this .insert_space_after_opening_paren_in_synchronized ? JavaCore.INSERT
0694: : JavaCore.DO_NOT_INSERT);
0695: options
0696: .put(
0697: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_WHILE,
0698: this .insert_space_after_opening_paren_in_while ? JavaCore.INSERT
0699: : JavaCore.DO_NOT_INSERT);
0700: options
0701: .put(
0702: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_POSTFIX_OPERATOR,
0703: this .insert_space_after_postfix_operator ? JavaCore.INSERT
0704: : JavaCore.DO_NOT_INSERT);
0705: options
0706: .put(
0707: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_PREFIX_OPERATOR,
0708: this .insert_space_after_prefix_operator ? JavaCore.INSERT
0709: : JavaCore.DO_NOT_INSERT);
0710: options
0711: .put(
0712: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_QUESTION_IN_CONDITIONAL,
0713: this .insert_space_after_question_in_conditional ? JavaCore.INSERT
0714: : JavaCore.DO_NOT_INSERT);
0715: options
0716: .put(
0717: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_SEMICOLON_IN_FOR,
0718: this .insert_space_after_semicolon_in_for ? JavaCore.INSERT
0719: : JavaCore.DO_NOT_INSERT);
0720: options
0721: .put(
0722: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_UNARY_OPERATOR,
0723: this .insert_space_after_unary_operator ? JavaCore.INSERT
0724: : JavaCore.DO_NOT_INSERT);
0725: options
0726: .put(
0727: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_ASSIGNMENT_OPERATOR,
0728: this .insert_space_before_assignment_operator ? JavaCore.INSERT
0729: : JavaCore.DO_NOT_INSERT);
0730: options
0731: .put(
0732: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_BINARY_OPERATOR,
0733: this .insert_space_before_binary_operator ? JavaCore.INSERT
0734: : JavaCore.DO_NOT_INSERT);
0735: options
0736: .put(
0737: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_BRACE_IN_ARRAY_INITIALIZER,
0738: this .insert_space_before_closing_brace_in_array_initializer ? JavaCore.INSERT
0739: : JavaCore.DO_NOT_INSERT);
0740: options
0741: .put(
0742: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_BRACKET_IN_ARRAY_ALLOCATION_EXPRESSION,
0743: this .insert_space_before_closing_bracket_in_array_allocation_expression ? JavaCore.INSERT
0744: : JavaCore.DO_NOT_INSERT);
0745: options
0746: .put(
0747: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_BRACKET_IN_ARRAY_REFERENCE,
0748: this .insert_space_before_closing_bracket_in_array_reference ? JavaCore.INSERT
0749: : JavaCore.DO_NOT_INSERT);
0750: options
0751: .put(
0752: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CAST,
0753: this .insert_space_before_closing_paren_in_cast ? JavaCore.INSERT
0754: : JavaCore.DO_NOT_INSERT);
0755: options
0756: .put(
0757: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CATCH,
0758: this .insert_space_before_closing_paren_in_catch ? JavaCore.INSERT
0759: : JavaCore.DO_NOT_INSERT);
0760: options
0761: .put(
0762: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CONSTRUCTOR_DECLARATION,
0763: this .insert_space_before_closing_paren_in_constructor_declaration ? JavaCore.INSERT
0764: : JavaCore.DO_NOT_INSERT);
0765: options
0766: .put(
0767: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_FOR,
0768: this .insert_space_before_closing_paren_in_for ? JavaCore.INSERT
0769: : JavaCore.DO_NOT_INSERT);
0770: options
0771: .put(
0772: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_IF,
0773: this .insert_space_before_closing_paren_in_if ? JavaCore.INSERT
0774: : JavaCore.DO_NOT_INSERT);
0775: options
0776: .put(
0777: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_METHOD_DECLARATION,
0778: this .insert_space_before_closing_paren_in_method_declaration ? JavaCore.INSERT
0779: : JavaCore.DO_NOT_INSERT);
0780: options
0781: .put(
0782: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_METHOD_INVOCATION,
0783: this .insert_space_before_closing_paren_in_method_invocation ? JavaCore.INSERT
0784: : JavaCore.DO_NOT_INSERT);
0785: options
0786: .put(
0787: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_PARENTHESIZED_EXPRESSION,
0788: this .insert_space_before_closing_paren_in_parenthesized_expression ? JavaCore.INSERT
0789: : JavaCore.DO_NOT_INSERT);
0790: options
0791: .put(
0792: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_SWITCH,
0793: this .insert_space_before_closing_paren_in_switch ? JavaCore.INSERT
0794: : JavaCore.DO_NOT_INSERT);
0795: options
0796: .put(
0797: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_SYNCHRONIZED,
0798: this .insert_space_before_closing_paren_in_synchronized ? JavaCore.INSERT
0799: : JavaCore.DO_NOT_INSERT);
0800: options
0801: .put(
0802: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_WHILE,
0803: this .insert_space_before_closing_paren_in_while ? JavaCore.INSERT
0804: : JavaCore.DO_NOT_INSERT);
0805: options
0806: .put(
0807: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_ASSERT,
0808: this .insert_space_before_colon_in_assert ? JavaCore.INSERT
0809: : JavaCore.DO_NOT_INSERT);
0810: options
0811: .put(
0812: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_CASE,
0813: this .insert_space_before_colon_in_case ? JavaCore.INSERT
0814: : JavaCore.DO_NOT_INSERT);
0815: options
0816: .put(
0817: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_CONDITIONAL,
0818: this .insert_space_before_colon_in_conditional ? JavaCore.INSERT
0819: : JavaCore.DO_NOT_INSERT);
0820: options
0821: .put(
0822: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_DEFAULT,
0823: this .insert_space_before_colon_in_default ? JavaCore.INSERT
0824: : JavaCore.DO_NOT_INSERT);
0825: options
0826: .put(
0827: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_LABELED_STATEMENT,
0828: this .insert_space_before_colon_in_labeled_statement ? JavaCore.INSERT
0829: : JavaCore.DO_NOT_INSERT);
0830: options
0831: .put(
0832: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ALLOCATION_EXPRESSION,
0833: this .insert_space_before_comma_in_allocation_expression ? JavaCore.INSERT
0834: : JavaCore.DO_NOT_INSERT);
0835: options
0836: .put(
0837: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ARRAY_INITIALIZER,
0838: this .insert_space_before_comma_in_array_initializer ? JavaCore.INSERT
0839: : JavaCore.DO_NOT_INSERT);
0840: options
0841: .put(
0842: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_CONSTRUCTOR_DECLARATION_PARAMETERS,
0843: this .insert_space_before_comma_in_constructor_declaration_parameters ? JavaCore.INSERT
0844: : JavaCore.DO_NOT_INSERT);
0845: options
0846: .put(
0847: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_CONSTRUCTOR_DECLARATION_THROWS,
0848: this .insert_space_before_comma_in_constructor_declaration_throws ? JavaCore.INSERT
0849: : JavaCore.DO_NOT_INSERT);
0850: options
0851: .put(
0852: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_EXPLICIT_CONSTRUCTOR_CALL_ARGUMENTS,
0853: this .insert_space_before_comma_in_explicit_constructor_call_arguments ? JavaCore.INSERT
0854: : JavaCore.DO_NOT_INSERT);
0855: options
0856: .put(
0857: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_FOR_INCREMENTS,
0858: this .insert_space_before_comma_in_for_increments ? JavaCore.INSERT
0859: : JavaCore.DO_NOT_INSERT);
0860: options
0861: .put(
0862: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_FOR_INITS,
0863: this .insert_space_before_comma_in_for_inits ? JavaCore.INSERT
0864: : JavaCore.DO_NOT_INSERT);
0865: options
0866: .put(
0867: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_INVOCATION_ARGUMENTS,
0868: this .insert_space_before_comma_in_method_invocation_arguments ? JavaCore.INSERT
0869: : JavaCore.DO_NOT_INSERT);
0870: options
0871: .put(
0872: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_DECLARATION_PARAMETERS,
0873: this .insert_space_before_comma_in_method_declaration_parameters ? JavaCore.INSERT
0874: : JavaCore.DO_NOT_INSERT);
0875: options
0876: .put(
0877: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_DECLARATION_THROWS,
0878: this .insert_space_before_comma_in_method_declaration_throws ? JavaCore.INSERT
0879: : JavaCore.DO_NOT_INSERT);
0880: options
0881: .put(
0882: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_MULTIPLE_FIELD_DECLARATIONS,
0883: this .insert_space_before_comma_in_multiple_field_declarations ? JavaCore.INSERT
0884: : JavaCore.DO_NOT_INSERT);
0885: options
0886: .put(
0887: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_MULTIPLE_LOCAL_DECLARATIONS,
0888: this .insert_space_before_comma_in_multiple_local_declarations ? JavaCore.INSERT
0889: : JavaCore.DO_NOT_INSERT);
0890: options
0891: .put(
0892: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_SUPERINTERFACES,
0893: this .insert_space_before_comma_in_super interfaces ? JavaCore.INSERT
0894: : JavaCore.DO_NOT_INSERT);
0895: options
0896: .put(
0897: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_ANONYMOUS_TYPE_DECLARATION,
0898: this .insert_space_before_opening_brace_in_anonymous_type_declaration ? JavaCore.INSERT
0899: : JavaCore.DO_NOT_INSERT);
0900: options
0901: .put(
0902: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_ARRAY_INITIALIZER,
0903: this .insert_space_before_opening_brace_in_array_initializer ? JavaCore.INSERT
0904: : JavaCore.DO_NOT_INSERT);
0905: options
0906: .put(
0907: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_BLOCK,
0908: this .insert_space_before_opening_brace_in_block ? JavaCore.INSERT
0909: : JavaCore.DO_NOT_INSERT);
0910: options
0911: .put(
0912: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_CONSTRUCTOR_DECLARATION,
0913: this .insert_space_before_opening_brace_in_constructor_declaration ? JavaCore.INSERT
0914: : JavaCore.DO_NOT_INSERT);
0915: options
0916: .put(
0917: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_METHOD_DECLARATION,
0918: this .insert_space_before_opening_brace_in_method_declaration ? JavaCore.INSERT
0919: : JavaCore.DO_NOT_INSERT);
0920: options
0921: .put(
0922: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_TYPE_DECLARATION,
0923: this .insert_space_before_opening_brace_in_type_declaration ? JavaCore.INSERT
0924: : JavaCore.DO_NOT_INSERT);
0925: options
0926: .put(
0927: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACKET_IN_ARRAY_ALLOCATION_EXPRESSION,
0928: this .insert_space_before_opening_bracket_in_array_allocation_expression ? JavaCore.INSERT
0929: : JavaCore.DO_NOT_INSERT);
0930: options
0931: .put(
0932: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACKET_IN_ARRAY_REFERENCE,
0933: this .insert_space_before_opening_bracket_in_array_reference ? JavaCore.INSERT
0934: : JavaCore.DO_NOT_INSERT);
0935: options
0936: .put(
0937: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACKET_IN_ARRAY_TYPE_REFERENCE,
0938: this .insert_space_before_opening_bracket_in_array_type_reference ? JavaCore.INSERT
0939: : JavaCore.DO_NOT_INSERT);
0940: options
0941: .put(
0942: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_CATCH,
0943: this .insert_space_before_opening_paren_in_catch ? JavaCore.INSERT
0944: : JavaCore.DO_NOT_INSERT);
0945: options
0946: .put(
0947: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_CONSTRUCTOR_DECLARATION,
0948: this .insert_space_before_opening_paren_in_constructor_declaration ? JavaCore.INSERT
0949: : JavaCore.DO_NOT_INSERT);
0950: options
0951: .put(
0952: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_FOR,
0953: this .insert_space_before_opening_paren_in_for ? JavaCore.INSERT
0954: : JavaCore.DO_NOT_INSERT);
0955: options
0956: .put(
0957: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_IF,
0958: this .insert_space_before_opening_paren_in_if ? JavaCore.INSERT
0959: : JavaCore.DO_NOT_INSERT);
0960: options
0961: .put(
0962: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_METHOD_INVOCATION,
0963: this .insert_space_before_opening_paren_in_method_invocation ? JavaCore.INSERT
0964: : JavaCore.DO_NOT_INSERT);
0965: options
0966: .put(
0967: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_METHOD_DECLARATION,
0968: this .insert_space_before_opening_paren_in_method_declaration ? JavaCore.INSERT
0969: : JavaCore.DO_NOT_INSERT);
0970: options
0971: .put(
0972: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_SWITCH,
0973: this .insert_space_before_opening_paren_in_switch ? JavaCore.INSERT
0974: : JavaCore.DO_NOT_INSERT);
0975: options
0976: .put(
0977: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_SWITCH,
0978: this .insert_space_before_opening_brace_in_switch ? JavaCore.INSERT
0979: : JavaCore.DO_NOT_INSERT);
0980: options
0981: .put(
0982: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_SYNCHRONIZED,
0983: this .insert_space_before_opening_paren_in_synchronized ? JavaCore.INSERT
0984: : JavaCore.DO_NOT_INSERT);
0985: options
0986: .put(
0987: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_PARENTHESIZED_EXPRESSION,
0988: this .insert_space_before_opening_paren_in_parenthesized_expression ? JavaCore.INSERT
0989: : JavaCore.DO_NOT_INSERT);
0990: options
0991: .put(
0992: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_WHILE,
0993: this .insert_space_before_opening_paren_in_while ? JavaCore.INSERT
0994: : JavaCore.DO_NOT_INSERT);
0995: options
0996: .put(
0997: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_POSTFIX_OPERATOR,
0998: this .insert_space_before_postfix_operator ? JavaCore.INSERT
0999: : JavaCore.DO_NOT_INSERT);
1000: options
1001: .put(
1002: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_PREFIX_OPERATOR,
1003: this .insert_space_before_prefix_operator ? JavaCore.INSERT
1004: : JavaCore.DO_NOT_INSERT);
1005: options
1006: .put(
1007: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_QUESTION_IN_CONDITIONAL,
1008: this .insert_space_before_question_in_conditional ? JavaCore.INSERT
1009: : JavaCore.DO_NOT_INSERT);
1010: options
1011: .put(
1012: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_SEMICOLON,
1013: this .insert_space_before_semicolon ? JavaCore.INSERT
1014: : JavaCore.DO_NOT_INSERT);
1015: options
1016: .put(
1017: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_SEMICOLON_IN_FOR,
1018: this .insert_space_before_semicolon_in_for ? JavaCore.INSERT
1019: : JavaCore.DO_NOT_INSERT);
1020: options
1021: .put(
1022: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_UNARY_OPERATOR,
1023: this .insert_space_before_unary_operator ? JavaCore.INSERT
1024: : JavaCore.DO_NOT_INSERT);
1025: options
1026: .put(
1027: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_BRACKETS_IN_ARRAY_TYPE_REFERENCE,
1028: this .insert_space_between_brackets_in_array_type_reference ? JavaCore.INSERT
1029: : JavaCore.DO_NOT_INSERT);
1030: options
1031: .put(
1032: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_BRACES_IN_ARRAY_INITIALIZER,
1033: this .insert_space_between_empty_braces_in_array_initializer ? JavaCore.INSERT
1034: : JavaCore.DO_NOT_INSERT);
1035: options
1036: .put(
1037: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_BRACKETS_IN_ARRAY_ALLOCATION_EXPRESSION,
1038: this .insert_space_between_empty_brackets_in_array_allocation_expression ? JavaCore.INSERT
1039: : JavaCore.DO_NOT_INSERT);
1040: options
1041: .put(
1042: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_CONSTRUCTOR_DECLARATION,
1043: this .insert_space_between_empty_parens_in_constructor_declaration ? JavaCore.INSERT
1044: : JavaCore.DO_NOT_INSERT);
1045: options
1046: .put(
1047: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_METHOD_DECLARATION,
1048: this .insert_space_between_empty_parens_in_method_declaration ? JavaCore.INSERT
1049: : JavaCore.DO_NOT_INSERT);
1050: options
1051: .put(
1052: DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_METHOD_INVOCATION,
1053: this .insert_space_between_empty_parens_in_method_invocation ? JavaCore.INSERT
1054: : JavaCore.DO_NOT_INSERT);
1055: options
1056: .put(
1057: DefaultCodeFormatterConstants.FORMATTER_COMPACT_ELSE_IF,
1058: this .compact_else_if ? DefaultCodeFormatterConstants.TRUE
1059: : DefaultCodeFormatterConstants.FALSE);
1060: options
1061: .put(
1062: DefaultCodeFormatterConstants.FORMATTER_KEEP_GUARDIAN_CLAUSE_ON_ONE_LINE,
1063: this .keep_guardian_clause_on_one_line ? DefaultCodeFormatterConstants.TRUE
1064: : DefaultCodeFormatterConstants.FALSE);
1065: options
1066: .put(
1067: DefaultCodeFormatterConstants.FORMATTER_KEEP_ELSE_STATEMENT_ON_SAME_LINE,
1068: this .keep_else_statement_on_same_line ? DefaultCodeFormatterConstants.TRUE
1069: : DefaultCodeFormatterConstants.FALSE);
1070: options
1071: .put(
1072: DefaultCodeFormatterConstants.FORMATTER_KEEP_EMPTY_ARRAY_INITIALIZER_ON_ONE_LINE,
1073: this .keep_empty_array_initializer_on_one_line ? DefaultCodeFormatterConstants.TRUE
1074: : DefaultCodeFormatterConstants.FALSE);
1075: options
1076: .put(
1077: DefaultCodeFormatterConstants.FORMATTER_KEEP_SIMPLE_IF_ON_ONE_LINE,
1078: this .keep_simple_if_on_one_line ? DefaultCodeFormatterConstants.TRUE
1079: : DefaultCodeFormatterConstants.FALSE);
1080: options
1081: .put(
1082: DefaultCodeFormatterConstants.FORMATTER_KEEP_THEN_STATEMENT_ON_SAME_LINE,
1083: this .keep_then_statement_on_same_line ? DefaultCodeFormatterConstants.TRUE
1084: : DefaultCodeFormatterConstants.FALSE);
1085: options
1086: .put(
1087: DefaultCodeFormatterConstants.FORMATTER_NUMBER_OF_EMPTY_LINES_TO_PRESERVE,
1088: Integer
1089: .toString(this .number_of_empty_lines_to_preserve));
1090: options
1091: .put(
1092: DefaultCodeFormatterConstants.FORMATTER_PUT_EMPTY_STATEMENT_ON_NEW_LINE,
1093: this .put_empty_statement_on_new_line ? DefaultCodeFormatterConstants.TRUE
1094: : DefaultCodeFormatterConstants.FALSE);
1095: options.put(DefaultCodeFormatterConstants.FORMATTER_LINE_SPLIT,
1096: Integer.toString(this .page_width));
1097: options.put(DefaultCodeFormatterConstants.FORMATTER_TAB_CHAR,
1098: this .use_tab ? JavaCore.TAB : JavaCore.SPACE);
1099: options.put(DefaultCodeFormatterConstants.FORMATTER_TAB_SIZE,
1100: Integer.toString(this .tab_size));
1101: options
1102: .put(
1103: DefaultCodeFormatterConstants.FORMATTER_WRAP_BEFORE_BINARY_OPERATOR,
1104: this .wrapBeforeBinaryOperator ? DefaultCodeFormatterConstants.TRUE
1105: : DefaultCodeFormatterConstants.FALSE);
1106: options
1107: .put(
1108: DefaultCodeFormatterConstants.FORMATTER_NEVER_INDENT_BLOCK_COMMENTS_ON_FIRST_COLUMN,
1109: this .never_indent_block_comments_on_first_column ? DefaultCodeFormatterConstants.TRUE
1110: : DefaultCodeFormatterConstants.FALSE);
1111: options
1112: .put(
1113: DefaultCodeFormatterConstants.FORMATTER_NEVER_INDENT_LINE_COMMENTS_ON_FIRST_COLUMN,
1114: this .never_indent_line_comments_on_first_column ? DefaultCodeFormatterConstants.TRUE
1115: : DefaultCodeFormatterConstants.FALSE);
1116: return options;
1117: }
1118:
1119: private void setDefaultSettings() {
1120: this .alignment_for_arguments_in_allocation_expression = Alignment.M_COMPACT_SPLIT;
1121: this .alignment_for_arguments_in_explicit_constructor_call = Alignment.M_COMPACT_SPLIT;
1122: this .alignment_for_arguments_in_method_invocation = Alignment.M_COMPACT_SPLIT;
1123: this .alignment_for_arguments_in_qualified_allocation_expression = Alignment.M_COMPACT_SPLIT;
1124: this .alignment_for_binary_expression = Alignment.M_COMPACT_SPLIT;
1125: this .alignment_for_compact_if = Alignment.M_ONE_PER_LINE_SPLIT
1126: | Alignment.M_INDENT_BY_ONE;
1127: this .alignment_for_conditional_expression = Alignment.M_ONE_PER_LINE_SPLIT;
1128: this .alignment_for_expressions_in_array_initializer = Alignment.M_COMPACT_SPLIT;
1129: this .alignment_for_multiple_fields = Alignment.M_COMPACT_SPLIT;
1130: this .alignment_for_parameters_in_constructor_declaration = Alignment.M_COMPACT_SPLIT;
1131: this .alignment_for_parameters_in_method_declaration = Alignment.M_COMPACT_SPLIT;
1132: this .alignment_for_selector_in_method_invocation = Alignment.M_COMPACT_SPLIT;
1133: this .alignment_for_super class_in_type_declaration = Alignment.M_NEXT_SHIFTED_SPLIT;
1134: this .alignment_for_super interfaces_in_type_declaration = Alignment.M_NEXT_SHIFTED_SPLIT;
1135: this .alignment_for_throws_clause_in_constructor_declaration = Alignment.M_COMPACT_SPLIT;
1136: this .alignment_for_throws_clause_in_method_declaration = Alignment.M_COMPACT_SPLIT;
1137: this .align_type_members_on_columns = false;
1138: this .brace_position_for_anonymous_type_declaration = DefaultCodeFormatterConstants.END_OF_LINE;
1139: this .brace_position_for_array_initializer = DefaultCodeFormatterConstants.END_OF_LINE;
1140: this .brace_position_for_block = DefaultCodeFormatterConstants.END_OF_LINE;
1141: this .brace_position_for_block_in_case = DefaultCodeFormatterConstants.END_OF_LINE;
1142: this .brace_position_for_constructor_declaration = DefaultCodeFormatterConstants.END_OF_LINE;
1143: this .brace_position_for_method_declaration = DefaultCodeFormatterConstants.END_OF_LINE;
1144: this .brace_position_for_type_declaration = DefaultCodeFormatterConstants.END_OF_LINE;
1145: this .brace_position_for_switch = DefaultCodeFormatterConstants.END_OF_LINE;
1146: this .continuation_indentation = 2;
1147: this .continuation_indentation_for_array_initializer = 2;
1148: this .blank_lines_after_imports = 0;
1149: this .blank_lines_after_package = 0;
1150: this .blank_lines_before_field = 0;
1151: this .blank_lines_before_first_class_body_declaration = 0;
1152: this .blank_lines_before_imports = 0;
1153: this .blank_lines_before_member_type = 0;
1154: this .blank_lines_before_method = 0;
1155: this .blank_lines_before_new_chunk = 0;
1156: this .blank_lines_before_package = 0;
1157: this .blank_lines_between_type_declarations = 0;
1158: this .blank_lines_at_beginning_of_method_body = 0;
1159: this .indent_statements_compare_to_block = true;
1160: this .indent_statements_compare_to_body = true;
1161: this .indent_body_declarations_compare_to_type_header = true;
1162: this .indent_breaks_compare_to_cases = true;
1163: this .indent_switchstatements_compare_to_cases = true;
1164: this .indent_switchstatements_compare_to_switch = true;
1165: this .insert_new_line_after_opening_brace_in_array_initializer = false;
1166: this .insert_new_line_before_catch_in_try_statement = false;
1167: this .insert_new_line_before_closing_brace_in_array_initializer = false;
1168: this .insert_new_line_before_else_in_if_statement = false;
1169: this .insert_new_line_before_finally_in_try_statement = false;
1170: this .insert_new_line_before_while_in_do_statement = false;
1171: this .insert_new_line_in_empty_anonymous_type_declaration = true;
1172: this .insert_new_line_in_empty_block = true;
1173: this .insert_new_line_in_empty_method_body = true;
1174: this .insert_new_line_in_empty_type_declaration = true;
1175: this .insert_space_after_assignment_operator = true;
1176: this .insert_space_after_binary_operator = true;
1177: this .insert_space_after_closing_paren_in_cast = true;
1178: this .insert_space_after_closing_brace_in_block = true;
1179: this .insert_space_after_colon_in_assert = true;
1180: this .insert_space_after_colon_in_case = true;
1181: this .insert_space_after_colon_in_conditional = true;
1182: this .insert_space_after_colon_in_labeled_statement = true;
1183: this .insert_space_after_comma_in_allocation_expression = true;
1184: this .insert_space_after_comma_in_array_initializer = true;
1185: this .insert_space_after_comma_in_constructor_declaration_parameters = true;
1186: this .insert_space_after_comma_in_constructor_declaration_throws = true;
1187: this .insert_space_after_comma_in_explicit_constructor_call_arguments = true;
1188: this .insert_space_after_comma_in_for_increments = true;
1189: this .insert_space_after_comma_in_for_inits = true;
1190: this .insert_space_after_comma_in_method_invocation_arguments = true;
1191: this .insert_space_after_comma_in_method_declaration_parameters = true;
1192: this .insert_space_after_comma_in_method_declaration_throws = true;
1193: this .insert_space_after_comma_in_multiple_field_declarations = true;
1194: this .insert_space_after_comma_in_multiple_local_declarations = true;
1195: this .insert_space_after_comma_in_super interfaces = true;
1196: this .insert_space_after_opening_bracket_in_array_allocation_expression = false;
1197: this .insert_space_after_opening_bracket_in_array_reference = false;
1198: this .insert_space_after_opening_brace_in_array_initializer = false;
1199: this .insert_space_after_opening_paren_in_cast = false;
1200: this .insert_space_after_opening_paren_in_catch = false;
1201: this .insert_space_after_opening_paren_in_constructor_declaration = false;
1202: this .insert_space_after_opening_paren_in_for = false;
1203: this .insert_space_after_opening_paren_in_if = false;
1204: this .insert_space_after_opening_paren_in_method_declaration = false;
1205: this .insert_space_after_opening_paren_in_method_invocation = false;
1206: this .insert_space_after_opening_paren_in_parenthesized_expression = false;
1207: this .insert_space_after_opening_paren_in_switch = false;
1208: this .insert_space_after_opening_paren_in_synchronized = false;
1209: this .insert_space_after_opening_paren_in_while = false;
1210: this .insert_space_after_postfix_operator = false;
1211: this .insert_space_after_prefix_operator = false;
1212: this .insert_space_after_question_in_conditional = true;
1213: this .insert_space_after_semicolon_in_for = true;
1214: this .insert_space_after_unary_operator = false;
1215: this .insert_space_before_assignment_operator = true;
1216: this .insert_space_before_binary_operator = true;
1217: this .insert_space_before_closing_brace_in_array_initializer = false;
1218: this .insert_space_before_closing_bracket_in_array_allocation_expression = false;
1219: this .insert_space_before_closing_bracket_in_array_reference = false;
1220: this .insert_space_before_closing_paren_in_cast = false;
1221: this .insert_space_before_closing_paren_in_catch = false;
1222: this .insert_space_before_closing_paren_in_constructor_declaration = false;
1223: this .insert_space_before_closing_paren_in_for = false;
1224: this .insert_space_before_closing_paren_in_if = false;
1225: this .insert_space_before_closing_paren_in_method_declaration = false;
1226: this .insert_space_before_closing_paren_in_method_invocation = false;
1227: this .insert_space_before_closing_paren_in_parenthesized_expression = false;
1228: this .insert_space_before_closing_paren_in_switch = false;
1229: this .insert_space_before_closing_paren_in_synchronized = false;
1230: this .insert_space_before_closing_paren_in_while = false;
1231: this .insert_space_before_colon_in_assert = true;
1232: this .insert_space_before_colon_in_case = true;
1233: this .insert_space_before_colon_in_conditional = true;
1234: this .insert_space_before_colon_in_default = true;
1235: this .insert_space_before_colon_in_labeled_statement = true;
1236: this .insert_space_before_comma_in_allocation_expression = false;
1237: this .insert_space_before_comma_in_array_initializer = false;
1238: this .insert_space_before_comma_in_constructor_declaration_parameters = false;
1239: this .insert_space_before_comma_in_constructor_declaration_throws = false;
1240: this .insert_space_before_comma_in_explicit_constructor_call_arguments = false;
1241: this .insert_space_before_comma_in_for_increments = false;
1242: this .insert_space_before_comma_in_for_inits = false;
1243: this .insert_space_before_comma_in_method_invocation_arguments = false;
1244: this .insert_space_before_comma_in_method_declaration_parameters = false;
1245: this .insert_space_before_comma_in_method_declaration_throws = false;
1246: this .insert_space_before_comma_in_multiple_field_declarations = false;
1247: this .insert_space_before_comma_in_multiple_local_declarations = false;
1248: this .insert_space_before_comma_in_super interfaces = false;
1249: this .insert_space_before_opening_brace_in_anonymous_type_declaration = true;
1250: this .insert_space_before_opening_brace_in_array_initializer = false;
1251: this .insert_space_before_opening_brace_in_block = true;
1252: this .insert_space_before_opening_brace_in_constructor_declaration = true;
1253: this .insert_space_before_opening_brace_in_method_declaration = true;
1254: this .insert_space_before_opening_brace_in_switch = true;
1255: this .insert_space_before_opening_brace_in_type_declaration = true;
1256: this .insert_space_before_opening_bracket_in_array_allocation_expression = false;
1257: this .insert_space_before_opening_bracket_in_array_reference = false;
1258: this .insert_space_before_opening_bracket_in_array_type_reference = false;
1259: this .insert_space_before_opening_paren_in_catch = true;
1260: this .insert_space_before_opening_paren_in_constructor_declaration = false;
1261: this .insert_space_before_opening_paren_in_for = true;
1262: this .insert_space_before_opening_paren_in_if = true;
1263: this .insert_space_before_opening_paren_in_method_invocation = false;
1264: this .insert_space_before_opening_paren_in_method_declaration = false;
1265: this .insert_space_before_opening_paren_in_switch = true;
1266: this .insert_space_before_opening_paren_in_synchronized = true;
1267: this .insert_space_before_opening_paren_in_parenthesized_expression = false;
1268: this .insert_space_before_opening_paren_in_while = true;
1269: this .insert_space_before_postfix_operator = false;
1270: this .insert_space_before_prefix_operator = false;
1271: this .insert_space_before_question_in_conditional = true;
1272: this .insert_space_before_semicolon = false;
1273: this .insert_space_before_semicolon_in_for = false;
1274: this .insert_space_before_unary_operator = false;
1275: this .insert_space_between_brackets_in_array_type_reference = false;
1276: this .insert_space_between_empty_braces_in_array_initializer = false;
1277: this .insert_space_between_empty_brackets_in_array_allocation_expression = false;
1278: this .insert_space_between_empty_parens_in_constructor_declaration = false;
1279: this .insert_space_between_empty_parens_in_method_declaration = false;
1280: this .insert_space_between_empty_parens_in_method_invocation = false;
1281: this .compact_else_if = true;
1282: this .keep_guardian_clause_on_one_line = false;
1283: this .keep_else_statement_on_same_line = false;
1284: this .keep_empty_array_initializer_on_one_line = true;
1285: this .keep_simple_if_on_one_line = false;
1286: this .keep_then_statement_on_same_line = false;
1287: this .number_of_empty_lines_to_preserve = 1;
1288: this .put_empty_statement_on_new_line = false;
1289: this .tab_size = 4;
1290: this .page_width = 80;
1291: this .use_tab = true; // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=49081
1292: this .wrapBeforeBinaryOperator = true;
1293: this .never_indent_block_comments_on_first_column = false;
1294: this .never_indent_line_comments_on_first_column = false;
1295: }
1296: }
|