diff --git a/org.eclipse.mylyn.wikitext.markdown.core/.classpath b/org.eclipse.mylyn.wikitext.markdown.core/.classpath new file mode 100644 index 0000000..472ee29 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/org.eclipse.mylyn.wikitext.markdown.core/.project b/org.eclipse.mylyn.wikitext.markdown.core/.project new file mode 100644 index 0000000..d871076 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/.project @@ -0,0 +1,34 @@ + + + org.eclipse.mylyn.wikitext.markdown.core + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + org.eclipse.pde.api.tools.apiAnalysisBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + org.eclipse.pde.api.tools.apiAnalysisNature + + diff --git a/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.core.runtime.prefs new file mode 100644 index 0000000..5a0ad22 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.core.runtime.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +line.separator=\n diff --git a/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..e8f28d3 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,357 @@ +#Wed Mar 02 16:00:04 PST 2011 +eclipse.preferences.version=1 +org.eclipse.jdt.core.codeComplete.argumentPrefixes= +org.eclipse.jdt.core.codeComplete.argumentSuffixes= +org.eclipse.jdt.core.codeComplete.fieldPrefixes= +org.eclipse.jdt.core.codeComplete.fieldSuffixes= +org.eclipse.jdt.core.codeComplete.localPrefixes= +org.eclipse.jdt.core.codeComplete.localSuffixes= +org.eclipse.jdt.core.codeComplete.staticFieldPrefixes= +org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= +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.annotationSuperInterface=warning +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.autoboxing=ignore +org.eclipse.jdt.core.compiler.problem.deprecation=warning +org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled +org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled +org.eclipse.jdt.core.compiler.problem.discouragedReference=warning +org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore +org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled +org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore +org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning +org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning +org.eclipse.jdt.core.compiler.problem.forbiddenReference=error +org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning +org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning +org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore +org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore +org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore +org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning +org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore +org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning +org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning +org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning +org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning +org.eclipse.jdt.core.compiler.problem.nullReference=error +org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning +org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore +org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore +org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning +org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning +org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore +org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore +org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled +org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning +org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled +org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore +org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning +org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning +org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore +org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning +org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore +org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore +org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled +org.eclipse.jdt.core.compiler.problem.unusedImport=warning +org.eclipse.jdt.core.compiler.problem.unusedLabel=warning +org.eclipse.jdt.core.compiler.problem.unusedLocal=warning +org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled +org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning +org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning +org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning +org.eclipse.jdt.core.compiler.source=1.5 +org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled +org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,NORMAL +org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX +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=48 +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=80 +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=1 +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=false +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=true +org.eclipse.jdt.core.formatter.comment.format_block_comments=false +org.eclipse.jdt.core.formatter.comment.format_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=insert +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_member=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=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=true +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=true +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 diff --git a/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000..49f196e --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,64 @@ +#Wed Mar 02 16:00:06 PST 2011 +cleanup_settings_version=2 +eclipse.preferences.version=1 +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true +formatter_profile=_Mylyn based on Eclipse +formatter_settings_version=12 +internal.default.compliance=default +org.eclipse.jdt.ui.exception.name=e +org.eclipse.jdt.ui.gettersetter.use.is=true +org.eclipse.jdt.ui.javadoc=false +org.eclipse.jdt.ui.keywordthis=false +org.eclipse.jdt.ui.overrideannotation=true +org.eclipse.jdt.ui.text.custom_code_templates= +sp_cleanup.add_default_serial_version_id=true +sp_cleanup.add_generated_serial_version_id=false +sp_cleanup.add_missing_annotations=true +sp_cleanup.add_missing_deprecated_annotations=true +sp_cleanup.add_missing_methods=false +sp_cleanup.add_missing_nls_tags=false +sp_cleanup.add_missing_override_annotations=true +sp_cleanup.add_serial_version_id=false +sp_cleanup.always_use_blocks=true +sp_cleanup.always_use_parentheses_in_expressions=false +sp_cleanup.always_use_this_for_non_static_field_access=false +sp_cleanup.always_use_this_for_non_static_method_access=false +sp_cleanup.convert_to_enhanced_for_loop=true +sp_cleanup.correct_indentation=true +sp_cleanup.format_source_code=true +sp_cleanup.format_source_code_changes_only=false +sp_cleanup.make_local_variable_final=false +sp_cleanup.make_parameters_final=false +sp_cleanup.make_private_fields_final=true +sp_cleanup.make_type_abstract_if_missing_method=false +sp_cleanup.make_variable_declarations_final=true +sp_cleanup.never_use_blocks=false +sp_cleanup.never_use_parentheses_in_expressions=true +sp_cleanup.on_save_use_additional_actions=true +sp_cleanup.organize_imports=true +sp_cleanup.qualify_static_field_accesses_with_declaring_class=false +sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_with_declaring_class=true +sp_cleanup.qualify_static_method_accesses_with_declaring_class=false +sp_cleanup.remove_private_constructors=true +sp_cleanup.remove_trailing_whitespaces=true +sp_cleanup.remove_trailing_whitespaces_all=true +sp_cleanup.remove_trailing_whitespaces_ignore_empty=false +sp_cleanup.remove_unnecessary_casts=true +sp_cleanup.remove_unnecessary_nls_tags=true +sp_cleanup.remove_unused_imports=false +sp_cleanup.remove_unused_local_variables=false +sp_cleanup.remove_unused_private_fields=true +sp_cleanup.remove_unused_private_members=false +sp_cleanup.remove_unused_private_methods=true +sp_cleanup.remove_unused_private_types=true +sp_cleanup.sort_members=false +sp_cleanup.sort_members_all=false +sp_cleanup.use_blocks=true +sp_cleanup.use_blocks_only_for_return_and_throw=false +sp_cleanup.use_parentheses_in_expressions=false +sp_cleanup.use_this_for_non_static_field_access=false +sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true +sp_cleanup.use_this_for_non_static_method_access=false +sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.ltk.core.refactoring.prefs b/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.ltk.core.refactoring.prefs new file mode 100644 index 0000000..5e7f2bd --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.ltk.core.refactoring.prefs @@ -0,0 +1,3 @@ +#Tue Aug 18 22:42:26 PDT 2009 +eclipse.preferences.version=1 +org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false diff --git a/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.mylyn.tasks.ui.prefs b/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.mylyn.tasks.ui.prefs new file mode 100644 index 0000000..4e1095e --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.mylyn.tasks.ui.prefs @@ -0,0 +1,4 @@ +#Thu Jul 31 11:10:26 PDT 2008 +eclipse.preferences.version=1 +project.repository.kind=bugzilla +project.repository.url=https\://bugs.eclipse.org/bugs diff --git a/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.mylyn.team.ui.prefs b/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.mylyn.team.ui.prefs new file mode 100644 index 0000000..10d0afb --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.mylyn.team.ui.prefs @@ -0,0 +1,2 @@ +commit.comment.template=${task.key}\: ${task.description}\n\nTask-Url\: ${task.url} +eclipse.preferences.version=1 diff --git a/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.pde.prefs b/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.pde.prefs new file mode 100644 index 0000000..e8f2d56 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/.settings/org.eclipse.pde.prefs @@ -0,0 +1,18 @@ +#Tue Apr 15 11:07:59 PDT 2008 +compilers.incompatible-environment=1 +compilers.p.build=1 +compilers.p.deprecated=1 +compilers.p.discouraged-class=2 +compilers.p.missing-bundle-classpath-entries=1 +compilers.p.missing-packages=1 +compilers.p.no-required-att=0 +compilers.p.not-externalized-att=2 +compilers.p.unknown-attribute=0 +compilers.p.unknown-class=0 +compilers.p.unknown-element=0 +compilers.p.unknown-identifier=1 +compilers.p.unknown-resource=0 +compilers.p.unresolved-ex-points=0 +compilers.p.unresolved-import=0 +compilers.use-project=true +eclipse.preferences.version=1 diff --git a/org.eclipse.mylyn.wikitext.markdown.core/META-INF/MANIFEST.MF b/org.eclipse.mylyn.wikitext.markdown.core/META-INF/MANIFEST.MF new file mode 100644 index 0000000..4c630fc --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %Bundle-Name.0 +Bundle-SymbolicName: org.eclipse.mylyn.wikitext.markdown.core;singleton:=true +Bundle-Version: 1.8.0.qualifier +Bundle-Vendor: %Bundle-Vendor.0 +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Require-Bundle: org.eclipse.mylyn.wikitext.core;bundle-version="1.5.0", + org.eclipse.team.core;resolution:=optional +Export-Package: org.eclipse.mylyn.internal.wikitext.markdown.core.block;x-internal:=true, + org.eclipse.mylyn.internal.wikitext.markdown.core.validation;x-internal:=true, + org.eclipse.mylyn.wikitext.markdown.core +Bundle-Localization: plugin diff --git a/org.eclipse.mylyn.wikitext.markdown.core/META-INF/services/org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage b/org.eclipse.mylyn.wikitext.markdown.core/META-INF/services/org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage new file mode 100644 index 0000000..4fc60f3 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/META-INF/services/org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage @@ -0,0 +1 @@ +org.eclipse.mylyn.wikitext.markdown.core.MarkdownLanguage diff --git a/org.eclipse.mylyn.wikitext.markdown.core/about.html b/org.eclipse.mylyn.wikitext.markdown.core/about.html new file mode 100644 index 0000000..7b792ee --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/about.html @@ -0,0 +1,28 @@ + + + +About + + + +

About This Content

+ +

June 24, 2011

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") and different terms and conditions may +apply to your use of any object code in the Content. Check the Redistributor's license that was +provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise +indicated below, the terms and conditions of the EPL still apply to any source code in the Content +and such source code may be obtained at http://www.eclipse.org.

