Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Thienel2012-08-11 12:27:21 -0400
committerFlorian Thienel2012-08-11 12:27:21 -0400
commit331829ed0be9b15ad9a51c4647e5247ca1d28b7a (patch)
tree566387f92e2abe1cdc68051b4f66fc3697dea797 /org.eclipse.vex.docbook
parentf9c4ec56202398307aa40ec0cbdc981d54d3a3b4 (diff)
downloadorg.eclipse.mylyn.docs.vex-331829ed0be9b15ad9a51c4647e5247ca1d28b7a.tar.gz
org.eclipse.mylyn.docs.vex-331829ed0be9b15ad9a51c4647e5247ca1d28b7a.tar.xz
org.eclipse.mylyn.docs.vex-331829ed0be9b15ad9a51c4647e5247ca1d28b7a.zip
apply project specific formatting and "clean code" conventions
Signed-off-by: Florian Thienel <florian@thienel.org>
Diffstat (limited to 'org.eclipse.vex.docbook')
-rw-r--r--org.eclipse.vex.docbook/.settings/org.eclipse.jdt.core.prefs303
-rw-r--r--org.eclipse.vex.docbook/.settings/org.eclipse.jdt.ui.prefs60
-rw-r--r--org.eclipse.vex.docbook/src/org/eclipse/vex/docbook/DocBookOutlineProvider.java431
3 files changed, 560 insertions, 234 deletions
diff --git a/org.eclipse.vex.docbook/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.vex.docbook/.settings/org.eclipse.jdt.core.prefs
index 1114dc9c..89d4b848 100644
--- a/org.eclipse.vex.docbook/.settings/org.eclipse.jdt.core.prefs
+++ b/org.eclipse.vex.docbook/.settings/org.eclipse.jdt.core.prefs
@@ -1,12 +1,291 @@
-#Sat Nov 08 19:56:50 GMT 2008
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
+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_resources_in_try=80
+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.alignment_for_union_type_in_multicatch=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=false
+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=120
+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_try=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_semicolon_in_try_resources=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_try=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_try=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_semicolon_in_try_resources=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=200
+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_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
diff --git a/org.eclipse.vex.docbook/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.vex.docbook/.settings/org.eclipse.jdt.ui.prefs
index c0ee7404..af7f0bb9 100644
--- a/org.eclipse.vex.docbook/.settings/org.eclipse.jdt.ui.prefs
+++ b/org.eclipse.vex.docbook/.settings/org.eclipse.jdt.ui.prefs
@@ -1,3 +1,57 @@
-#Tue Jul 17 17:38:39 CEST 2007
-eclipse.preferences.version=1
-internal.default.compliance=default
+cleanup.add_default_serial_version_id=true
+cleanup.add_generated_serial_version_id=false
+cleanup.add_missing_annotations=true
+cleanup.add_missing_deprecated_annotations=true
+cleanup.add_missing_methods=true
+cleanup.add_missing_nls_tags=false
+cleanup.add_missing_override_annotations=true
+cleanup.add_missing_override_annotations_interface_methods=true
+cleanup.add_serial_version_id=true
+cleanup.always_use_blocks=true
+cleanup.always_use_parentheses_in_expressions=false
+cleanup.always_use_this_for_non_static_field_access=false
+cleanup.always_use_this_for_non_static_method_access=false
+cleanup.convert_to_enhanced_for_loop=true
+cleanup.correct_indentation=true
+cleanup.format_source_code=true
+cleanup.format_source_code_changes_only=false
+cleanup.make_local_variable_final=true
+cleanup.make_parameters_final=true
+cleanup.make_private_fields_final=true
+cleanup.make_type_abstract_if_missing_method=false
+cleanup.make_variable_declarations_final=true
+cleanup.never_use_blocks=false
+cleanup.never_use_parentheses_in_expressions=true
+cleanup.organize_imports=true
+cleanup.qualify_static_field_accesses_with_declaring_class=false
+cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+cleanup.qualify_static_member_accesses_with_declaring_class=true
+cleanup.qualify_static_method_accesses_with_declaring_class=false
+cleanup.remove_private_constructors=true
+cleanup.remove_trailing_whitespaces=true
+cleanup.remove_trailing_whitespaces_all=true
+cleanup.remove_trailing_whitespaces_ignore_empty=false
+cleanup.remove_unnecessary_casts=true
+cleanup.remove_unnecessary_nls_tags=true
+cleanup.remove_unused_imports=true
+cleanup.remove_unused_local_variables=false
+cleanup.remove_unused_private_fields=true
+cleanup.remove_unused_private_members=false
+cleanup.remove_unused_private_methods=true
+cleanup.remove_unused_private_types=true
+cleanup.sort_members=false
+cleanup.sort_members_all=false
+cleanup.use_blocks=true
+cleanup.use_blocks_only_for_return_and_throw=false
+cleanup.use_parentheses_in_expressions=true
+cleanup.use_this_for_non_static_field_access=true
+cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+cleanup.use_this_for_non_static_method_access=true
+cleanup.use_this_for_non_static_method_access_only_if_necessary=true
+cleanup_profile=_Vex
+cleanup_settings_version=2
+eclipse.preferences.version=1
+formatter_profile=_Vex
+formatter_settings_version=12
+internal.default.compliance=default
diff --git a/org.eclipse.vex.docbook/src/org/eclipse/vex/docbook/DocBookOutlineProvider.java b/org.eclipse.vex.docbook/src/org/eclipse/vex/docbook/DocBookOutlineProvider.java
index cad74d2e..1d156241 100644
--- a/org.eclipse.vex.docbook/src/org/eclipse/vex/docbook/DocBookOutlineProvider.java
+++ b/org.eclipse.vex.docbook/src/org/eclipse/vex/docbook/DocBookOutlineProvider.java
@@ -29,226 +29,219 @@ import org.eclipse.vex.ui.internal.outline.IOutlineProvider;
* Provides an outline of the sections of a DocBook document.
*/
public class DocBookOutlineProvider implements IOutlineProvider {
-
- public void init(VexEditor editor) {
- }
-
- public ITreeContentProvider getContentProvider() {
- return this.contentProvider;
- }
-
- public IBaseLabelProvider getLabelProvider() {
- return this.labelProvider;
- }
-
- public Element getOutlineElement(final Element child) {
- Element element = child;
- while (( element.getParent() != null)
- && !isTitledElement(element) ) {
- element = element.getParent();
- }
-
- return element;
- }
-
- private final ITreeContentProvider contentProvider = new ITreeContentProvider() {
-
- public void dispose() {
- }
-
- public void inputChanged(final Viewer viewer, final Object oldInput, final Object newInput) {
- }
-
- public Object[] getChildren(final Object parentElement) {
- return getOutlineChildren((Element) parentElement);
- }
-
- public Object getParent(final Object element) {
- final Element parent = ((Element) element).getParent();
- if (parent == null) {
- return element;
- } else {
- return getOutlineElement(parent);
- }
- }
-
- public boolean hasChildren(final Object element) {
- return getOutlineChildren((Element) element).length > 0;
- }
-
- public Object[] getElements(final Object inputElement) {
- final Document document = (Document) inputElement;
- return new Object[] { document.getRootElement() };
- }
-
- };
-
- /**
- * Returns an array of the children of the given element that represent
- * nodes in the outline. These are elements such as "section" that
- * contain "title" elements that we can use as label content.
- * @param element
- * @return
- */
- private Element[] getOutlineChildren(final Element element) {
- final List<Element> children = new ArrayList<Element>();
- for (Element child : element.getChildElements()) {
- if (titledElements.contains(child.getLocalName())) {
- children.add(child);
- }
+
+ public void init(final VexEditor editor) {
+ }
+
+ public ITreeContentProvider getContentProvider() {
+ return contentProvider;
+ }
+
+ public IBaseLabelProvider getLabelProvider() {
+ return labelProvider;
+ }
+
+ public Element getOutlineElement(final Element child) {
+ Element element = child;
+ while (element.getParent() != null && !isTitledElement(element)) {
+ element = element.getParent();
+ }
+
+ return element;
+ }
+
+ private final ITreeContentProvider contentProvider = new ITreeContentProvider() {
+
+ public void dispose() {
+ }
+
+ public void inputChanged(final Viewer viewer, final Object oldInput, final Object newInput) {
+ }
+
+ public Object[] getChildren(final Object parentElement) {
+ return getOutlineChildren((Element) parentElement);
+ }
+
+ public Object getParent(final Object element) {
+ final Element parent = ((Element) element).getParent();
+ if (parent == null) {
+ return element;
+ } else {
+ return getOutlineElement(parent);
+ }
+ }
+
+ public boolean hasChildren(final Object element) {
+ return getOutlineChildren((Element) element).length > 0;
+ }
+
+ public Object[] getElements(final Object inputElement) {
+ final Document document = (Document) inputElement;
+ return new Object[] { document.getRootElement() };
+ }
+
+ };
+
+ /**
+ * Returns an array of the children of the given element that represent nodes in the outline. These are elements
+ * such as "section" that contain "title" elements that we can use as label content.
+ *
+ * @param element
+ * @return
+ */
+ private Element[] getOutlineChildren(final Element element) {
+ final List<Element> children = new ArrayList<Element>();
+ for (final Element child : element.getChildElements()) {
+ if (titledElements.contains(child.getLocalName())) {
+ children.add(child);
+ }
+ }
+ return children.toArray(new Element[children.size()]);
+ }
+
+ private final ILabelProvider labelProvider = new LabelProvider() {
+ @Override
+ public String getText(final Object o) {
+ final Element e = (Element) o;
+ Element titleChild = findChild(e, "title");
+ if (titleChild != null) {
+ return titleChild.getText();
+ } else {
+ final Element infoChild = findChild(e, e.getLocalName() + "info");
+ if (infoChild != null) {
+ titleChild = findChild(infoChild, "title");
+ if (titleChild != null) {
+ return titleChild.getText();
+ }
+ }
+ }
+ return e.getLocalName();
+ }
+ };
+
+ /**
+ * Returns a value from a map of tag names that contain title elements The tags all have a similar characteristic.
+ * Their content model includes a <title/> element as the first or second child.
+ *
+ * For simplicity, we assume that the document is valid w.r.t. the DTD and thus the 'title' element is optional and
+ * is one of the first two elements inside the given element.
+ *
+ * @param element
+ * @return
+ */
+ private boolean isTitledElement(final Element e) {
+
+ if (titledElements.contains(e.getLocalName()) || e.getParent() == null) {
+ final List<Element> children = e.getChildElements();
+ if (children.size() > 0 && children.get(0).getLocalName().equals("title") || children.size() > 1 && children.get(1).getLocalName().equals("title")) {
+ return true;
+ }
}
- return children.toArray(new Element[children.size()]);
- }
-
-
- private final ILabelProvider labelProvider = new LabelProvider() {
- public String getText(final Object o) {
- final Element e = (Element) o;
- Element titleChild = findChild(e, "title");
- if (titleChild != null) {
- return titleChild.getText();
- } else {
- Element infoChild = findChild(e, e.getLocalName() + "info");
- if (infoChild != null) {
- titleChild = findChild(infoChild, "title");
- if (titleChild != null) {
- return titleChild.getText();
- }
- }
- }
- return e.getLocalName();
- }
- };
-
- /**
- * Returns a value from a map of tag names that contain title elements
- * The tags all have a similar characteristic. Their content model
- * includes a <title/> element as the first or second child.
- *
- * For simplicity, we assume that the document is valid w.r.t. the DTD
- * and thus the 'title' element is optional and is one of the first two
- * elements inside the given element.
- *
- * @param element
- * @return
- */
- private boolean isTitledElement( final Element e ) {
-
- if( titledElements.contains(e.getLocalName() )
- || e.getParent() == null ) {
- final List<Element> children = e.getChildElements();
- if( (children.size() > 0 && children.get(0).getLocalName().equals("title"))
- || (children.size() > 1 && children.get(1).getLocalName().equals("title"))
- ) {
- return true;
- }
- }
- return false;
- }
-
- /**
- * Finds the first child of the given element with the given name. Returns
- * null if none found. We should move this to XPath when we gain that
- * facility.
- */
- private Element findChild(Element parent, String childName) {
- for (Element child : parent.getChildElements()) {
- if (child.getLocalName().equals(childName)) {
- return child;
- }
+ return false;
+ }
+
+ /**
+ * Finds the first child of the given element with the given name. Returns null if none found. We should move this
+ * to XPath when we gain that facility.
+ */
+ private Element findChild(final Element parent, final String childName) {
+ for (final Element child : parent.getChildElements()) {
+ if (child.getLocalName().equals(childName)) {
+ return child;
+ }
}
- return null;
- }
-
- private final static int MAPSIZE = 101; // prime greater than 65/.80
-
- private final static HashSet<String> titledElements = new HashSet<String>(MAPSIZE);
-
- static {
- // Comment on each line indicates tags content model if different than title
- // We are only interested in location of title tag within Content Model
- // so any extra following content is ignored.
-
-// In general, it is impossible to keep this sort of table accurate and
-// up-to-date for more than the most basic of cases. It would be better
-// to extract this information from the DTD for the document.
-
-// For the moment, it is observed that this imperfect method works for
-// vast majority of DocBook documents.
-
- titledElements.add("abstract"); // title?
- titledElements.add("article");
- // titledElements.add("articleinfo");
- titledElements.add("appendix");
- // titledElements.add("authorblurb"); // title?
- // titledElements.add("bibliodiv");
- // titledElements.add("calloutlist");
- // titledElements.add("caution"); // title?
- titledElements.add("chapter"); // docinfo?, title
- // titledElements.add("colophon");
- // titledElements.add("constraintdef");
- // titledElements.add("dedication");
-
- // titledElements.add("equation"); // blockinfo?, title
- // titledElements.add("example"); // blockinfo?, title
- // titledElements.add("figure"); // blockinfo?, title
- titledElements.add("glossary"); // glossaryinfo?, title
- // titledElements.add("glossdiv");
- // titledElements.add("glosslist"); // blockinfo?, title
- // titledElements.add("important"); // title?
- // titledElements.add("index"); // indexinfo, title
- // titledElements.add("indexdiv");
- // titledElements.add("itemizedlist"); // blockinfo?, title
-
- // titledElements.add("legalnotice"); // blockinfo?, title
- // titledElements.add("lot"); // beginpage?, title
- // titledElements.add("msg"); // title?
- // titledElements.add("msgexplan"); // title?
- // titledElements.add("msgmain"); // title?
- // titledElements.add("msgrel"); // title?
- // titledElements.add("msgset");
- // titledElements.add("msgsub"); // title?
- // titledElements.add("note"); // title?
- // titledElements.add("orderedlist"); // blockinfo?, title
-
- titledElements.add("part"); // beginpage?, partinfo?, title
- titledElements.add("partintro");
- // titledElements.add("personblurb"); // title?
- titledElements.add("preface"); // beginpage?, prefaceinfo?, title
- // titledElements.add("procedure"); // blockinfo?, title
- // titledElements.add("productionset");
- // titledElements.add("qandadiv"); // blockinfo?, title
- // titledElements.add("qandaset"); // blockinfo?, title
- // titledElements.add("reference"); // beginpage?, referenceinfo?, title
- // titledElements.add("refsect1"); // refsect1info?, title
-
- // titledElements.add("refsect2"); // refsect2info, title
- // titledElements.add("refsect3"); // refsect3info, title
- // titledElements.add("refsection"); // refsectioninfo?, title
- // titledElements.add("refsynopsisdiv"); // refsynopsisdivinfo?, title
- titledElements.add("sect1"); // sect1info?, title
- titledElements.add("sect2"); // sect2info?, title
- titledElements.add("sect3"); // sect3info?, title
- titledElements.add("sect4"); // sect4info?, title
- titledElements.add("sect5"); // sect5info?, title
- titledElements.add("section"); // sectioninfo?, title
-
- // titledElements.add("segmentedlist");
- // titledElements.add("set");
- // titledElements.add("setindex"); // setindexinfo?, title
- // titledElements.add("sidebar"); // sidebarinfo?, title
- titledElements.add("simplesect");
- // titledElements.add("step"); // table?
- // titledElements.add("table"); // blockinfo?, title
- // titledElements.add("task"); // blockinfo?, title
- // titledElements.add("taskprerequisites");// blockinfo?, title
- // titledElements.add("taskrelated"); // blockinfo?, title
-
- // titledElements.add("tasksummary"); // blockinfo?, title
- // titledElements.add("tip"); // title?
- titledElements.add("toc"); // beginpage?, title
- // titledElements.add("variablelist"); // blockinfo?, title
- // titledElements.add("warning"); // title?
- }
+ return null;
+ }
+
+ private final static int MAPSIZE = 101; // prime greater than 65/.80
+
+ private final static HashSet<String> titledElements = new HashSet<String>(MAPSIZE);
+
+ static {
+ // Comment on each line indicates tags content model if different than title
+ // We are only interested in location of title tag within Content Model
+ // so any extra following content is ignored.
+
+ // In general, it is impossible to keep this sort of table accurate and
+ // up-to-date for more than the most basic of cases. It would be better
+ // to extract this information from the DTD for the document.
+
+ // For the moment, it is observed that this imperfect method works for
+ // vast majority of DocBook documents.
+
+ titledElements.add("abstract"); // title?
+ titledElements.add("article");
+ // titledElements.add("articleinfo");
+ titledElements.add("appendix");
+ // titledElements.add("authorblurb"); // title?
+ // titledElements.add("bibliodiv");
+ // titledElements.add("calloutlist");
+ // titledElements.add("caution"); // title?
+ titledElements.add("chapter"); // docinfo?, title
+ // titledElements.add("colophon");
+ // titledElements.add("constraintdef");
+ // titledElements.add("dedication");
+
+ // titledElements.add("equation"); // blockinfo?, title
+ // titledElements.add("example"); // blockinfo?, title
+ // titledElements.add("figure"); // blockinfo?, title
+ titledElements.add("glossary"); // glossaryinfo?, title
+ // titledElements.add("glossdiv");
+ // titledElements.add("glosslist"); // blockinfo?, title
+ // titledElements.add("important"); // title?
+ // titledElements.add("index"); // indexinfo, title
+ // titledElements.add("indexdiv");
+ // titledElements.add("itemizedlist"); // blockinfo?, title
+
+ // titledElements.add("legalnotice"); // blockinfo?, title
+ // titledElements.add("lot"); // beginpage?, title
+ // titledElements.add("msg"); // title?
+ // titledElements.add("msgexplan"); // title?
+ // titledElements.add("msgmain"); // title?
+ // titledElements.add("msgrel"); // title?
+ // titledElements.add("msgset");
+ // titledElements.add("msgsub"); // title?
+ // titledElements.add("note"); // title?
+ // titledElements.add("orderedlist"); // blockinfo?, title
+
+ titledElements.add("part"); // beginpage?, partinfo?, title
+ titledElements.add("partintro");
+ // titledElements.add("personblurb"); // title?
+ titledElements.add("preface"); // beginpage?, prefaceinfo?, title
+ // titledElements.add("procedure"); // blockinfo?, title
+ // titledElements.add("productionset");
+ // titledElements.add("qandadiv"); // blockinfo?, title
+ // titledElements.add("qandaset"); // blockinfo?, title
+ // titledElements.add("reference"); // beginpage?, referenceinfo?, title
+ // titledElements.add("refsect1"); // refsect1info?, title
+
+ // titledElements.add("refsect2"); // refsect2info, title
+ // titledElements.add("refsect3"); // refsect3info, title
+ // titledElements.add("refsection"); // refsectioninfo?, title
+ // titledElements.add("refsynopsisdiv"); // refsynopsisdivinfo?, title
+ titledElements.add("sect1"); // sect1info?, title
+ titledElements.add("sect2"); // sect2info?, title
+ titledElements.add("sect3"); // sect3info?, title
+ titledElements.add("sect4"); // sect4info?, title
+ titledElements.add("sect5"); // sect5info?, title
+ titledElements.add("section"); // sectioninfo?, title
+
+ // titledElements.add("segmentedlist");
+ // titledElements.add("set");
+ // titledElements.add("setindex"); // setindexinfo?, title
+ // titledElements.add("sidebar"); // sidebarinfo?, title
+ titledElements.add("simplesect");
+ // titledElements.add("step"); // table?
+ // titledElements.add("table"); // blockinfo?, title
+ // titledElements.add("task"); // blockinfo?, title
+ // titledElements.add("taskprerequisites");// blockinfo?, title
+ // titledElements.add("taskrelated"); // blockinfo?, title
+
+ // titledElements.add("tasksummary"); // blockinfo?, title
+ // titledElements.add("tip"); // title?
+ titledElements.add("toc"); // beginpage?, title
+ // titledElements.add("variablelist"); // blockinfo?, title
+ // titledElements.add("warning"); // title?
+ }
}

Back to the top