Skip to content
Browse files

move for types

  • Loading branch information...
1 parent 6021afe commit 9e39aa5ad7800ddca91d473a35cb392c5de1d293 @mancereus committed Aug 5, 2011
View
274 .settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,274 @@
+#Fri Aug 05 21:29:53 CEST 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=80
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=120
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=tab
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
View
4 .settings/org.eclipse.jdt.ui.prefs
@@ -1,6 +1,8 @@
-#Fri Aug 05 20:53:56 CEST 2011
+#Fri Aug 05 21:29:53 CEST 2011
eclipse.preferences.version=1
editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
+formatter_profile=_chessit
+formatter_settings_version=12
sp_cleanup.add_default_serial_version_id=true
sp_cleanup.add_generated_serial_version_id=false
sp_cleanup.add_missing_annotations=true
View
160 src/main/java/de/db12/game/chessit/shared/game/ChessMeGame.java
@@ -29,31 +29,24 @@ public int dir() {
}
public enum Stone {
- whiteking(Color.white, Type.king), whitequeen(Color.white, Type.queen), whitepawn1(
- Color.white, Type.pawn), whitepawn2(Color.white, Type.pawn), whitepawn3(
- Color.white, Type.pawn), whitepawn4(Color.white, Type.pawn), whitepawn5(
- Color.white, Type.pawn), whitepawn6(Color.white, Type.pawn), whitepawn7(
- Color.white, Type.pawn), whitepawn8(Color.white, Type.pawn), whiterook1(
- Color.white, Type.rook), whiterook2(Color.white, Type.rook), whitebishop1(
- Color.white, Type.bishop), whitebishop2(Color.white,
- Type.bishop), whitehorse1(Color.white, Type.horse), whitehorse2(
- Color.white, Type.horse), blackking(Color.black, Type.king), blackqueen(
- Color.black, Type.queen), blackpawn1(Color.black, Type.pawn), blackpawn2(
- Color.black, Type.pawn), blackpawn3(Color.black, Type.pawn), blackpawn4(
- Color.black, Type.pawn), blackpawn5(Color.black, Type.pawn), blackpawn6(
- Color.black, Type.pawn), blackpawn7(Color.black, Type.pawn), blackpawn8(
- Color.black, Type.pawn), blackrook1(Color.black, Type.rook), blackrook2(
- Color.black, Type.rook), blackbishop1(Color.black, Type.bishop), blackbishop2(
- Color.black, Type.bishop), blackhorse1(Color.black, Type.horse), blackhorse2(
- Color.black, Type.horse);
+ whiteking(Color.white, Type.king), whitequeen(Color.white, Type.queen), whitepawn1(Color.white, Type.pawn), whitepawn2(
+ Color.white, Type.pawn), whitepawn3(Color.white, Type.pawn), whitepawn4(Color.white, Type.pawn), whitepawn5(
+ Color.white, Type.pawn), whitepawn6(Color.white, Type.pawn), whitepawn7(Color.white, Type.pawn), whitepawn8(
+ Color.white, Type.pawn), whiterook1(Color.white, Type.rook), whiterook2(Color.white, Type.rook), whitebishop1(
+ Color.white, Type.bishop), whitebishop2(Color.white, Type.bishop), whitehorse1(Color.white, Type.horse), whitehorse2(
+ Color.white, Type.horse), blackking(Color.black, Type.king), blackqueen(Color.black, Type.queen), blackpawn1(
+ Color.black, Type.pawn), blackpawn2(Color.black, Type.pawn), blackpawn3(Color.black, Type.pawn), blackpawn4(
+ Color.black, Type.pawn), blackpawn5(Color.black, Type.pawn), blackpawn6(Color.black, Type.pawn), blackpawn7(
+ Color.black, Type.pawn), blackpawn8(Color.black, Type.pawn), blackrook1(Color.black, Type.rook), blackrook2(
+ Color.black, Type.rook), blackbishop1(Color.black, Type.bishop), blackbishop2(Color.black, Type.bishop), blackhorse1(
+ Color.black, Type.horse), blackhorse2(Color.black, Type.horse);
public static List<Stone> getAllStones(final Color color) {
- Iterable<Stone> filter = Iterables.filter(Arrays.asList(values()),
- new Predicate<Stone>() {
- @Override
- public boolean apply(Stone arg0) {
- return arg0.color == color;
- }
- });
+ Iterable<Stone> filter = Iterables.filter(Arrays.asList(values()), new Predicate<Stone>() {
+ @Override
+ public boolean apply(Stone arg0) {
+ return arg0.color == color;
+ }
+ });
List<Stone> ret = new ArrayList<Stone>();
Iterables.addAll(ret, filter);
@@ -78,102 +71,86 @@ public String toString() {
public enum Type {
king("k") {
@Override
- public List<BoardField> getFields(ChessMeBoard board,
- BoardField source, int dir) {
+ public List<BoardField> getFields(ChessMeBoard board, BoardField source, int dir) {
List<BoardField> targets = Lists.newArrayList();
- targets.add(board.getField(source.getX() - 1, source.getY()));
- targets.add(board.getField(source.getX() + 1, source.getY()));
- targets.add(board.getField(source.getX() - 1, source.getY() + 1
- * dir));
- targets.add(board.getField(source.getX() + 1, source.getY() + 1
- * dir));
- targets.add(board.getField(source.getX() + 1, source.getY() + 1
- * dir));
+ checkField(targets, board, source.getX() - 1, source.getY());
+ checkField(targets, board, source.getX() + 1, source.getY());
+ checkField(targets, board, source.getX() - 1, source.getY() + dir);
+ checkField(targets, board, source.getX() + 1, source.getY() + dir);
+ checkField(targets, board, source.getX(), source.getY() + dir);
return targets;
}
},
queen("q") {
@Override
- public List<BoardField> getFields(ChessMeBoard board,
- BoardField source, int dir) {
+ public List<BoardField> getFields(ChessMeBoard board, BoardField source, int dir) {
List<BoardField> targets = Lists.newArrayList();
- targets.add(board.getField(source.getX() - 1, source.getY()));
- targets.add(board.getField(source.getX() + 1, source.getY()));
- targets.add(board.getField(source.getX() - 1, source.getY() + 1
- * dir));
- targets.add(board.getField(source.getX() + 1, source.getY() + 1
- * dir));
- targets.add(board.getField(source.getX() + 1, source.getY() + 1
- * dir));
+ for (int i = 0; i < 4; i++) {
+ checkField(targets, board, source.getX() - i, source.getY() - i);
+ checkField(targets, board, source.getX() - i, source.getY());
+ checkField(targets, board, source.getX() - i, source.getY() + i);
+ checkField(targets, board, source.getX(), source.getY() - i);
+ checkField(targets, board, source.getX(), source.getY() + i);
+ checkField(targets, board, source.getX() + i, source.getY() - i);
+ checkField(targets, board, source.getX() + i, source.getY());
+ checkField(targets, board, source.getX() + i, source.getY() + i);
+ }
return targets;
}
},
pawn("p") {
@Override
- public List<BoardField> getFields(ChessMeBoard board,
- BoardField source, int dir) {
+ public List<BoardField> getFields(ChessMeBoard board, BoardField source, int dir) {
List<BoardField> targets = Lists.newArrayList();
- targets.add(board.getField(source.getX() - 1, source.getY()));
- targets.add(board.getField(source.getX() + 1, source.getY()));
- targets.add(board.getField(source.getX() - 1, source.getY() + 1
- * dir));
- targets.add(board.getField(source.getX() + 1, source.getY() + 1
- * dir));
- targets.add(board.getField(source.getX() + 1, source.getY() + 1
- * dir));
+ checkField(targets, board, source.getX() - 1, source.getY() + dir);
+ checkField(targets, board, source.getX() + 1, source.getY() + dir);
+ checkField(targets, board, source.getX(), source.getY() + dir);
return targets;
}
},
rook("r") {
@Override
- public List<BoardField> getFields(ChessMeBoard board,
- BoardField source, int dir) {
+ public List<BoardField> getFields(ChessMeBoard board, BoardField source, int dir) {
List<BoardField> targets = Lists.newArrayList();
- targets.add(board.getField(source.getX() - 1, source.getY()));
- targets.add(board.getField(source.getX() + 1, source.getY()));
- targets.add(board.getField(source.getX() - 1, source.getY() + 1
- * dir));
- targets.add(board.getField(source.getX() + 1, source.getY() + 1
- * dir));
- targets.add(board.getField(source.getX() + 1, source.getY() + 1
- * dir));
+ for (int i = 0; i < 4; i++) {
+ checkField(targets, board, source.getX() - i, source.getY());
+ checkField(targets, board, source.getX(), source.getY() - i);
+ checkField(targets, board, source.getX(), source.getY() + i);
+ checkField(targets, board, source.getX() + i, source.getY());
+ }
return targets;
}
},
bishop("b") {
@Override
- public List<BoardField> getFields(ChessMeBoard board,
- BoardField source, int dir) {
+ public List<BoardField> getFields(ChessMeBoard board, BoardField source, int dir) {
List<BoardField> targets = Lists.newArrayList();
- targets.add(board.getField(source.getX() - 1, source.getY()));
- targets.add(board.getField(source.getX() + 1, source.getY()));
- targets.add(board.getField(source.getX() - 1, source.getY() + 1
- * dir));
- targets.add(board.getField(source.getX() + 1, source.getY() + 1
- * dir));
- targets.add(board.getField(source.getX() + 1, source.getY() + 1
- * dir));
+ for (int i = 0; i < 4; i++) {
+ checkField(targets, board, source.getX() - i, source.getY() - i);
+ checkField(targets, board, source.getX() - i, source.getY() + i);
+ checkField(targets, board, source.getX() + i, source.getY() - i);
+ checkField(targets, board, source.getX() + i, source.getY() + i);
+ }
return targets;
}
},
horse("h") {
@Override
- public List<BoardField> getFields(ChessMeBoard board,
- BoardField source, int dir) {
+ public List<BoardField> getFields(ChessMeBoard board, BoardField source, int dir) {
List<BoardField> targets = Lists.newArrayList();
- targets.add(board.getField(source.getX() - 1, source.getY()));
- targets.add(board.getField(source.getX() + 1, source.getY()));
- targets.add(board.getField(source.getX() - 1, source.getY() + 1
- * dir));
- targets.add(board.getField(source.getX() + 1, source.getY() + 1
- * dir));
- targets.add(board.getField(source.getX() + 1, source.getY() + 1
- * dir));
+ targets.add(board.getField(source.getX() - 2, source.getY() + 1));
+ targets.add(board.getField(source.getX() - 2, source.getY() - 1));
+ targets.add(board.getField(source.getX() + 2, source.getY() + 1));
+ targets.add(board.getField(source.getX() + 2, source.getY() - 1));
+ targets.add(board.getField(source.getX() - 1, source.getY() + 2));
+ targets.add(board.getField(source.getX() - 1, source.getY() - 2));
+ targets.add(board.getField(source.getX() + 1, source.getY() + 2));
+ targets.add(board.getField(source.getX() + 1, source.getY() - 2));
return targets;
}
@@ -185,12 +162,20 @@ public String toString() {
this.desc = desc;
}
+ protected void checkField(List<BoardField> targets, ChessMeBoard board, int x, int y) {
+ if (x < 0 || x >= board.boardsize || y < 0 || y >= board.boardsize)
+ return;
+ BoardField field = board.getField(x, y);
+ if (field.isReachable())
+ targets.add(field);
+
+ }
+
public String desc() {
return desc;
}
- public List<BoardField> getFields(ChessMeBoard board,
- BoardField boardField, int dir) {
+ public List<BoardField> getFields(ChessMeBoard board, BoardField boardField, int dir) {
List<BoardField> targets = Lists.newArrayList();
return targets;
@@ -234,8 +219,7 @@ public boolean isFinished() {
@Override
public String toString() {
- return board.toString() + "\nround: " + round + "\n"
- + players.get(0).showHand() + " "
+ return board.toString() + "\nround: " + round + "\n" + players.get(0).showHand() + " "
+ players.get(1).showHand();
}
}
View
23 src/main/java/de/db12/game/chessit/shared/game/ChessMePlayer.java
@@ -37,16 +37,11 @@ private BoardField getFieldWithStoneToMove() {
public void init() {
int modYpawn = color == Color.white ? 2 : -1;
int modYking = color == Color.white ? 3 : -2;
- board.setStone(board.getMiddleX(), board.getMiddleY() + modYking,
- takeStone(Type.king));
- board.setStone(board.getMiddleX() - 1, board.getMiddleY() + modYpawn,
- takeStone(Type.pawn));
- board.setStone(board.getMiddleX(), board.getMiddleY() + modYpawn,
- takeStone(Type.pawn));
- board.setStone(board.getMiddleX() + 1, board.getMiddleY() + modYpawn,
- takeStone(Type.pawn));
- board.setStone(board.getMiddleX() + 2, board.getMiddleY() + modYpawn,
- takeStone(Type.pawn));
+ board.setStone(board.getMiddleX(), board.getMiddleY() + modYking, takeStone(Type.king));
+ board.setStone(board.getMiddleX() - 1, board.getMiddleY() + modYpawn, takeStone(Type.pawn));
+ board.setStone(board.getMiddleX(), board.getMiddleY() + modYpawn, takeStone(Type.pawn));
+ board.setStone(board.getMiddleX() + 1, board.getMiddleY() + modYpawn, takeStone(Type.pawn));
+ board.setStone(board.getMiddleX() + 2, board.getMiddleY() + modYpawn, takeStone(Type.pawn));
}
@Override
@@ -69,18 +64,16 @@ public void move() {
private void moveFromTo(BoardField field, BoardField target) {
if (target.isEmpty())
- board.setComment("");
+ board.setComment("move " + field.getStone().toString());
else
- board.setComment(field.getStone().toString() + " kills "
- + target.getStone().toString());
+ board.setComment(field.getStone().toString() + " kills " + target.getStone().toString());
target.setStone(field.getStone());
field.setStone(null);
}
@Override
public String showHand() {
- return color.desc() + "(" + stack.size() + "): "
- + Joiner.on(" ").join(hand).toString();
+ return color.desc() + "(" + stack.size() + "): " + Joiner.on(" ").join(hand).toString();
}
@Override

0 comments on commit 9e39aa5

Please sign in to comment.
Something went wrong with that request. Please try again.