+ + + + diff --git a/org.eclipse.mylyn.wikitext.markdown.core/build.properties b/org.eclipse.mylyn.wikitext.markdown.core/build.properties new file mode 100644 index 0000000..ca604f5 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/build.properties @@ -0,0 +1,19 @@ +############################################################################### +# Copyright (c) 2012 Stefan Seelmann and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# Stefan Seelmann - initial API and implementation +############################################################################### +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + plugin.xml,\ + plugin.properties,\ + about.html + +src.includes=about.html diff --git a/org.eclipse.mylyn.wikitext.markdown.core/plugin.properties b/org.eclipse.mylyn.wikitext.markdown.core/plugin.properties new file mode 100644 index 0000000..2fc7729 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/plugin.properties @@ -0,0 +1,15 @@ +############################################################################### +# Copyright (c) 2012 Stefan Seelmann and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# Stefan Seelmann - initial API and implementation +############################################################################### + +Bundle-Vendor.0 = Eclipse Mylyn +Bundle-Name.0 = Mylyn WikiText Markdown + +content-type.name = Markdown WikiText Markup diff --git a/org.eclipse.mylyn.wikitext.markdown.core/plugin.xml b/org.eclipse.mylyn.wikitext.markdown.core/plugin.xml new file mode 100644 index 0000000..b2b3158 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/plugin.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.eclipse.mylyn.wikitext.markdown.core/pom.xml b/org.eclipse.mylyn.wikitext.markdown.core/pom.xml new file mode 100644 index 0000000..a04dcbd --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/pom.xml @@ -0,0 +1,29 @@ + + + 4.0.0 + + org.eclipse.mylyn.docs-parent + org.eclipse.mylyn.docs + 1.8.0-SNAPSHOT + + org.eclipse.mylyn.wikitext.markdown.core + 1.8.0-SNAPSHOT + eclipse-plugin + + + + org.eclipse.tycho + tycho-source-plugin + + + org.codehaus.mojo + findbugs-maven-plugin + + + org.apache.maven.plugins + maven-pmd-plugin + + + + diff --git a/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/CodeBlock.java b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/CodeBlock.java new file mode 100644 index 0000000..ec9343b --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/CodeBlock.java @@ -0,0 +1,82 @@ +/******************************************************************************* + * Copyright (c) 2012 Stefan Seelmann and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Seelmann - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.internal.wikitext.markdown.core.block; + +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +import org.eclipse.mylyn.wikitext.core.parser.Attributes; +import org.eclipse.mylyn.wikitext.core.parser.DocumentBuilder.BlockType; +import org.eclipse.mylyn.wikitext.core.parser.markup.Block; + +/** + * Markdown code block. + * + * @author Stefan Seelmann + */ +public class CodeBlock extends Block { + + private static final Pattern startPattern = Pattern.compile("(?: {4}|\\t)((?: {4}|\\t)*)(.*)"); //$NON-NLS-1$ + + private int blockLineCount = 0; + + @Override + public boolean canStart(String line, int lineOffset) { + if (lineOffset == 0) { + return startPattern.matcher(line).matches(); + } else { + return false; + } + } + + @Override + protected int processLineContent(String line, int offset) { + + // start of block + if (blockLineCount == 0) { + builder.beginBlock(BlockType.PREFORMATTED, new Attributes()); + builder.beginBlock(BlockType.CODE, new Attributes()); + } + + // extract the content + Matcher matcher = startPattern.matcher(line); + if (!matcher.matches()) { + setClosed(true); + return 0; + } + String intent = matcher.group(1); + String content = matcher.group(2); + + // next line, does not convert to line break + if (blockLineCount > 0) { + builder.characters("\n"); //$NON-NLS-1$ + } + + // emit, replace intention tabs by 4 spaces, encode ampersands (&) and angle brackets (< and >) + if (intent != null) { + builder.characters(intent.replace("\t", " ")); //$NON-NLS-1$ //$NON-NLS-2$ + } + builder.characters(content); + + blockLineCount++; + return -1; + } + + @Override + public void setClosed(boolean closed) { + if (closed && !isClosed()) { + builder.endBlock(); + builder.endBlock(); + } + super.setClosed(closed); + } +} diff --git a/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/HeadingBlock.java b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/HeadingBlock.java new file mode 100644 index 0000000..dfb423b --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/HeadingBlock.java @@ -0,0 +1,55 @@ +/******************************************************************************* + * Copyright (c) 2012 Stefan Seelmann and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Seelmann - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.internal.wikitext.markdown.core.block; + +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +import org.eclipse.mylyn.wikitext.core.parser.Attributes; +import org.eclipse.mylyn.wikitext.core.parser.markup.Block; + +/** + * Markdown headings. + * + * @author Stefan Seelmann + */ +public class HeadingBlock extends Block { + + private static final Pattern pattern = Pattern.compile("(#{1,6})\\s*(.+?)\\s*(?:#*\\s*)?"); //$NON-NLS-1$ + + private Matcher matcher; + + @Override + public boolean canStart(String line, int lineOffset) { + if (lineOffset == 0) { + matcher = pattern.matcher(line); + return matcher.matches(); + } else { + matcher = null; + return false; + } + } + + @Override + public int processLineContent(String line, int offset) { + int level = matcher.group(1).length(); + String text = matcher.group(2); + + builder.beginHeading(level, new Attributes()); + builder.characters(text); + builder.endHeading(); + + setClosed(true); + return -1; + } + +} diff --git a/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/HorizontalRuleBlock.java b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/HorizontalRuleBlock.java new file mode 100644 index 0000000..fa3577f --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/HorizontalRuleBlock.java @@ -0,0 +1,45 @@ +/******************************************************************************* + * Copyright (c) 2012 Stefan Seelmann and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Seelmann - initial API and implementation + *******************************************************************************/ +package org.eclipse.mylyn.internal.wikitext.markdown.core.block; + +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +import org.eclipse.mylyn.wikitext.core.parser.markup.Block; + +/** + * @author Stefan Seelmann + */ +public class HorizontalRuleBlock extends Block { + + private static final Pattern pattern = Pattern.compile("(\\*\\s*){3,}|(-\\s*){3,}|(_\\s*){3,}"); //$NON-NLS-1$ + + private Matcher matcher; + + @Override + public int processLineContent(String line, int offset) { + builder.charactersUnescaped("
"); //$NON-NLS-1$ + setClosed(true); + return -1; + } + + @Override + public boolean canStart(String line, int lineOffset) { + if (lineOffset == 0) { + matcher = pattern.matcher(line); + return matcher.matches(); + } else { + matcher = null; + return false; + } + } + +} diff --git a/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/InlineHtmlBlock.java b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/InlineHtmlBlock.java new file mode 100644 index 0000000..a9d0122 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/InlineHtmlBlock.java @@ -0,0 +1,42 @@ +/******************************************************************************* + * Copyright (c) 2012 Stefan Seelmann and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Seelmann - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.internal.wikitext.markdown.core.block; + +import org.eclipse.mylyn.wikitext.core.parser.markup.Block; + +/** + * Markdown inline HTML. + * + * @author Stefan Seelmann + */ +public class InlineHtmlBlock extends Block { + + @Override + public boolean canStart(String line, int lineOffset) { + return line.startsWith("<"); //$NON-NLS-1$ + } + + @Override + protected int processLineContent(String line, int offset) { + // empty line: start new block + if (markupLanguage.isEmptyLine(line)) { + setClosed(true); + return 0; + } + + builder.charactersUnescaped(line); + builder.characters("\n"); //$NON-NLS-1$ + + return -1; + } + +} diff --git a/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/ParagraphBlock.java b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/ParagraphBlock.java new file mode 100644 index 0000000..7bb5db6 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/ParagraphBlock.java @@ -0,0 +1,65 @@ +/******************************************************************************* + * Copyright (c) 2012 Stefan Seelmann and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Seelmann - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.internal.wikitext.markdown.core.block; + +import org.eclipse.mylyn.wikitext.core.parser.Attributes; +import org.eclipse.mylyn.wikitext.core.parser.DocumentBuilder.BlockType; +import org.eclipse.mylyn.wikitext.core.parser.markup.Block; + +/** + * Markdown default paragraph. + * + * @author Stefan Seelmann + */ +public class ParagraphBlock extends Block { + + private int blockLineCount = 0; + + @Override + public boolean canStart(String line, int lineOffset) { + blockLineCount = 0; + return true; + } + + @Override + protected int processLineContent(String line, int offset) { + // start of block + if (blockLineCount == 0) { + builder.beginBlock(BlockType.PARAGRAPH, new Attributes()); + } + + // empty line: start new block + if (markupLanguage.isEmptyLine(line)) { + setClosed(true); + return 0; + } + + // next line, does not convert to line break + if (blockLineCount > 0) { + builder.characters("\n"); //$NON-NLS-1$ + } + + getMarkupLanguage().emitMarkupLine(getParser(), state, line, offset); + + blockLineCount++; + return -1; + } + + @Override + public void setClosed(boolean closed) { + if (closed && !isClosed()) { + builder.endBlock(); + builder.characters("\n"); //$NON-NLS-1$ + } + super.setClosed(closed); + } +} diff --git a/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/QuoteBlock.java b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/QuoteBlock.java new file mode 100644 index 0000000..7e7d3f1 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/QuoteBlock.java @@ -0,0 +1,104 @@ +/******************************************************************************* + * Copyright (c) 2012 Stefan Seelmann and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Seelmann - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.internal.wikitext.markdown.core.block; + +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +import org.eclipse.mylyn.wikitext.core.parser.Attributes; +import org.eclipse.mylyn.wikitext.core.parser.DocumentBuilder.BlockType; +import org.eclipse.mylyn.wikitext.core.parser.markup.Block; + +/** + * Markdown blockquote. + * + * @author Stefan Seelmann + */ +public class QuoteBlock extends Block { + + private static final Pattern startPattern = Pattern.compile(">\\s*(.*)"); //$NON-NLS-1$ + + private static final Pattern linePattern = Pattern.compile("(?:>\\s*)?(.*)"); //$NON-NLS-1$ + + private int blockLineCount = 0; + + private Block nestedBlock = null; + + @Override + public boolean canStart(String line, int lineOffset) { + if (lineOffset == 0) { + return startPattern.matcher(line).matches(); + } else { + return false; + } + } + + @Override + protected int processLineContent(String line, int offset) { + + // start of block + if (blockLineCount == 0) { + builder.beginBlock(BlockType.QUOTE, new Attributes()); + } + + // empty line: end of block + if (markupLanguage.isEmptyLine(line)) { + setClosed(true); + return 0; + } + + // extract the content + Matcher matcher = linePattern.matcher(line); + if (!matcher.matches()) { + setClosed(true); + return 0; + } + String content = matcher.group(1); + + // determine nested block, at least the paragraph block must match + for (Block block : getMarkupLanguage().getBlocks()) { + if (block.canStart(content, 0)) { + if (nestedBlock != null && nestedBlock.getClass() != block.getClass()) { + nestedBlock.setClosed(true); + nestedBlock = null; + } + if (nestedBlock == null) { + nestedBlock = block.clone(); + nestedBlock.setParser(getParser()); + nestedBlock.setState(getState()); + } + break; + } + } + + // delegate content processing to nested block + int lineOffset = nestedBlock.processLine(content, 0); + if (nestedBlock.isClosed()) { + nestedBlock = null; + } + + blockLineCount++; + return -1; + } + + @Override + public void setClosed(boolean closed) { + if (nestedBlock != null) { + nestedBlock.setClosed(true); + nestedBlock = null; + } + if (closed && !isClosed()) { + builder.endBlock(); + } + super.setClosed(closed); + } +} diff --git a/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/UnderlinedHeadingBlock.java b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/UnderlinedHeadingBlock.java new file mode 100644 index 0000000..4261de0 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/block/UnderlinedHeadingBlock.java @@ -0,0 +1,72 @@ +/******************************************************************************* + * Copyright (c) 2012 Stefan Seelmann and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Seelmann - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.internal.wikitext.markdown.core.block; + +import java.util.regex.Pattern; + +import org.eclipse.mylyn.internal.wikitext.markdown.core.util.LookAheadReader; +import org.eclipse.mylyn.internal.wikitext.markdown.core.util.ReadAheadBlock; +import org.eclipse.mylyn.wikitext.core.parser.Attributes; +import org.eclipse.mylyn.wikitext.core.parser.markup.Block; + +/** + * Markdown underlined headings. + * + * @author Stefan Seelmann + */ +public class UnderlinedHeadingBlock extends Block implements ReadAheadBlock { + + private static final Pattern h1pattern = Pattern.compile("=+\\s*"); //$NON-NLS-1$ + + private static final Pattern h2pattern = Pattern.compile("-+\\s*"); //$NON-NLS-1$ + + private int blockLineCount; + + private int level; + + public boolean canStart(String line, int lineOffset, LookAheadReader lookAheadReader) { + blockLineCount = 0; + level = 0; + String nextLine = lookAheadReader.lookAhead(); + if (nextLine == null) { + return false; + } else if (h1pattern.matcher(nextLine).matches()) { + level = 1; + return true; + } else if (h2pattern.matcher(nextLine).matches()) { + level = 2; + return true; + } else { + return false; + } + } + + @Override + public boolean canStart(String line, int lineOffset) { + String message = "Read-ahead required, call canStart(String, int, LookAheadReader) instead."; //$NON-NLS-1$ + throw new UnsupportedOperationException(message); + } + + @Override + public int processLineContent(String line, int offset) { + if (blockLineCount == 0) { + builder.beginHeading(level, new Attributes()); + builder.characters(line); + } else { + builder.endHeading(); + setClosed(true); + } + + blockLineCount++; + return -1; + } +} diff --git a/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/phrase/BackslashEscapePhraseModifier.java b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/phrase/BackslashEscapePhraseModifier.java new file mode 100644 index 0000000..c3e76f5 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/phrase/BackslashEscapePhraseModifier.java @@ -0,0 +1,24 @@ +/******************************************************************************* + * Copyright (c) 2012 Stefan Seelmann and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Seelmann - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.internal.wikitext.markdown.core.phrase; + +import java.util.regex.Pattern; + +import org.eclipse.mylyn.wikitext.core.parser.markup.token.PatternLiteralReplacementToken; + +public class BackslashEscapePhraseModifier extends PatternLiteralReplacementToken { + + public BackslashEscapePhraseModifier(String token) { + super("(" + Pattern.quote("\\" + token) + ")", token); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + } + +} diff --git a/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/phrase/SimplePhraseModifier.java b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/phrase/SimplePhraseModifier.java new file mode 100644 index 0000000..f9f52d1 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/phrase/SimplePhraseModifier.java @@ -0,0 +1,59 @@ +/******************************************************************************* + * Copyright (c) 2012 Stefan Seelmann and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Seelmann - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.internal.wikitext.markdown.core.phrase; + +import java.util.regex.Pattern; + +import org.eclipse.mylyn.wikitext.core.parser.Attributes; +import org.eclipse.mylyn.wikitext.core.parser.DocumentBuilder.SpanType; +import org.eclipse.mylyn.wikitext.core.parser.markup.PatternBasedElement; +import org.eclipse.mylyn.wikitext.core.parser.markup.PatternBasedElementProcessor; + +public class SimplePhraseModifier extends PatternBasedElement { + + private final String delimiter; + + private final SpanType spanType; + + public SimplePhraseModifier(String delimiter, SpanType spanType) { + this.delimiter = delimiter; + // ignore + this.spanType = spanType; + } + + @Override + protected String getPattern(int groupOffset) { + String quotedDelimiter = Pattern.quote(delimiter); + return quotedDelimiter + " *" + "(.+?)" + " *" + quotedDelimiter; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + } + + @Override + protected int getPatternGroupCount() { + return 1; + } + + @Override + protected PatternBasedElementProcessor newProcessor() { + return new CodePhraseModifierProcessor(); + } + + private class CodePhraseModifierProcessor extends PatternBasedElementProcessor { + + @Override + public void emit() { + String content = group(1); + getBuilder().beginSpan(spanType, new Attributes()); + getMarkupLanguage().emitMarkupText(parser, state, content); + getBuilder().endSpan(); + } + } +} diff --git a/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/token/PreserverHtmlEntityToken.java b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/token/PreserverHtmlEntityToken.java new file mode 100644 index 0000000..419e3a7 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/token/PreserverHtmlEntityToken.java @@ -0,0 +1,40 @@ +/******************************************************************************* + * Copyright (c) 2012 Stefan Seelmann and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Seelmann - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.internal.wikitext.markdown.core.token; + +import org.eclipse.mylyn.wikitext.core.parser.markup.PatternBasedElement; +import org.eclipse.mylyn.wikitext.core.parser.markup.PatternBasedElementProcessor; +import org.eclipse.mylyn.wikitext.core.parser.markup.phrase.LiteralPhraseModifierProcessor; + +/** + * A phrase modifier that detects HTML and XML entities in the source. + * + * @author Stefan Seelmann + */ +public class PreserverHtmlEntityToken extends PatternBasedElement { + + @Override + protected String getPattern(int groupOffset) { + return "(&[A-Za-z]+;)"; //$NON-NLS-1$ + } + + @Override + protected PatternBasedElementProcessor newProcessor() { + return new LiteralPhraseModifierProcessor(false); + } + + @Override + protected int getPatternGroupCount() { + return 1; + } + +} diff --git a/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/util/DebugUtils.java b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/util/DebugUtils.java new file mode 100644 index 0000000..5904cb9 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/util/DebugUtils.java @@ -0,0 +1,21 @@ +/******************************************************************************* + * Copyright (c) 2012 Stefan Seelmann and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Seelmann - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.internal.wikitext.markdown.core.util; + +public class DebugUtils { + + public static void debug(String msg, Object... args) { + String formatted = String.format(msg, args); + System.out.println(formatted); + } + +} diff --git a/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/util/LookAheadReader.java b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/util/LookAheadReader.java new file mode 100644 index 0000000..7a7ba5c --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/util/LookAheadReader.java @@ -0,0 +1,60 @@ +/******************************************************************************* + * Copyright (c) 2012 Stefan Seelmann and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Seelmann - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.internal.wikitext.markdown.core.util; + +import java.io.IOException; +import java.io.StringReader; + +import org.eclipse.mylyn.wikitext.core.parser.markup.ContentState; +import org.eclipse.mylyn.wikitext.core.util.LocationTrackingReader; + +public class LookAheadReader { + + private ContentState state; + + private LocationTrackingReader reader; + + public void setContentState(ContentState state) { + if (mustInitReader(state)) { + this.state = state; + this.reader = new LocationTrackingReader(new StringReader(state.getMarkupContent())); + } + } + + private boolean mustInitReader(ContentState newState) { + if (state != newState) { + return true; + } + if (reader == null) { + return true; + } + if (reader.getLineNumber() >= state.getLineNumber()) { + return true; + } + return false; + } + + public String lookAhead() { + int lineNumber = state.getLineNumber(); + String nextLine = null; + while (reader.getLineNumber() < lineNumber) { + try { + nextLine = reader.readLine(); + } catch (IOException e) { + throw new RuntimeException(e); + } + } + + return nextLine; + } + +} diff --git a/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/util/ReadAheadBlock.java b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/util/ReadAheadBlock.java new file mode 100644 index 0000000..2db19e5 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/util/ReadAheadBlock.java @@ -0,0 +1,38 @@ +/******************************************************************************* + * Copyright (c) 2012 Stefan Seelmann and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Seelmann - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.internal.wikitext.markdown.core.util; + +import org.eclipse.mylyn.wikitext.core.parser.markup.Block; + +/** + * Markup blocks that require additional context in order to decide if they can start with a markup line. + * + * @author Stefan Seelmann + */ +public interface ReadAheadBlock extends Cloneable { + + /** + * Indicate if the block can start with the given markup line at the provided offset. The + * lookAheadReader can be used to ask for more context. + * + * @param line + * the line of markup to test + * @param lineOffset + * the offset at which the block should start processing + * @param lookAheadReader + * the look ahead reader to ask for more context + * @return true if the provided markup consists of a valid starting point for the block + * @see Block#canStart(String, int) + */ + boolean canStart(String line, int lineOffset, LookAheadReader lookAheadReader); + +} diff --git a/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/util/ReadAheadDispatcher.java b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/util/ReadAheadDispatcher.java new file mode 100644 index 0000000..8891a96 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/util/ReadAheadDispatcher.java @@ -0,0 +1,103 @@ +/******************************************************************************* + * Copyright (c) 2012 Stefan Seelmann and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Seelmann - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.internal.wikitext.markdown.core.util; + +import org.eclipse.mylyn.wikitext.core.parser.MarkupParser; +import org.eclipse.mylyn.wikitext.core.parser.markup.Block; +import org.eclipse.mylyn.wikitext.core.parser.markup.ContentState; + +/** + * Adapter {@link Block} for {@link ReadAheadBlock}s. + * + * @author Stefan Seelmann + */ +public class ReadAheadDispatcher extends Block { + + private final LookAheadReader lookAheadReader; + + private Block[] blocks; + + private Block dispatchedBlock; + + public ReadAheadDispatcher(Block... blocks) { + this.blocks = blocks; + this.lookAheadReader = new LookAheadReader(); + } + + @Override + public boolean canStart(String line, int lineOffset) { + dispatchedBlock = null; + return true; + } + + @Override + protected int processLineContent(String line, int offset) { + if (dispatchedBlock == null) { + lookAheadReader.setContentState(getState()); + for (Block block : blocks) { + if (block instanceof ReadAheadBlock) { + ReadAheadBlock raBlock = ReadAheadBlock.class.cast(block); + if (raBlock.canStart(line, offset, lookAheadReader)) { + dispatchedBlock = block; + break; + } + } else { + if (block.canStart(line, offset)) { + dispatchedBlock = block; + break; + } + } + } + } + + int result = dispatchedBlock.processLine(line, offset); + if (dispatchedBlock.isClosed()) { + setClosed(true); + } + return result; + } + + @Override + public void setClosed(boolean closed) { + dispatchedBlock.setClosed(closed); + super.setClosed(closed); + } + + @Override + public void setState(ContentState state) { + for (Block block : blocks) { + block.setState(state); + } + super.setState(state); + } + + @Override + public void setParser(MarkupParser parser) { + for (Block block : blocks) { + block.setParser(parser); + } + super.setParser(parser); + } + + @Override + public Block clone() { + ReadAheadDispatcher clone = (ReadAheadDispatcher) super.clone(); + Block[] clonedBlocks = new Block[blocks.length]; + int i = 0; + for (Block block : blocks) { + clonedBlocks[i++] = block.clone(); + } + clone.blocks = clonedBlocks; + return clone; + } + +} diff --git a/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/validation/MarkdownReferenceValidationRule.java b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/validation/MarkdownReferenceValidationRule.java new file mode 100644 index 0000000..a97c814 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/internal/wikitext/markdown/core/validation/MarkdownReferenceValidationRule.java @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2012 Stefan Seelmann and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Seelmann - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.internal.wikitext.markdown.core.validation; + +import org.eclipse.mylyn.wikitext.core.validation.ValidationProblem; +import org.eclipse.mylyn.wikitext.core.validation.ValidationRule; + +public class MarkdownReferenceValidationRule extends ValidationRule { + + public MarkdownReferenceValidationRule() { + } + + @Override + public ValidationProblem findProblem(String markup, int offset, int length) { + // TODO: implement + return null; + } + +} diff --git a/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/wikitext/markdown/core/MarkdownLanguage.java b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/wikitext/markdown/core/MarkdownLanguage.java new file mode 100644 index 0000000..59be938 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.core/src/org/eclipse/mylyn/wikitext/markdown/core/MarkdownLanguage.java @@ -0,0 +1,103 @@ +/******************************************************************************* + * Copyright (c) 2012 Stefan Seelmann and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Seelmann - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.wikitext.markdown.core; + +import java.util.List; + +import org.eclipse.mylyn.internal.wikitext.markdown.core.block.CodeBlock; +import org.eclipse.mylyn.internal.wikitext.markdown.core.block.HeadingBlock; +import org.eclipse.mylyn.internal.wikitext.markdown.core.block.HorizontalRuleBlock; +import org.eclipse.mylyn.internal.wikitext.markdown.core.block.InlineHtmlBlock; +import org.eclipse.mylyn.internal.wikitext.markdown.core.block.ParagraphBlock; +import org.eclipse.mylyn.internal.wikitext.markdown.core.block.QuoteBlock; +import org.eclipse.mylyn.internal.wikitext.markdown.core.block.UnderlinedHeadingBlock; +import org.eclipse.mylyn.internal.wikitext.markdown.core.phrase.BackslashEscapePhraseModifier; +import org.eclipse.mylyn.internal.wikitext.markdown.core.phrase.SimplePhraseModifier; +import org.eclipse.mylyn.internal.wikitext.markdown.core.token.PreserverHtmlEntityToken; +import org.eclipse.mylyn.internal.wikitext.markdown.core.util.ReadAheadDispatcher; +import org.eclipse.mylyn.wikitext.core.parser.DocumentBuilder.SpanType; +import org.eclipse.mylyn.wikitext.core.parser.markup.AbstractMarkupLanguage; +import org.eclipse.mylyn.wikitext.core.parser.markup.Block; +import org.eclipse.mylyn.wikitext.core.parser.markup.phrase.HtmlEndTagPhraseModifier; +import org.eclipse.mylyn.wikitext.core.parser.markup.phrase.HtmlStartTagPhraseModifier; +import org.eclipse.mylyn.wikitext.core.parser.markup.token.PatternLineBreakReplacementToken; + +/** + * A markup language implementing Markdown syntax. http://daringfireball.net/projects/markdown/syntax + * + * @author Stefan Seelmann + * @since 1.8 + */ +public class MarkdownLanguage extends AbstractMarkupLanguage { + + public MarkdownLanguage() { + setName("Markdown"); //$NON-NLS-1$ + } + + @Override + protected void addStandardTokens(PatternBasedSyntax tokenSyntax) { + // HTML entities are preserved + tokenSyntax.add(new PreserverHtmlEntityToken()); + // two or more spaces at end of line force a line break + tokenSyntax.add(new PatternLineBreakReplacementToken("( {2,})$")); //$NON-NLS-1$ + } + + @Override + protected void addStandardPhraseModifiers(PatternBasedSyntax phraseModifierSyntax) { + // inline HTML + phraseModifierSyntax.add(new HtmlEndTagPhraseModifier()); + phraseModifierSyntax.add(new HtmlStartTagPhraseModifier()); + // backslash escaped span elements + phraseModifierSyntax.add(new BackslashEscapePhraseModifier("**")); //$NON-NLS-1$ + phraseModifierSyntax.add(new BackslashEscapePhraseModifier("__")); //$NON-NLS-1$ + phraseModifierSyntax.add(new BackslashEscapePhraseModifier("*")); //$NON-NLS-1$ + phraseModifierSyntax.add(new BackslashEscapePhraseModifier("_")); //$NON-NLS-1$ + phraseModifierSyntax.add(new BackslashEscapePhraseModifier("\\")); //$NON-NLS-1$ + phraseModifierSyntax.add(new BackslashEscapePhraseModifier("`")); //$NON-NLS-1$ + phraseModifierSyntax.add(new BackslashEscapePhraseModifier("{")); //$NON-NLS-1$ + phraseModifierSyntax.add(new BackslashEscapePhraseModifier("}")); //$NON-NLS-1$ + phraseModifierSyntax.add(new BackslashEscapePhraseModifier("[")); //$NON-NLS-1$ + phraseModifierSyntax.add(new BackslashEscapePhraseModifier("]")); //$NON-NLS-1$ + phraseModifierSyntax.add(new BackslashEscapePhraseModifier("(")); //$NON-NLS-1$ + phraseModifierSyntax.add(new BackslashEscapePhraseModifier(")")); //$NON-NLS-1$ + phraseModifierSyntax.add(new BackslashEscapePhraseModifier("#")); //$NON-NLS-1$ + phraseModifierSyntax.add(new BackslashEscapePhraseModifier("+")); //$NON-NLS-1$ + phraseModifierSyntax.add(new BackslashEscapePhraseModifier("-")); //$NON-NLS-1$ + phraseModifierSyntax.add(new BackslashEscapePhraseModifier(".")); //$NON-NLS-1$ + phraseModifierSyntax.add(new BackslashEscapePhraseModifier("!")); //$NON-NLS-1$ + // emphasis span elements + phraseModifierSyntax.add(new SimplePhraseModifier("``", SpanType.CODE)); //$NON-NLS-1$ + phraseModifierSyntax.add(new SimplePhraseModifier("`", SpanType.CODE)); //$NON-NLS-1$ + phraseModifierSyntax.add(new SimplePhraseModifier("**", SpanType.STRONG)); //$NON-NLS-1$ + phraseModifierSyntax.add(new SimplePhraseModifier("__", SpanType.STRONG)); //$NON-NLS-1$ + phraseModifierSyntax.add(new SimplePhraseModifier("*", SpanType.EMPHASIS)); //$NON-NLS-1$ + phraseModifierSyntax.add(new SimplePhraseModifier("_", SpanType.EMPHASIS)); //$NON-NLS-1$ + } + + @Override + protected void addStandardBlocks(List blocks, List paragraphBreakingBlocks) { + blocks.add(new CodeBlock()); + blocks.add(new HorizontalRuleBlock()); + blocks.add(new HeadingBlock()); + blocks.add(new InlineHtmlBlock()); + blocks.add(new QuoteBlock()); + } + + @Override + protected Block createParagraphBlock() { + ParagraphBlock paragraphBlock = new ParagraphBlock(); + UnderlinedHeadingBlock headingBlock = new UnderlinedHeadingBlock(); + ReadAheadDispatcher readAheadBlock = new ReadAheadDispatcher(headingBlock, paragraphBlock); + return readAheadBlock; + } + +} diff --git a/org.eclipse.mylyn.wikitext.markdown.tests/.classpath b/org.eclipse.mylyn.wikitext.markdown.tests/.classpath new file mode 100644 index 0000000..15a9f39 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.tests/.classpath @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/org.eclipse.mylyn.wikitext.markdown.tests/.project b/org.eclipse.mylyn.wikitext.markdown.tests/.project new file mode 100644 index 0000000..674ba4d --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.tests/.project @@ -0,0 +1,34 @@ + + + org.eclipse.mylyn.wikitext.markdown.tests + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + org.eclipse.pde.api.tools.apiAnalysisBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + org.eclipse.pde.api.tools.apiAnalysisNature + + diff --git a/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.core.runtime.prefs new file mode 100644 index 0000000..5a0ad22 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.core.runtime.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +line.separator=\n diff --git a/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..93becb6 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,359 @@ +#Mon Oct 31 14:02:54 PDT 2011 +eclipse.preferences.version=1 +org.eclipse.jdt.core.codeComplete.argumentPrefixes= +org.eclipse.jdt.core.codeComplete.argumentSuffixes= +org.eclipse.jdt.core.codeComplete.fieldPrefixes= +org.eclipse.jdt.core.codeComplete.fieldSuffixes= +org.eclipse.jdt.core.codeComplete.localPrefixes= +org.eclipse.jdt.core.codeComplete.localSuffixes= +org.eclipse.jdt.core.codeComplete.staticFieldPrefixes= +org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= +org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes= +org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes= +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.annotationSuperInterface=warning +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.autoboxing=ignore +org.eclipse.jdt.core.compiler.problem.deprecation=warning +org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled +org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled +org.eclipse.jdt.core.compiler.problem.discouragedReference=warning +org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore +org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled +org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore +org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning +org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning +org.eclipse.jdt.core.compiler.problem.forbiddenReference=error +org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning +org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning +org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore +org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore +org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore +org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning +org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore +org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning +org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning +org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning +org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore +org.eclipse.jdt.core.compiler.problem.nullReference=error +org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning +org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore +org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore +org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning +org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning +org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore +org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore +org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled +org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning +org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled +org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore +org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning +org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning +org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore +org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning +org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore +org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore +org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled +org.eclipse.jdt.core.compiler.problem.unusedImport=warning +org.eclipse.jdt.core.compiler.problem.unusedLabel=warning +org.eclipse.jdt.core.compiler.problem.unusedLocal=warning +org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled +org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning +org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning +org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning +org.eclipse.jdt.core.compiler.source=1.5 +org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled +org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,NORMAL +org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX +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=48 +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=80 +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=1 +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=false +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=true +org.eclipse.jdt.core.formatter.comment.format_block_comments=false +org.eclipse.jdt.core.formatter.comment.format_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=insert +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_member=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=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=true +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=true +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 diff --git a/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000..cd6bb6f --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,64 @@ +#Wed Mar 02 16:00:08 PST 2011 +cleanup_settings_version=2 +eclipse.preferences.version=1 +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true +formatter_profile=_Mylyn based on Eclipse +formatter_settings_version=12 +internal.default.compliance=default +org.eclipse.jdt.ui.exception.name=e +org.eclipse.jdt.ui.gettersetter.use.is=true +org.eclipse.jdt.ui.javadoc=false +org.eclipse.jdt.ui.keywordthis=false +org.eclipse.jdt.ui.overrideannotation=true +org.eclipse.jdt.ui.text.custom_code_templates= +sp_cleanup.add_default_serial_version_id=true +sp_cleanup.add_generated_serial_version_id=false +sp_cleanup.add_missing_annotations=true +sp_cleanup.add_missing_deprecated_annotations=true +sp_cleanup.add_missing_methods=false +sp_cleanup.add_missing_nls_tags=false +sp_cleanup.add_missing_override_annotations=true +sp_cleanup.add_serial_version_id=false +sp_cleanup.always_use_blocks=true +sp_cleanup.always_use_parentheses_in_expressions=false +sp_cleanup.always_use_this_for_non_static_field_access=false +sp_cleanup.always_use_this_for_non_static_method_access=false +sp_cleanup.convert_to_enhanced_for_loop=true +sp_cleanup.correct_indentation=true +sp_cleanup.format_source_code=true +sp_cleanup.format_source_code_changes_only=false +sp_cleanup.make_local_variable_final=false +sp_cleanup.make_parameters_final=false +sp_cleanup.make_private_fields_final=true +sp_cleanup.make_type_abstract_if_missing_method=false +sp_cleanup.make_variable_declarations_final=true +sp_cleanup.never_use_blocks=false +sp_cleanup.never_use_parentheses_in_expressions=true +sp_cleanup.on_save_use_additional_actions=true +sp_cleanup.organize_imports=true +sp_cleanup.qualify_static_field_accesses_with_declaring_class=false +sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_with_declaring_class=true +sp_cleanup.qualify_static_method_accesses_with_declaring_class=false +sp_cleanup.remove_private_constructors=true +sp_cleanup.remove_trailing_whitespaces=true +sp_cleanup.remove_trailing_whitespaces_all=true +sp_cleanup.remove_trailing_whitespaces_ignore_empty=false +sp_cleanup.remove_unnecessary_casts=true +sp_cleanup.remove_unnecessary_nls_tags=true +sp_cleanup.remove_unused_imports=false +sp_cleanup.remove_unused_local_variables=false +sp_cleanup.remove_unused_private_fields=true +sp_cleanup.remove_unused_private_members=false +sp_cleanup.remove_unused_private_methods=true +sp_cleanup.remove_unused_private_types=true +sp_cleanup.sort_members=false +sp_cleanup.sort_members_all=false +sp_cleanup.use_blocks=true +sp_cleanup.use_blocks_only_for_return_and_throw=false +sp_cleanup.use_parentheses_in_expressions=false +sp_cleanup.use_this_for_non_static_field_access=false +sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true +sp_cleanup.use_this_for_non_static_method_access=false +sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.ltk.core.refactoring.prefs b/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.ltk.core.refactoring.prefs new file mode 100644 index 0000000..5e7f2bd --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.ltk.core.refactoring.prefs @@ -0,0 +1,3 @@ +#Tue Aug 18 22:42:26 PDT 2009 +eclipse.preferences.version=1 +org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false diff --git a/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.mylyn.tasks.ui.prefs b/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.mylyn.tasks.ui.prefs new file mode 100644 index 0000000..bd4b7b0 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.mylyn.tasks.ui.prefs @@ -0,0 +1,4 @@ +#Thu Jul 31 11:06:52 PDT 2008 +eclipse.preferences.version=1 +project.repository.kind=bugzilla +project.repository.url=https\://bugs.eclipse.org/bugs diff --git a/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.mylyn.team.ui.prefs b/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.mylyn.team.ui.prefs new file mode 100644 index 0000000..10d0afb --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.mylyn.team.ui.prefs @@ -0,0 +1,2 @@ +commit.comment.template=${task.key}\: ${task.description}\n\nTask-Url\: ${task.url} +eclipse.preferences.version=1 diff --git a/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.pde.prefs b/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.pde.prefs new file mode 100644 index 0000000..e8f2d56 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.tests/.settings/org.eclipse.pde.prefs @@ -0,0 +1,18 @@ +#Tue Apr 15 11:07:59 PDT 2008 +compilers.incompatible-environment=1 +compilers.p.build=1 +compilers.p.deprecated=1 +compilers.p.discouraged-class=2 +compilers.p.missing-bundle-classpath-entries=1 +compilers.p.missing-packages=1 +compilers.p.no-required-att=0 +compilers.p.not-externalized-att=2 +compilers.p.unknown-attribute=0 +compilers.p.unknown-class=0 +compilers.p.unknown-element=0 +compilers.p.unknown-identifier=1 +compilers.p.unknown-resource=0 +compilers.p.unresolved-ex-points=0 +compilers.p.unresolved-import=0 +compilers.use-project=true +eclipse.preferences.version=1 diff --git a/org.eclipse.mylyn.wikitext.markdown.tests/META-INF/MANIFEST.MF b/org.eclipse.mylyn.wikitext.markdown.tests/META-INF/MANIFEST.MF new file mode 100644 index 0000000..b2bfd2b --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.tests/META-INF/MANIFEST.MF @@ -0,0 +1,29 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %Bundle-Name.0 +Bundle-SymbolicName: org.eclipse.mylyn.wikitext.markdown.tests;singleton:=true +Bundle-Version: 1.8.0.qualifier +Bundle-Vendor: %Bundle-Vendor.0 +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Require-Bundle: org.junit;bundle-version="3.8.2", + org.eclipse.mylyn.wikitext.core;bundle-version="1.5.0", + org.eclipse.mylyn.wikitext.ui;bundle-version="1.5.0", + org.eclipse.mylyn.wikitext.tasks.ui;bundle-version="1.5.0", + org.eclipse.ui, + org.eclipse.ui.editors, + org.eclipse.core.runtime, + org.eclipse.ui.workbench.texteditor, + org.eclipse.ui.views, + org.eclipse.ui.ide, + org.eclipse.mylyn.tasks.ui;bundle-version="[3.0.2,4.0.0)", + org.eclipse.mylyn.tasks.core;bundle-version="[3.0.2,4.0.0)", + org.eclipse.jface.text, + org.eclipse.core.expressions, + org.eclipse.core.resources, + org.eclipse.help, + org.apache.ant, + org.eclipse.mylyn.wikitext.markdown.core;bundle-version="1.6.0", + org.eclipse.mylyn.wikitext.tests;bundle-version="1.6.0" +Export-Package: + org.eclipse.mylyn.internal.wikitext.markdown.tests;x-internal:=true +Bundle-Localization: plugin diff --git a/org.eclipse.mylyn.wikitext.markdown.tests/about.html b/org.eclipse.mylyn.wikitext.markdown.tests/about.html new file mode 100644 index 0000000..bc6e2b4 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.tests/about.html @@ -0,0 +1,28 @@ + + + +About + + + +

About This Content

+ +

July 3, 2008

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") and different terms and conditions may +apply to your use of any object code in the Content. Check the Redistributor's license that was +provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise +indicated below, the terms and conditions of the EPL still apply to any source code in the Content +and such source code may be obtained at http://www.eclipse.org.

+ + + + diff --git a/org.eclipse.mylyn.wikitext.markdown.tests/build.properties b/org.eclipse.mylyn.wikitext.markdown.tests/build.properties new file mode 100644 index 0000000..541e70f --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.tests/build.properties @@ -0,0 +1,17 @@ +############################################################################### +# Copyright (c) 2007, 2008 David Green and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# David Green - initial API and implementation +############################################################################### +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + plugin.properties,\ + about.html +src.includes = about.html diff --git a/org.eclipse.mylyn.wikitext.markdown.tests/plugin.properties b/org.eclipse.mylyn.wikitext.markdown.tests/plugin.properties new file mode 100644 index 0000000..89bdeb1 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.tests/plugin.properties @@ -0,0 +1,14 @@ +############################################################################### +# Copyright (c) 2007, 2009 Mylyn project committers and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# David Green - initial API and implementation +############################################################################### + +#Properties file for org.eclipse.mylyn.wikitext.tests +Bundle-Vendor.0 = Eclipse Mylyn +Bundle-Name.0 = Mylyn WikiText Tests Plug-in \ No newline at end of file diff --git a/org.eclipse.mylyn.wikitext.markdown.tests/pom.xml b/org.eclipse.mylyn.wikitext.markdown.tests/pom.xml new file mode 100644 index 0000000..a3093eb --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.tests/pom.xml @@ -0,0 +1,31 @@ + + + 4.0.0 + + org.eclipse.mylyn.docs-parent + org.eclipse.mylyn.docs + 1.8.0-SNAPSHOT + + org.eclipse.mylyn.wikitext.markdown.tests + 1.8.0-SNAPSHOT + eclipse-test-plugin + + + + org.eclipse.tycho + tycho-surefire-plugin + ${tycho-version} + + + **/Test*.class + + + + + org.eclipse.tycho + tycho-source-plugin + + + + diff --git a/org.eclipse.mylyn.wikitext.markdown.tests/src/org/eclipse/mylyn/internal/wikitext/markdown/tests/MarkdownLanguageBlockElementsTest.java b/org.eclipse.mylyn.wikitext.markdown.tests/src/org/eclipse/mylyn/internal/wikitext/markdown/tests/MarkdownLanguageBlockElementsTest.java new file mode 100644 index 0000000..d93aa80 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.tests/src/org/eclipse/mylyn/internal/wikitext/markdown/tests/MarkdownLanguageBlockElementsTest.java @@ -0,0 +1,266 @@ +/******************************************************************************* + * Copyright (c) 2012 Stefan Seelmann and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Seelmann - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.internal.wikitext.markdown.tests; + +import static org.eclipse.mylyn.internal.wikitext.markdown.tests.MarkdownLanguageTest.content; +import junit.framework.TestCase; + +import org.eclipse.mylyn.wikitext.core.parser.MarkupParser; +import org.eclipse.mylyn.wikitext.markdown.core.MarkdownLanguage; +import org.eclipse.mylyn.wikitext.tests.TestUtil; + +/** + * Tests for Markdown block elements. Follows specification at + * http://daringfireball.net/projects/markdown/syntax#block. + * + * @author Stefan Seelmann + */ +public class MarkdownLanguageBlockElementsTest extends TestCase { + + private MarkupParser parser; + + @Override + public void setUp() throws Exception { + super.setUp(); + parser = new MarkupParser(new MarkdownLanguage()); + } + + /* + * Paragraphs and Line Breaks. A paragraph is simply one or more consecutive lines of text, separated by one or more + * blank lines. (A blank line is any line that looks like a blank line — a line containing nothing but spaces or + * tabs is considered blank.) Normal paragraphs should not be indented with spaces or tabs. + */ + public void testParagraphWithOneLine() { + String html = parser.parseToHtml("a paragraph"); + TestUtil.println("HTML: " + content(html)); + assertEquals("

a paragraph

\n", content(html)); + } + + public void testParagraphWithMulitpleLines() { + String html = parser.parseToHtml("a paragraph\nwith multiple\nlines"); + TestUtil.println("HTML: " + content(html)); + assertEquals("

a paragraph\nwith multiple\nlines

\n", content(html)); + } + + public void testParagraphsSeparatedBySingleBlankLine() { + String html = parser.parseToHtml("a paragraph\n\nanother paragraph\n\n"); + TestUtil.println("HTML: " + content(html)); + assertEquals("

a paragraph

\n

another paragraph

\n", content(html)); + } + + public void testParagraphsSeparatedByMulitpleBlankLines() { + String html = parser.parseToHtml("a paragraph\n\n\nanother paragraph\n\n\n"); + TestUtil.println("HTML: " + content(html)); + assertEquals("

a paragraph

\n

another paragraph

\n", content(html)); + } + + public void testParagraphsSeparatedByMulitpleBlankLinesWithSpacesAndTabs() { + String html = parser.parseToHtml("a paragraph\n \n\t\nanother paragraph"); + TestUtil.println("HTML: " + content(html)); + assertEquals("

a paragraph

\n

another paragraph

\n", content(html)); + } + + /* + * When you do want to insert a
+ * break tag using Markdown, you end a line with two or more spaces, then type return. + */ + public void testLineBreakInParagraph() { + String html = parser.parseToHtml("line 1 \nline 2 \nline 3"); + TestUtil.println("HTML: " + content(html)); + assertEquals("

line 1
\nline 2
\nline 3

\n", content(html)); + } + + /* + * Headers. Atx-style headers use 1-6 hash characters at the start of the line, corresponding to header levels 1-6. + */ + public void testAtxStyleHeader() { + String h1 = parser.parseToHtml("# This is an H1"); + TestUtil.println("HTML: " + content(h1)); + assertEquals("

This is an H1

", content(h1)); + String h2 = parser.parseToHtml("## This is an H2"); + TestUtil.println("HTML: " + content(h2)); + assertEquals("

This is an H2

", content(h2)); + String h3 = parser.parseToHtml("### This is an H3"); + TestUtil.println("HTML: " + content(h3)); + assertEquals("

This is an H3

", content(h3)); + String h4 = parser.parseToHtml("#### This is an H4"); + TestUtil.println("HTML: " + content(h4)); + assertEquals("

This is an H4

", content(h4)); + String h5 = parser.parseToHtml("##### This is an H5"); + TestUtil.println("HTML: " + content(h5)); + assertEquals("
This is an H5
", content(h5)); + String h6 = parser.parseToHtml("###### This is an H6"); + TestUtil.println("HTML: " + content(h6)); + assertEquals("
This is an H6
", content(h6)); + } + + /* + * Optionally, you may "close" atx-style headers. This is purely cosmetic - you can use this if you think it looks + * better. The closing hashes don't even need to match the number of hashes used to open the header. (The number of + * opening hashes determines the header level.) + */ + public void testClosedAtxStyleHeader() { + String h1 = parser.parseToHtml("# This is an H1 #"); + TestUtil.println("HTML: " + content(h1)); + assertEquals("

This is an H1

", content(h1)); + String h2 = parser.parseToHtml("## This is an H2 ##"); + TestUtil.println("HTML: " + content(h2)); + assertEquals("

This is an H2

", content(h2)); + String h3 = parser.parseToHtml("### This is an H3 ###"); + TestUtil.println("HTML: " + content(h3)); + assertEquals("

This is an H3

", content(h3)); + String h4 = parser.parseToHtml("#### This is an H4 ####"); + TestUtil.println("HTML: " + content(h4)); + assertEquals("

This is an H4

", content(h4)); + String h5 = parser.parseToHtml("##### This is an H5 #####"); + TestUtil.println("HTML: " + content(h5)); + assertEquals("
This is an H5
", content(h5)); + String h6 = parser.parseToHtml("###### This is an H6 ######"); + TestUtil.println("HTML: " + content(h6)); + assertEquals("
This is an H6
", content(h6)); + + String h1_ = parser.parseToHtml("# This is an H1 ################################"); + TestUtil.println("HTML: " + content(h1_)); + assertEquals("

This is an H1

", content(h1_)); + String h6_ = parser.parseToHtml("###### This is an H6 #"); + TestUtil.println("HTML: " + content(h6_)); + assertEquals("
This is an H6
", content(h6_)); + } + + /* + * Setext-style headers are "underlined" using equal signs (for first-level headers) and dashes (for second-level + * headers). Any number of underlining ='s or -'s will work. + */ + public void testUnderlindedHeader() { + String h1 = parser.parseToHtml("This is an H1\n============"); + TestUtil.println("HTML: " + content(h1)); + assertEquals("

This is an H1

", content(h1)); + String h2 = parser.parseToHtml("This is an H2\n------------"); + TestUtil.println("HTML: " + content(h2)); + assertEquals("

This is an H2

", content(h2)); + String h1_ = parser.parseToHtml("This is an H1\n= "); + TestUtil.println("HTML: " + content(h1_)); + assertEquals("

This is an H1

", content(h1_)); + String h2_ = parser.parseToHtml("This is an H2\n- "); + TestUtil.println("HTML: " + content(h2_)); + assertEquals("

This is an H2

", content(h2_)); + } + + /* + * Blockquotes. Markdown uses email-style > characters for blockquoting. It looks best if you hard wrap the text and + * put a > before every line. + */ + public void testBlockquoteWithQuoteCharInEachLine() { + String h1 = parser.parseToHtml("> Lorem ipsum dolor sit amet, \n> consetetur adipisici elit.\n"); + TestUtil.println("HTML: " + content(h1)); + assertEquals("

Lorem ipsum dolor sit amet, \nconsetetur adipisici elit.

\n
", + content(h1)); + } + + /* + * Markdown allows you to be lazy and only put the > before the first line of a hard-wrapped paragraph. + */ + public void testBlockquoteWithSingleQuoteChar() { + String h1 = parser.parseToHtml("> Lorem ipsum dolor sit amet, \nconsetetur adipisici elit.\n"); + TestUtil.println("HTML: " + content(h1)); + assertEquals("

Lorem ipsum dolor sit amet, \nconsetetur adipisici elit.

\n
", + content(h1)); + } + + /* + * Blockquotes can be nested (i.e. a blockquote-in-a-blockquote) by adding additional levels of >. + */ + public void testNestedBlockquotes() { + String h1 = parser.parseToHtml(">A1\n>>B1\n>A2\n"); + TestUtil.println("HTML: " + content(h1)); + assertEquals("

A1

\n

B1

\n

A2

\n
", content(h1)); + } + + /* + * Blockquotes can contain other Markdown elements, including headers, lists, and code blocks. + */ + public void testBlockquotesWithOtherElements() { + String h1 = parser.parseToHtml(">#H1"); + TestUtil.println("HTML: " + content(h1)); + assertEquals("

H1

", content(h1)); + } + + /* + * Markdown wraps a code block in both pre and code tags. To produce a code block in Markdown, simply indent every + * line of the block by at least 4 spaces or 1 tab. + */ + public void testCodeBlock() { + String codeBlockIntentedByFourSpaces = parser.parseToHtml(" This is a code block."); + TestUtil.println("HTML: " + content(codeBlockIntentedByFourSpaces)); + assertEquals("
This is a code block.
", content(codeBlockIntentedByFourSpaces)); + String codeBlockIntentedByOneTab = parser.parseToHtml("\tThis is a code block."); + TestUtil.println("HTML: " + content(codeBlockIntentedByOneTab)); + assertEquals("
This is a code block.
", content(codeBlockIntentedByOneTab)); + } + + /* + * One level of indentation — 4 spaces or 1 tab — is removed from each line of the code block. + */ + public void testCodeBlockMultiLine() { + String codeBlockIntentedByFourSpaces = parser.parseToHtml(" aaa\n bbb\n ccc\n \n continue after empty line"); + TestUtil.println("HTML: " + content(codeBlockIntentedByFourSpaces)); + String expectedHtml = "
aaa\n    bbb\n        ccc\n\ncontinue after empty line
"; + assertEquals(expectedHtml, content(codeBlockIntentedByFourSpaces)); + String codeBlockIntentedByOneTab = parser.parseToHtml("\taaa\n\t\tbbb\n\t\t\tccc\n\t\n\tcontinue after empty line"); + TestUtil.println("HTML: " + content(codeBlockIntentedByOneTab)); + assertEquals(expectedHtml, content(codeBlockIntentedByOneTab)); + } + + /* + * Within a code block, ampersands (&) and angle brackets (< and >) are automatically converted into HTML entities. + */ + public void testSpecialCharactersAreConvertedInCodeBlock() { + String html = parser.parseToHtml("
\n © 2004 Foo Bar\n
"); + TestUtil.println("HTML: " + content(html)); + assertEquals("
<div class=\"footer\">\n&copy; 2004 Foo Bar\n</div>
", + content(html)); + } + + /* + * Regular Markdown syntax is not processed within code blocks. + */ + public void testNoProcessingInCodeBlock() { + String html = parser.parseToHtml(" ### Header 3\n Lorem *ipsum*"); + TestUtil.println("HTML: " + content(html)); + assertEquals("
### Header 3\nLorem *ipsum*
", content(html)); + } + + /* + * Horizontal Rules. You can produce a horizontal rule tag ( hr/ ) by placing three or more hyphens, asterisks, or + * underscores on a line by themselves. If you wish, you may use spaces between the hyphens or asterisks. + */ + public void testHorizontalRules() { + String html1 = parser.parseToHtml("* * *"); + TestUtil.println("HTML: " + content(html1)); + assertEquals("
", content(html1)); + String html2 = parser.parseToHtml("***"); + TestUtil.println("HTML: " + content(html2)); + assertEquals("
", content(html2)); + String html3 = parser.parseToHtml("*****"); + TestUtil.println("HTML: " + content(html3)); + assertEquals("
", content(html3)); + String html4 = parser.parseToHtml("- - -"); + TestUtil.println("HTML: " + content(html4)); + assertEquals("
", content(html4)); + String html5 = parser.parseToHtml("---------------------------------------"); + TestUtil.println("HTML: " + content(html5)); + assertEquals("
", content(html5)); + String html6 = parser.parseToHtml("___"); + TestUtil.println("HTML: " + content(html6)); + assertEquals("
", content(html6)); + } +} diff --git a/org.eclipse.mylyn.wikitext.markdown.tests/src/org/eclipse/mylyn/internal/wikitext/markdown/tests/MarkdownLanguageMiscellaneousTest.java b/org.eclipse.mylyn.wikitext.markdown.tests/src/org/eclipse/mylyn/internal/wikitext/markdown/tests/MarkdownLanguageMiscellaneousTest.java new file mode 100644 index 0000000..9da4b30 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.tests/src/org/eclipse/mylyn/internal/wikitext/markdown/tests/MarkdownLanguageMiscellaneousTest.java @@ -0,0 +1,142 @@ +/******************************************************************************* + * Copyright (c) 2012 Stefan Seelmann and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Seelmann - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.internal.wikitext.markdown.tests; + +import static org.eclipse.mylyn.internal.wikitext.markdown.tests.MarkdownLanguageTest.content; +import junit.framework.TestCase; + +import org.eclipse.mylyn.wikitext.core.parser.MarkupParser; +import org.eclipse.mylyn.wikitext.markdown.core.MarkdownLanguage; +import org.eclipse.mylyn.wikitext.tests.TestUtil; + +/** + * Tests for Markdown overview and miscellaneous. Follows specification at + * http://daringfireball.net/projects/markdown/syntax#overview. + * http://daringfireball.net/projects/markdown/syntax#misc. + * + * @author Stefan Seelmann + */ +public class MarkdownLanguageMiscellaneousTest extends TestCase { + + private MarkupParser parser; + + @Override + public void setUp() throws Exception { + super.setUp(); + parser = new MarkupParser(new MarkdownLanguage()); + } + + public void testEmptyLine() { + String html = parser.parseToHtml(" "); + TestUtil.println("HTML: " + content(html)); + assertEquals("", content(html)); + } + + /* + * Inline HTML. For any markup that is not covered by Markdown's syntax, you simply use HTML itself. There's no need + * to preface it or delimit it to indicate that you’re switching from Markdown to HTML; you just use the tags. The + * only restrictions are that block-level HTML elements - e.g. div, table,pre, p, etc. - must be separated from + * surrounding content by blank lines, and the start and end tags of the block should not be indented with tabs or + * spaces. Markdown is smart enough not to add extra (unwanted) p tags around HTML block-level tags. + */ + public void testInlineHtml() throws Exception { + String html = parser.parseToHtml("aaa\n\n\n \n \n \n
Foo
\n\nbbb"); + TestUtil.println("HTML: " + content(html)); + assertEquals("

aaa

\n\n \n \n \n
Foo
\n

bbb

\n", content(html)); + } + + /* + * Note that Markdown formatting syntax is not processed within block-level HTML tags. E.g., you can't use + * Markdown-style *emphasis* inside an HTML block. + */ + public void testNoProcessingWithinInlineHtmlBlockLevelTags() throws Exception { + String html = parser.parseToHtml("
*Foo*
"); + TestUtil.println("HTML: " + content(html)); + assertEquals("
*Foo*
\n", content(html)); + } + + /* + * Span-level HTML tags - e.g. span, cite, or del - can be used anywhere in a Markdown paragraph, list item, or + * header. If you want, you can even use HTML tags instead of Markdown formatting; e.g. if you'd prefer to use HTML + * a or img tags instead of Markdown's link or image syntax, go right ahead. + */ + public void testSpanLevelTags() throws Exception { + String html = parser.parseToHtml("Image: some nice image."); + TestUtil.println("HTML: " + content(html)); + assertEquals("

Image: some nice image.

\n", content(html)); + + } + + /* + * Unlike block-level HTML tags, Markdown syntax is processed within span-level tags. + */ + public void testProcessingInSpanLevelTags() throws Exception { + String html = parser.parseToHtml("Image: some **nice** image."); + TestUtil.println("HTML: " + content(html)); + assertEquals("

Image: some nice image.

\n", content(html)); + } + + /* + * Automatic Escaping for Special Characters. Markdown allows you to use these characters naturally, taking care of + * all the necessary escaping for you. If you use an ampersand as part of an HTML entity, it remains unchanged; + * otherwise it will be translated into &. So, if you want to include a copyright symbol in your article, you + * can write: © and Markdown will leave it alone. + */ + public void testPreserveHtmlEntities() { + String copy = parser.parseToHtml("© &"); + TestUtil.println("HTML: " + content(copy)); + assertEquals("

© &

\n", content(copy)); + } + + /* + * But if you write: AT&T Markdown will translate it to: AT&T. Similarly, because Markdown supports inline HTML, + * if you use angle brackets as delimiters for HTML tags, Markdown will treat them as such. But if you write: 4 < 5 + * Markdown will translate it to: 4 < 5 + */ + public void testSpecialCharacters() { + String amp = parser.parseToHtml("AT&T, a & b"); + TestUtil.println("HTML: " + content(amp)); + assertEquals("

AT&T, a & b

\n", content(amp)); + + String urlWithAmp = parser.parseToHtml("http://images.google.com/images?num=30&q=larry+bird"); + TestUtil.println("HTML: " + content(urlWithAmp)); + assertEquals("

http://images.google.com/images?num=30&q=larry+bird

\n", content(urlWithAmp)); + + String lt = parser.parseToHtml("4 < 5"); + TestUtil.println("HTML: " + content(lt)); + assertEquals("

4 < 5

\n", content(lt)); + } + + /* + * Backslash Escapes. Markdown allows you to use backslash escapes to generate literal characters which would otherwise have special + * meaning in Markdown's formatting syntax. + */ + public void testEscapedCharacters() { + + assertEquals("

\\

\n", content(parser.parseToHtml("\\\\"))); + assertEquals("

`

\n", content(parser.parseToHtml("\\`"))); + assertEquals("

*

\n", content(parser.parseToHtml("\\*"))); + assertEquals("

_

\n", content(parser.parseToHtml("\\_"))); + assertEquals("

{

\n", content(parser.parseToHtml("\\{"))); + assertEquals("

}

\n", content(parser.parseToHtml("\\}"))); + assertEquals("

[

\n", content(parser.parseToHtml("\\["))); + assertEquals("

]

\n", content(parser.parseToHtml("\\]"))); + assertEquals("

(

\n", content(parser.parseToHtml("\\("))); + assertEquals("

)

\n", content(parser.parseToHtml("\\)"))); + assertEquals("

#

\n", content(parser.parseToHtml("\\#"))); + assertEquals("

+

\n", content(parser.parseToHtml("\\+"))); + assertEquals("

-

\n", content(parser.parseToHtml("\\-"))); + assertEquals("

.

\n", content(parser.parseToHtml("\\."))); + assertEquals("

!

\n", content(parser.parseToHtml("\\!"))); + } + +} diff --git a/org.eclipse.mylyn.wikitext.markdown.tests/src/org/eclipse/mylyn/internal/wikitext/markdown/tests/MarkdownLanguageSpanElementsTest.java b/org.eclipse.mylyn.wikitext.markdown.tests/src/org/eclipse/mylyn/internal/wikitext/markdown/tests/MarkdownLanguageSpanElementsTest.java new file mode 100644 index 0000000..50aa773 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.tests/src/org/eclipse/mylyn/internal/wikitext/markdown/tests/MarkdownLanguageSpanElementsTest.java @@ -0,0 +1,141 @@ +/******************************************************************************* + * Copyright (c) 2012 Stefan Seelmann and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Seelmann - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.internal.wikitext.markdown.tests; + +import static org.eclipse.mylyn.internal.wikitext.markdown.tests.MarkdownLanguageTest.content; +import junit.framework.TestCase; + +import org.eclipse.mylyn.wikitext.core.parser.MarkupParser; +import org.eclipse.mylyn.wikitext.markdown.core.MarkdownLanguage; +import org.eclipse.mylyn.wikitext.tests.TestUtil; + +/** + * Tests for Markdown span elements. Follows specification at + * http://daringfireball.net/projects/markdown/syntax#span. + * + * @author Stefan Seelmann + */ +public class MarkdownLanguageSpanElementsTest extends TestCase { + + private MarkupParser parser; + + @Override + public void setUp() throws Exception { + super.setUp(); + parser = new MarkupParser(new MarkdownLanguage()); + } + + /* + * Emphasis. Markdown treats asterisks * and underscores _ as indicators of emphasis. Text wrapped with one * or _ will be + * wrapped with an HTML em tag; double **'s or __ will be wrapped with an HTML strong tag. + */ + public void testEmphasis() { + String html1 = parser.parseToHtml("*foo bar*"); + TestUtil.println("HTML: " + content(html1)); + assertEquals("

foo bar

\n", content(html1)); + String html2 = parser.parseToHtml("_foo bar_"); + TestUtil.println("HTML: " + content(html2)); + assertEquals("

foo bar

\n", content(html2)); + String html3 = parser.parseToHtml("**foo bar**"); + TestUtil.println("HTML: " + content(html3)); + assertEquals("

foo bar

\n", content(html3)); + String html4 = parser.parseToHtml("__foo bar__"); + TestUtil.println("HTML: " + content(html4)); + assertEquals("

foo bar

\n", content(html4)); + } + + /* + * Emphasis can be used in the middle of a word. + */ + public void testEmphasisWithinWord() { + String html = parser.parseToHtml("un*frigging*believable"); + TestUtil.println("HTML: " + content(html)); + assertEquals("

unfriggingbelievable

\n", content(html)); + } + + /* + * But if you surround an * or _ with spaces, it'll be treated as a literal asterisk or underscore. + */ + public void testLiteralAsteriskAndUnderscore() { + String html = parser.parseToHtml("asterisk * underscore _"); + TestUtil.println("HTML: " + content(html)); + assertEquals("

asterisk * underscore _

\n", content(html)); + } + + /* + * To produce a literal asterisk or underscore at a position where it would otherwise be used as an emphasis + * delimiter, you can backslash escape it. + */ + public void testEscapesAsteriskAndUnderscore() { + String html1 = parser.parseToHtml("\\*foo bar\\*"); + TestUtil.println("HTML: " + content(html1)); + assertEquals("

*foo bar*

\n", content(html1)); + String html2 = parser.parseToHtml("\\_foo bar\\_"); + TestUtil.println("HTML: " + content(html2)); + assertEquals("

_foo bar_

\n", content(html2)); + String html3 = parser.parseToHtml("\\**foo bar\\**"); + TestUtil.println("HTML: " + content(html3)); + assertEquals("

**foo bar**

\n", content(html3)); + String html4 = parser.parseToHtml("\\__foo bar\\__"); + TestUtil.println("HTML: " + content(html4)); + assertEquals("

__foo bar__

\n", content(html4)); + } + + /* + * Code. To indicate a span of code, wrap it with backtick quotes. + */ + public void testCodeSpan() { + String html = parser.parseToHtml("Use the `printf()` function."); + TestUtil.println("HTML: " + content(html)); + assertEquals("

Use the printf() function.

\n", content(html)); + + String html3 = parser.parseToHtml("`foo *bar* foo`"); + TestUtil.println("HTML: " + content(html3)); + assertEquals("

foo *bar* foo

\n", content(html3)); + } + + /* + * To include a literal backtick character within a code span, you can use multiple backticks as the opening and + * closing delimiters. + */ + public void testLiteralBacktickInCodeSpan() { + String html = parser.parseToHtml("``There is a literal backtick (`) here.``"); + TestUtil.println("HTML: " + content(html)); + assertEquals("

There is a literal backtick (`) here.

\n", content(html)); + } + + /* + * The backtick delimiters surrounding a code span may include spaces - one after the opening, one before the + * closing. This allows you to place literal backtick characters at the beginning or end of a code span: + */ + public void testLiteralBacktickAtBeginnionOrIndOfCodeSpan() { + String html = parser.parseToHtml("`` `foo` ``"); + TestUtil.println("HTML: " + content(html)); + assertEquals("

`foo`

\n", content(html)); + } + + /* + * With a code span, ampersands and angle brackets are encoded as HTML entities automatically + */ + public void testCodeSpanEncodesAmpersandsAndAngleBrackets() { + String html = parser.parseToHtml("`Encode tags

and enties &code;`"); + TestUtil.println("HTML: " + content(html)); + assertEquals("

Encode tags <p> and enties &code;

\n", content(html)); + } + + public void testNoProcessingInCodeSpan() { + String html = parser.parseToHtml("`Preserve *asterisk*.`"); + TestUtil.println("HTML: " + content(html)); + assertEquals("

Preserve *asterisk*.

\n", content(html)); + } + +} diff --git a/org.eclipse.mylyn.wikitext.markdown.tests/src/org/eclipse/mylyn/internal/wikitext/markdown/tests/MarkdownLanguageTest.java b/org.eclipse.mylyn.wikitext.markdown.tests/src/org/eclipse/mylyn/internal/wikitext/markdown/tests/MarkdownLanguageTest.java new file mode 100644 index 0000000..7648f2b --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.tests/src/org/eclipse/mylyn/internal/wikitext/markdown/tests/MarkdownLanguageTest.java @@ -0,0 +1,57 @@ +/******************************************************************************* + * Copyright (c) 2012 Stefan Seelmann and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Stefan Seelmann - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.internal.wikitext.markdown.tests; + +import junit.framework.TestCase; + +import org.eclipse.mylyn.wikitext.core.parser.MarkupParser; +import org.eclipse.mylyn.wikitext.markdown.core.MarkdownLanguage; + +/** + * http://daringfireball.net/projects/markdown/syntax + * + * @author Stefan Seelmann + */ +public class MarkdownLanguageTest extends TestCase { + + private MarkupParser parser; + + @Override + public void setUp() throws Exception { + super.setUp(); + parser = new MarkupParser(new MarkdownLanguage()); + } + + public void testFullExample() { + + StringBuilder text = new StringBuilder(); + text.append("\n"); + text.append("Header\n"); + text.append("======\n"); + text.append("\n"); + text.append("Lorem ipsum dolor sit amet, \n"); + text.append("consetetur adipisici elit.\n"); + text.append("\n"); + text.append("## Header\n"); + text.append("\n"); + text.append("\n"); + + String html = parser.parseToHtml(text.toString()); + //TestUtil.println("HTML: " + content(html)); + } + + public static String content(String html) { + int begin = html.indexOf("") + 6; + int end = html.lastIndexOf(""); + return html.substring(begin, end); + } +} diff --git a/org.eclipse.mylyn.wikitext.markdown.tests/styles/junit-noframes.xsl b/org.eclipse.mylyn.wikitext.markdown.tests/styles/junit-noframes.xsl new file mode 100644 index 0000000..339bc2e --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.tests/styles/junit-noframes.xsl @@ -0,0 +1,154 @@ + + + + + + + + Unit Test Results + + + +

Unit Test Results

+

Overview

+ +

Detail

+ + +

Failures and Errors

+ +
+ + +
+ + + + + + + +
+ Build Is Unstable!! +
+
+ + + + + + + + + + + + + +
TestsErrorsFailuresTime
+ + error + + + + + failure + + +
+
+ + + +

+ + + + + + + + + + + + + failure + + + error + + + + + + + +
ClassNameTimeStatus
+ + Failure + Error + Success + +
+
+
+ + + + + +

+ + Failure + Error + Success + + Detail: + . +

+ + +
+
+ + + Error:
+
+			
+		
+
+ + + Failure:
+
+			
+		
+
+
\ No newline at end of file diff --git a/org.eclipse.mylyn.wikitext.markdown.ui/.classpath b/org.eclipse.mylyn.wikitext.markdown.ui/.classpath new file mode 100644 index 0000000..472ee29 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.ui/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/org.eclipse.mylyn.wikitext.markdown.ui/.project b/org.eclipse.mylyn.wikitext.markdown.ui/.project new file mode 100644 index 0000000..b951251 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.ui/.project @@ -0,0 +1,34 @@ + + + org.eclipse.mylyn.wikitext.markdown.ui + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + org.eclipse.pde.api.tools.apiAnalysisBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + org.eclipse.pde.api.tools.apiAnalysisNature + + diff --git a/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.core.runtime.prefs b/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.core.runtime.prefs new file mode 100644 index 0000000..5a0ad22 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.core.runtime.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +line.separator=\n diff --git a/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..bbaca6d --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,357 @@ +#Wed Mar 02 16:00:06 PST 2011 +eclipse.preferences.version=1 +org.eclipse.jdt.core.codeComplete.argumentPrefixes= +org.eclipse.jdt.core.codeComplete.argumentSuffixes= +org.eclipse.jdt.core.codeComplete.fieldPrefixes= +org.eclipse.jdt.core.codeComplete.fieldSuffixes= +org.eclipse.jdt.core.codeComplete.localPrefixes= +org.eclipse.jdt.core.codeComplete.localSuffixes= +org.eclipse.jdt.core.codeComplete.staticFieldPrefixes= +org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= +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.annotationSuperInterface=warning +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.autoboxing=ignore +org.eclipse.jdt.core.compiler.problem.deprecation=warning +org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled +org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled +org.eclipse.jdt.core.compiler.problem.discouragedReference=warning +org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore +org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled +org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore +org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning +org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning +org.eclipse.jdt.core.compiler.problem.forbiddenReference=error +org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning +org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning +org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore +org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore +org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore +org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning +org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore +org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning +org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning +org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning +org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning +org.eclipse.jdt.core.compiler.problem.nullReference=error +org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning +org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore +org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore +org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning +org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning +org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore +org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore +org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled +org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning +org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled +org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore +org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning +org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning +org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore +org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning +org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore +org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore +org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled +org.eclipse.jdt.core.compiler.problem.unusedImport=warning +org.eclipse.jdt.core.compiler.problem.unusedLabel=warning +org.eclipse.jdt.core.compiler.problem.unusedLocal=warning +org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled +org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning +org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning +org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning +org.eclipse.jdt.core.compiler.source=1.5 +org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled +org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,NORMAL +org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX +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=48 +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=80 +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=1 +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=false +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=true +org.eclipse.jdt.core.formatter.comment.format_block_comments=false +org.eclipse.jdt.core.formatter.comment.format_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=insert +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_member=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=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=true +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=true +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 diff --git a/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.jdt.ui.prefs b/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000..8de8a0d --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,64 @@ +#Wed Mar 02 16:00:03 PST 2011 +cleanup_settings_version=2 +eclipse.preferences.version=1 +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true +formatter_profile=_Mylyn based on Eclipse +formatter_settings_version=12 +internal.default.compliance=default +org.eclipse.jdt.ui.exception.name=e +org.eclipse.jdt.ui.gettersetter.use.is=true +org.eclipse.jdt.ui.javadoc=false +org.eclipse.jdt.ui.keywordthis=false +org.eclipse.jdt.ui.overrideannotation=true +org.eclipse.jdt.ui.text.custom_code_templates= +sp_cleanup.add_default_serial_version_id=true +sp_cleanup.add_generated_serial_version_id=false +sp_cleanup.add_missing_annotations=true +sp_cleanup.add_missing_deprecated_annotations=true +sp_cleanup.add_missing_methods=false +sp_cleanup.add_missing_nls_tags=false +sp_cleanup.add_missing_override_annotations=true +sp_cleanup.add_serial_version_id=false +sp_cleanup.always_use_blocks=true +sp_cleanup.always_use_parentheses_in_expressions=false +sp_cleanup.always_use_this_for_non_static_field_access=false +sp_cleanup.always_use_this_for_non_static_method_access=false +sp_cleanup.convert_to_enhanced_for_loop=true +sp_cleanup.correct_indentation=true +sp_cleanup.format_source_code=true +sp_cleanup.format_source_code_changes_only=false +sp_cleanup.make_local_variable_final=false +sp_cleanup.make_parameters_final=false +sp_cleanup.make_private_fields_final=true +sp_cleanup.make_type_abstract_if_missing_method=false +sp_cleanup.make_variable_declarations_final=true +sp_cleanup.never_use_blocks=false +sp_cleanup.never_use_parentheses_in_expressions=true +sp_cleanup.on_save_use_additional_actions=true +sp_cleanup.organize_imports=true +sp_cleanup.qualify_static_field_accesses_with_declaring_class=false +sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_with_declaring_class=true +sp_cleanup.qualify_static_method_accesses_with_declaring_class=false +sp_cleanup.remove_private_constructors=true +sp_cleanup.remove_trailing_whitespaces=true +sp_cleanup.remove_trailing_whitespaces_all=true +sp_cleanup.remove_trailing_whitespaces_ignore_empty=false +sp_cleanup.remove_unnecessary_casts=true +sp_cleanup.remove_unnecessary_nls_tags=true +sp_cleanup.remove_unused_imports=false +sp_cleanup.remove_unused_local_variables=false +sp_cleanup.remove_unused_private_fields=true +sp_cleanup.remove_unused_private_members=false +sp_cleanup.remove_unused_private_methods=true +sp_cleanup.remove_unused_private_types=true +sp_cleanup.sort_members=false +sp_cleanup.sort_members_all=false +sp_cleanup.use_blocks=true +sp_cleanup.use_blocks_only_for_return_and_throw=false +sp_cleanup.use_parentheses_in_expressions=false +sp_cleanup.use_this_for_non_static_field_access=false +sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true +sp_cleanup.use_this_for_non_static_method_access=false +sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.ltk.core.refactoring.prefs b/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.ltk.core.refactoring.prefs new file mode 100644 index 0000000..5e7f2bd --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.ltk.core.refactoring.prefs @@ -0,0 +1,3 @@ +#Tue Aug 18 22:42:26 PDT 2009 +eclipse.preferences.version=1 +org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false diff --git a/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.mylyn.tasks.ui.prefs b/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.mylyn.tasks.ui.prefs new file mode 100644 index 0000000..f714538 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.mylyn.tasks.ui.prefs @@ -0,0 +1,4 @@ +#Thu Jul 31 11:10:30 PDT 2008 +eclipse.preferences.version=1 +project.repository.kind=bugzilla +project.repository.url=https\://bugs.eclipse.org/bugs diff --git a/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.mylyn.team.ui.prefs b/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.mylyn.team.ui.prefs new file mode 100644 index 0000000..10d0afb --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.mylyn.team.ui.prefs @@ -0,0 +1,2 @@ +commit.comment.template=${task.key}\: ${task.description}\n\nTask-Url\: ${task.url} +eclipse.preferences.version=1 diff --git a/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.pde.prefs b/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.pde.prefs new file mode 100644 index 0000000..ca41cef --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.ui/.settings/org.eclipse.pde.prefs @@ -0,0 +1,24 @@ +#Thu Aug 14 22:14:04 PDT 2008 +compilers.f.unresolved-features=1 +compilers.f.unresolved-plugins=1 +compilers.incompatible-environment=1 +compilers.p.build=1 +compilers.p.deprecated=1 +compilers.p.discouraged-class=2 +compilers.p.internal=2 +compilers.p.missing-bundle-classpath-entries=1 +compilers.p.missing-packages=1 +compilers.p.no-required-att=0 +compilers.p.not-externalized-att=2 +compilers.p.unknown-attribute=0 +compilers.p.unknown-class=0 +compilers.p.unknown-element=0 +compilers.p.unknown-identifier=1 +compilers.p.unknown-resource=0 +compilers.p.unresolved-ex-points=0 +compilers.p.unresolved-import=0 +compilers.s.create-docs=false +compilers.s.doc-folder=doc +compilers.s.open-tags=1 +compilers.use-project=true +eclipse.preferences.version=1 diff --git a/org.eclipse.mylyn.wikitext.markdown.ui/META-INF/MANIFEST.MF b/org.eclipse.mylyn.wikitext.markdown.ui/META-INF/MANIFEST.MF new file mode 100644 index 0000000..70611b0 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.ui/META-INF/MANIFEST.MF @@ -0,0 +1,12 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %Bundle-Name.0 +Bundle-SymbolicName: org.eclipse.mylyn.wikitext.markdown.ui;singleton:=true +Bundle-Version: 1.8.0.qualifier +Bundle-Vendor: %Bundle-Vendor.0 +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Bundle-Localization: plugin +Require-Bundle: org.eclipse.mylyn.wikitext.core;bundle-version="1.5.0", + org.eclipse.mylyn.wikitext.markdown.core;bundle-version="1.5.0", + org.eclipse.mylyn.wikitext.ui;bundle-version="1.5.0" +Export-Package: org.eclipse.mylyn.internal.wikitext.markdown.ui;x-internal:=true diff --git a/org.eclipse.mylyn.wikitext.markdown.ui/about.html b/org.eclipse.mylyn.wikitext.markdown.ui/about.html new file mode 100644 index 0000000..d774b07 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.ui/about.html @@ -0,0 +1,27 @@ + + + +About + + + +

About This Content

+ +

June 25, 2008

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") and different terms and conditions may +apply to your use of any object code in the Content. Check the Redistributor's license that was +provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise +indicated below, the terms and conditions of the EPL still apply to any source code in the Content +and such source code may be obtained at http://www.eclipse.org.

+ + + \ No newline at end of file diff --git a/org.eclipse.mylyn.wikitext.markdown.ui/build.properties b/org.eclipse.mylyn.wikitext.markdown.ui/build.properties new file mode 100644 index 0000000..ca604f5 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.ui/build.properties @@ -0,0 +1,19 @@ +############################################################################### +# Copyright (c) 2012 Stefan Seelmann and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# Stefan Seelmann - initial API and implementation +############################################################################### +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + plugin.xml,\ + plugin.properties,\ + about.html + +src.includes=about.html diff --git a/org.eclipse.mylyn.wikitext.markdown.ui/plugin.properties b/org.eclipse.mylyn.wikitext.markdown.ui/plugin.properties new file mode 100644 index 0000000..a3fedc4 --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.ui/plugin.properties @@ -0,0 +1,21 @@ +############################################################################### +# Copyright (c) 2012 Stefan Seelmann and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# Stefan Seelmann - initial API and implementation +############################################################################### + +Bundle-Vendor.0 = Eclipse Mylyn +Bundle-Name.0 = Mylyn WikiText Markdown UI + +template.description.br = line break +template.description.h1 = Heading 1 +template.description.h2 = Heading 2 +template.description.h3 = Heading 3 +template.description.h4 = Heading 4 +template.description.h5 = Heading 5 +template.description.h6 = Heading 6 diff --git a/org.eclipse.mylyn.wikitext.markdown.ui/plugin.xml b/org.eclipse.mylyn.wikitext.markdown.ui/plugin.xml new file mode 100644 index 0000000..c88100c --- /dev/null +++ b/org.eclipse.mylyn.wikitext.markdown.ui/plugin.xml @@ -0,0 +1,20 @@ + + + + + + + + +