diff --git a/packaging/org.obeonetwork.dsl.uml2.runtime.feature/feature.xml b/packaging/org.obeonetwork.dsl.uml2.runtime.feature/feature.xml index 81818d76e..680a6fbdd 100644 --- a/packaging/org.obeonetwork.dsl.uml2.runtime.feature/feature.xml +++ b/packaging/org.obeonetwork.dsl.uml2.runtime.feature/feature.xml @@ -263,13 +263,6 @@ litigation. version="0.0.0" unpack="false"/> - - - - - - - - - - diff --git a/plugins/org.obeonetwork.dsl.uml2.migration/.project b/plugins/org.obeonetwork.dsl.uml2.migration/.project deleted file mode 100644 index 1a1d1a882..000000000 --- a/plugins/org.obeonetwork.dsl.uml2.migration/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - org.obeonetwork.dsl.uml2.migration - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/plugins/org.obeonetwork.dsl.uml2.migration/.settings/org.eclipse.core.resources.prefs b/plugins/org.obeonetwork.dsl.uml2.migration/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c020..000000000 --- a/plugins/org.obeonetwork.dsl.uml2.migration/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/plugins/org.obeonetwork.dsl.uml2.migration/.settings/org.eclipse.core.runtime.prefs b/plugins/org.obeonetwork.dsl.uml2.migration/.settings/org.eclipse.core.runtime.prefs deleted file mode 100644 index 5a0ad22d2..000000000 --- a/plugins/org.obeonetwork.dsl.uml2.migration/.settings/org.eclipse.core.runtime.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -line.separator=\n diff --git a/plugins/org.obeonetwork.dsl.uml2.migration/.settings/org.eclipse.jdt.core.prefs b/plugins/org.obeonetwork.dsl.uml2.migration/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index cac17616d..000000000 --- a/plugins/org.obeonetwork.dsl.uml2.migration/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,292 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 -org.eclipse.jdt.core.compiler.compliance=1.6 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.6 -org.eclipse.jdt.core.formatter.align_type_members_on_columns=false -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_assignment=0 -org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 -org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 -org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 -org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 -org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 -org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 -org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=0 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=0 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 -org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=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_lambda_body=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=true -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=true -org.eclipse.jdt.core.formatter.comment.format_block_comments=true -org.eclipse.jdt.core.formatter.comment.format_header=false -org.eclipse.jdt.core.formatter.comment.format_html=true -org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true -org.eclipse.jdt.core.formatter.comment.format_line_comments=true -org.eclipse.jdt.core.formatter.comment.format_source_code=true -org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true -org.eclipse.jdt.core.formatter.comment.indent_root_tags=true -org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert -org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert -org.eclipse.jdt.core.formatter.comment.line_length=110 -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=true -org.eclipse.jdt.core.formatter.indentation.size=8 -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=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=do not 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_lambda_arrow=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=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert -org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=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=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert -org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.join_lines_in_comments=true -org.eclipse.jdt.core.formatter.join_wrapped_lines=true -org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false -org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false -org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=110 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=tab -org.eclipse.jdt.core.formatter.tabulation.size=4 -org.eclipse.jdt.core.formatter.use_on_off_tags=false -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true -org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true -org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true -org.eclipse.jdt.core.javaFormatter=org.eclipse.jdt.core.defaultJavaFormatter diff --git a/plugins/org.obeonetwork.dsl.uml2.migration/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.obeonetwork.dsl.uml2.migration/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 08e920c19..000000000 --- a/plugins/org.obeonetwork.dsl.uml2.migration/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,3 +0,0 @@ -eclipse.preferences.version=1 -formatter_profile=_Obeo Code Formatter -formatter_settings_version=12 diff --git a/plugins/org.obeonetwork.dsl.uml2.migration/META-INF/MANIFEST.MF b/plugins/org.obeonetwork.dsl.uml2.migration/META-INF/MANIFEST.MF deleted file mode 100644 index 19de6115c..000000000 --- a/plugins/org.obeonetwork.dsl.uml2.migration/META-INF/MANIFEST.MF +++ /dev/null @@ -1,19 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: UML Designer Project Migration -Bundle-SymbolicName: org.obeonetwork.dsl.uml2.migration;singleton:=true -Bundle-Version: 8.0.0.qualifier -Bundle-Activator: org.obeonetwork.dsl.uml2.migration.Activator -Bundle-Vendor: Obeo -Require-Bundle: org.eclipse.ui, - org.eclipse.core.runtime, - org.eclipse.core.resources, - com.google.guava, - org.eclipse.sirius.ui, - org.eclipse.ui.ide, - org.eclipse.emf.ecore.xmi, - org.eclipse.sirius.ext.base, - org.eclipse.sirius.diagram, - org.obeonetwork.dsl.uml2.design -Bundle-RequiredExecutionEnvironment: J2SE-1.5 -Bundle-ActivationPolicy: lazy diff --git a/plugins/org.obeonetwork.dsl.uml2.migration/build.properties b/plugins/org.obeonetwork.dsl.uml2.migration/build.properties deleted file mode 100644 index e9863e281..000000000 --- a/plugins/org.obeonetwork.dsl.uml2.migration/build.properties +++ /dev/null @@ -1,5 +0,0 @@ -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - plugin.xml diff --git a/plugins/org.obeonetwork.dsl.uml2.migration/plugin.xml b/plugins/org.obeonetwork.dsl.uml2.migration/plugin.xml deleted file mode 100644 index cd7a4b616..000000000 --- a/plugins/org.obeonetwork.dsl.uml2.migration/plugin.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.obeonetwork.dsl.uml2.migration/pom.xml b/plugins/org.obeonetwork.dsl.uml2.migration/pom.xml deleted file mode 100644 index 7f34841a3..000000000 --- a/plugins/org.obeonetwork.dsl.uml2.migration/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - 4.0.0 - - - org.obeonetwork.dsl.uml2 - parent - 8.0.0-SNAPSHOT - ../../releng/org.obeonetwork.dsl.uml2.parent - - - org.obeonetwork.dsl.uml2.migration - eclipse-plugin - - Migrate UML Designer 3.0 project to UML Designer 4.0 - - - - - org.eclipse.tycho - tycho-source-plugin - - - org.apache.maven.plugins - maven-pmd-plugin - - - - - diff --git a/plugins/org.obeonetwork.dsl.uml2.migration/src/org/obeonetwork/dsl/uml2/migration/Activator.java b/plugins/org.obeonetwork.dsl.uml2.migration/src/org/obeonetwork/dsl/uml2/migration/Activator.java deleted file mode 100644 index c015cbb41..000000000 --- a/plugins/org.obeonetwork.dsl.uml2.migration/src/org/obeonetwork/dsl/uml2/migration/Activator.java +++ /dev/null @@ -1,69 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Obeo. - * 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: - * Obeo - initial API and implementation - *******************************************************************************/ -package org.obeonetwork.dsl.uml2.migration; - -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Status; -import org.eclipse.ui.plugin.AbstractUIPlugin; -import org.osgi.framework.BundleContext; - -/** - * The activator class controls the plug-in life cycle. - * - * @author Melanie Bats melanie.bats@obeo.fr - */ -public class Activator extends AbstractUIPlugin { - - // The plug-in ID - public static final String PLUGIN_ID = "org.obeonetwork.dsl.uml2.migration"; //$NON-NLS-1$ - - // The shared instance - private static Activator plugin; - - /** - * The constructor - */ - public Activator() { - } - - /* - * (non-Javadoc) - * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext ) - */ - public void start(BundleContext context) throws Exception { - super.start(context); - plugin = this; - } - - /* - * (non-Javadoc) - * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext ) - */ - public void stop(BundleContext context) throws Exception { - plugin = null; - super.stop(context); - } - - /** - * Returns the shared instance - * - * @return the shared instance - */ - public static Activator getDefault() { - return plugin; - } - - public void logError(Throwable e) { - final IStatus status = new Status(IStatus.ERROR, Activator.PLUGIN_ID, IStatus.ERROR, e.getMessage(), - e); - Activator.getDefault().getLog().log(status); - } -} diff --git a/plugins/org.obeonetwork.dsl.uml2.migration/src/org/obeonetwork/dsl/uml2/migration/MigrateUMLProject.java b/plugins/org.obeonetwork.dsl.uml2.migration/src/org/obeonetwork/dsl/uml2/migration/MigrateUMLProject.java deleted file mode 100644 index 3eb523564..000000000 --- a/plugins/org.obeonetwork.dsl.uml2.migration/src/org/obeonetwork/dsl/uml2/migration/MigrateUMLProject.java +++ /dev/null @@ -1,57 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Obeo. - * 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: - * Obeo - initial API and implementation - *******************************************************************************/ -package org.obeonetwork.dsl.uml2.migration; - -import java.lang.reflect.InvocationTargetException; -import java.util.List; - -import org.eclipse.core.commands.AbstractHandler; -import org.eclipse.core.commands.ExecutionEvent; -import org.eclipse.core.commands.ExecutionException; -import org.eclipse.core.resources.IProject; -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.ui.PlatformUI; -import org.eclipse.ui.handlers.HandlerUtil; - -import com.google.common.collect.Lists; - -/** - * Handle the migrate project action. - * - * @author Melanie Bats melanie.bats@obeo.fr - */ -public class MigrateUMLProject extends AbstractHandler { - - public Object execute(ExecutionEvent event) throws ExecutionException { - ISelection selection = HandlerUtil.getCurrentSelection(event); - List projectsToMigrate = Lists.newArrayList(); - if (selection instanceof StructuredSelection) { - for (Object obj : ((StructuredSelection)selection).toArray()) { - if (obj instanceof IProject) { - projectsToMigrate.add((IProject)obj); - } - } - } - - for (IProject project : projectsToMigrate) { - UmlProjectMigrationOperation migrate = new UmlProjectMigrationOperation(project); - try { - PlatformUI.getWorkbench().getActiveWorkbenchWindow().run(true, false, migrate); - } catch (InvocationTargetException e) { - Activator.getDefault().logError(e); - } catch (InterruptedException e) { - Activator.getDefault().logError(e); - } - } - return null; - } -} diff --git a/plugins/org.obeonetwork.dsl.uml2.migration/src/org/obeonetwork/dsl/uml2/migration/UmlDesigner3To4RepresentationsFileMigrationParticipant.java b/plugins/org.obeonetwork.dsl.uml2.migration/src/org/obeonetwork/dsl/uml2/migration/UmlDesigner3To4RepresentationsFileMigrationParticipant.java deleted file mode 100644 index 445e4a39b..000000000 --- a/plugins/org.obeonetwork.dsl.uml2.migration/src/org/obeonetwork/dsl/uml2/migration/UmlDesigner3To4RepresentationsFileMigrationParticipant.java +++ /dev/null @@ -1,128 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Obeo. - * 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: - * Obeo - initial API and implementation - *******************************************************************************/ -package org.obeonetwork.dsl.uml2.migration; - -import org.eclipse.sirius.business.api.migration.AbstractRepresentationsFileMigrationParticipant; -import org.eclipse.sirius.ext.base.Option; -import org.eclipse.sirius.ext.base.Options; -import org.osgi.framework.Version; - -/** - * Use the Sirius migration framework to migrate UML Designer 3.0 aird to UML Designer 4.0. The viewpoints - * were renamed and the representation reordered. - * - * @author Melanie Bats melanie.bats@obeo.fr - */ -public class UmlDesigner3To4RepresentationsFileMigrationParticipant extends AbstractRepresentationsFileMigrationParticipant { - /** - * The VP version for which this migration is added. - */ - private static final Version MIGRATION_VERSION = new Version("8.1.0"); - - public Version getMigrationVersion() { - return MIGRATION_VERSION; - } - - public Option getNewFragment(String uriFragment) { - if (uriFragment.contains( - "//@ownedViewpoints[name='UML%20Structural%20Modeling']/@ownedRepresentations[name='Reused%20Description']")) { - String newUriFragment = uriFragment.replace( - "//@ownedViewpoints[name='UML%20Structural%20Modeling']/@ownedRepresentations[name='Reused%20Description']", - "//@ownedViewpoints[name='Capture']/@ownedRepresentations[name='Reused%20Description']"); - return Options.newSome(newUriFragment); - } else if (uriFragment.contains( - "//@ownedViewpoints[name='UML%20Structural%20Modeling']/@ownedRepresentations[name='Package%20Hierarchy']")) { - String newUriFragment = uriFragment.replace( - "//@ownedViewpoints[name='UML%20Structural%20Modeling']/@ownedRepresentations[name='Package%20Hierarchy']", - "//@ownedViewpoints[name='Capture']/@ownedRepresentations[name='Package%20Hierarchy']"); - return Options.newSome(newUriFragment); - } else if (uriFragment.contains( - "//@ownedViewpoints[name='UML%20Behavioral%20Modeling']/@ownedRepresentations[name='Use%20Case%20Diagram']")) { - String newUriFragment = uriFragment.replace( - "//@ownedViewpoints[name='UML%20Behavioral%20Modeling']/@ownedRepresentations[name='Use%20Case%20Diagram']", - "//@ownedViewpoints[name='Capture']/@ownedRepresentations[name='Use%20Case%20Diagram']"); - return Options.newSome(newUriFragment); - } else if (uriFragment.contains( - "//@ownedViewpoints[name='UML%20Structural%20Modeling']/@ownedRepresentations[name='Class%20Diagram']")) { - String newUriFragment = uriFragment.replace( - "//@ownedViewpoints[name='UML%20Structural%20Modeling']/@ownedRepresentations[name='Class%20Diagram']", - "//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Class%20Diagram']"); - return Options.newSome(newUriFragment); - } else if (uriFragment.contains( - "//@ownedViewpoints[name='UML%20Structural%20Modeling']/@ownedRepresentations[name='Component%20Diagram']")) { - String newUriFragment = uriFragment.replace( - "//@ownedViewpoints[name='UML%20Structural%20Modeling']/@ownedRepresentations[name='Component%20Diagram']", - "//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Component%20Diagram']"); - return Options.newSome(newUriFragment); - } else if (uriFragment.contains( - "//@ownedViewpoints[name='UML%20Structural%20Modeling']/@ownedRepresentations[name='Composite%20Structure%20Diagram']")) { - String newUriFragment = uriFragment.replace( - "//@ownedViewpoints[name='UML%20Structural%20Modeling']/@ownedRepresentations[name='Composite%20Structure%20Diagram']", - "//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Composite%20Structure%20Diagram']"); - return Options.newSome(newUriFragment); - } else if (uriFragment.contains( - "//@ownedViewpoints[name='UML%20Structural%20Modeling']/@ownedRepresentations[name='Deployment%20Diagram']")) { - String newUriFragment = uriFragment.replace( - "//@ownedViewpoints[name='UML%20Structural%20Modeling']/@ownedRepresentations[name='Deployment%20Diagram']", - "//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Deployment%20Diagram']"); - return Options.newSome(newUriFragment); - } else if (uriFragment.contains( - "//@ownedViewpoints[name='UML%20Behavioral%20Modeling']/@ownedRepresentations[name='State%20Machine%20Diagram']")) { - String newUriFragment = uriFragment.replace( - "//@ownedViewpoints[name='UML%20Behavioral%20Modeling']/@ownedRepresentations[name='State%20Machine%20Diagram']", - "//@ownedViewpoints[name='Design']/@ownedRepresentations[name='State%20Machine%20Diagram']"); - return Options.newSome(newUriFragment); - } else if (uriFragment.contains( - "//@ownedViewpoints[name='UML%20Behavioral%20Modeling']/@ownedRepresentations[name='Activity%20Diagram']")) { - String newUriFragment = uriFragment.replace( - "//@ownedViewpoints[name='UML%20Behavioral%20Modeling']/@ownedRepresentations[name='Activity%20Diagram']", - "//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Activity%20Diagram']"); - return Options.newSome(newUriFragment); - } else if (uriFragment.contains( - "//@ownedViewpoints[name='UML%20Behavioral%20Modeling']/@ownedRepresentations[name='Sequence%20Diagram']")) { - String newUriFragment = uriFragment.replace( - "//@ownedViewpoints[name='UML%20Behavioral%20Modeling']/@ownedRepresentations[name='Sequence%20Diagram']", - "//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Sequence%20Diagram']"); - return Options.newSome(newUriFragment); - } else if (uriFragment.contains( - "//@ownedViewpoints[name='UML%20Extensions']/@ownedRepresentations[name='Documentation%20Table']")) { - String newUriFragment = uriFragment.replace( - "//@ownedViewpoints[name='UML%20Extensions']/@ownedRepresentations[name='Documentation%20Table']", - "//@ownedViewpoints[name='Review']/@ownedRepresentations[name='Documentation%20Table']"); - return Options.newSome(newUriFragment); - } else if (uriFragment.contains( - "//@ownedViewpoints[name='UML%20Extensions']/@ownedRepresentations[name='Package%20Containment']")) { - String newUriFragment = uriFragment.replace( - "//@ownedViewpoints[name='UML%20Extensions']/@ownedRepresentations[name='Package%20Containment']", - "//@ownedViewpoints[name='Review']/@ownedRepresentations[name='Package%20Containment']"); - return Options.newSome(newUriFragment); - } else if (uriFragment.contains( - "//@ownedViewpoints[name='UML%20Extensions']/@ownedRepresentations[name='Use%20Case%20Cross%20Table']")) { - String newUriFragment = uriFragment.replace( - "//@ownedViewpoints[name='UML%20Extensions']/@ownedRepresentations[name='Use%20Case%20Cross%20Table']", - "//@ownedViewpoints[name='Review']/@ownedRepresentations[name='Use%20Case%20Cross%20Table']"); - return Options.newSome(newUriFragment); - } else if (uriFragment.contains( - "//@ownedViewpoints[name='UML%20Extensions']/@ownedRepresentations[name='Use%20Case%20Cross%20Table']")) { - String newUriFragment = uriFragment.replace( - "//@ownedViewpoints[name='UML%20Extensions']/@ownedRepresentations[name='Use%20Case%20Cross%20Table']", - "//@ownedViewpoints[name='Review']/@ownedRepresentations[name='Use%20Case%20Cross%20Table']"); - return Options.newSome(newUriFragment); - } else if (uriFragment.contains( - "//@ownedViewpoints[name='UML%20Profile%20Design']/@ownedRepresentations[name='Profile%20Diagram']")) { - String newUriFragment = uriFragment.replace( - "//@ownedViewpoints[name='UML%20Profile%20Design']/@ownedRepresentations[name='Profile%20Diagram']", - "//@ownedViewpoints[name='Extend']/@ownedRepresentations[name='Profile%20Diagram']"); - return Options.newSome(newUriFragment); - } - return super.getNewFragment(uriFragment); - } -} diff --git a/plugins/org.obeonetwork.dsl.uml2.migration/src/org/obeonetwork/dsl/uml2/migration/UmlDesigner4To5RepresentationsFileMigrationParticipant.java b/plugins/org.obeonetwork.dsl.uml2.migration/src/org/obeonetwork/dsl/uml2/migration/UmlDesigner4To5RepresentationsFileMigrationParticipant.java deleted file mode 100644 index 5cb756f51..000000000 --- a/plugins/org.obeonetwork.dsl.uml2.migration/src/org/obeonetwork/dsl/uml2/migration/UmlDesigner4To5RepresentationsFileMigrationParticipant.java +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Obeo. - * 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: - * Obeo - initial API and implementation - *******************************************************************************/ -package org.obeonetwork.dsl.uml2.migration; - -import org.eclipse.sirius.business.api.migration.AbstractRepresentationsFileMigrationParticipant; -import org.eclipse.sirius.ext.base.Option; -import org.eclipse.sirius.ext.base.Options; -import org.osgi.framework.Version; - -/** - * Use the Sirius migration framework to migrate UML Designer 4.0 aird to UML Designer 5.0. The viewpoints - * were renamed and the representation reordered. - * - * @author Melanie Bats melanie.bats@obeo.fr - */ -public class UmlDesigner4To5RepresentationsFileMigrationParticipant extends AbstractRepresentationsFileMigrationParticipant { - /** - * The VP version for which this migration is added. - */ - private static final Version MIGRATION_VERSION = new Version("9.0.0"); - - public Version getMigrationVersion() { - return MIGRATION_VERSION; - } - - public Option getNewFragment(String uriFragment) { - if (uriFragment.contains( - "//@ownedViewpoints[name='Capture']/@ownedRepresentations[name='Reused%20Description']")) { - String newUriFragment = uriFragment.replace( - "//@ownedViewpoints[name='Capture']/@ownedRepresentations[name='Reused%20Description']", - "//@ownedViewpoints[name='Reused']/@ownedRepresentations[name='Reused%20Description']"); - return Options.newSome(newUriFragment); - } - return super.getNewFragment(uriFragment); - } -} diff --git a/plugins/org.obeonetwork.dsl.uml2.migration/src/org/obeonetwork/dsl/uml2/migration/UmlProjectMigrationOperation.java b/plugins/org.obeonetwork.dsl.uml2.migration/src/org/obeonetwork/dsl/uml2/migration/UmlProjectMigrationOperation.java deleted file mode 100644 index deac1d4c2..000000000 --- a/plugins/org.obeonetwork.dsl.uml2.migration/src/org/obeonetwork/dsl/uml2/migration/UmlProjectMigrationOperation.java +++ /dev/null @@ -1,97 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2012 Obeo. - * 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: - * Obeo - initial API and implementation - *******************************************************************************/ -package org.obeonetwork.dsl.uml2.migration; - -import java.lang.reflect.InvocationTargetException; - -import org.eclipse.core.resources.IProject; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.sirius.business.api.modelingproject.ModelingProject; -import org.eclipse.sirius.business.api.session.Session; -import org.eclipse.sirius.ext.base.Option; -import org.eclipse.sirius.ext.base.Options; -import org.eclipse.sirius.ui.tools.api.project.ModelingProjectManager; -import org.eclipse.ui.IWorkbenchPage; -import org.eclipse.ui.IWorkbenchWindow; -import org.eclipse.ui.PlatformUI; -import org.eclipse.ui.actions.WorkspaceModifyOperation; -import org.obeonetwork.dsl.uml2.design.api.utils.UmlViewpoints; - -/** - * UML Designer 3.0 to UML Designer 4.0 migration operation. It converts the existing project to a sirius - * modeling project, activates all the new viewpoints. - * - * @author Melanie Bats melanie.bats@obeo.fr - */ -public class UmlProjectMigrationOperation extends WorkspaceModifyOperation { - private IProject project; - - private IWorkbenchPage page; - - private IWorkbenchWindow window; - - public UmlProjectMigrationOperation(IProject project) { - this.project = project; - window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); - page = window.getActivePage(); - } - - protected void execute(IProgressMonitor monitor) - throws CoreException, InvocationTargetException, InterruptedException { - try { - monitor.beginTask("Migrate the project : ", 100); - // Convert to modeling project - monitor.subTask("Convert to modeling project..."); - Option modelingProject = convertToModelingProject(monitor); - monitor.worked(25); - // Close all existing open editors - monitor.subTask("Close all opened editors..."); - closeOpenedEditors(); - monitor.worked(25); - - if (modelingProject.some()) { - monitor.subTask("Activate UML viewpoints..."); - Session session = modelingProject.get().getSession(); - // Activate viewpoints - UmlViewpoints.enable(session); - monitor.worked(25); - } - // Save migrated project - monitor.subTask("Close the project..."); - project.close(monitor); - monitor.subTask("Re-open the project..."); - project.open(monitor); - monitor.worked(25); - // close and reopened it - } finally { - monitor.done(); - } - } - - private Option convertToModelingProject(IProgressMonitor monitor) { - /* Convert the existing UML project to a modeling project. */ - try { - ModelingProjectManager.INSTANCE.convertToModelingProject(project, monitor); - Option optionalModelingProject = ModelingProject.asModelingProject(project); - if (optionalModelingProject.some()) { - return optionalModelingProject; - } - } catch (CoreException e) { - Activator.getDefault().logError(e); - } - return Options.newNone(); - } - - private void closeOpenedEditors() { - page.closeAllEditors(false); - } -} diff --git a/releng/org.obeonetwork.dsl.uml2.parent/pom.xml b/releng/org.obeonetwork.dsl.uml2.parent/pom.xml index 3b984af15..fda8549fb 100644 --- a/releng/org.obeonetwork.dsl.uml2.parent/pom.xml +++ b/releng/org.obeonetwork.dsl.uml2.parent/pom.xml @@ -34,7 +34,6 @@ Contributors: ../../plugins/org.obeonetwork.dsl.uml2.design.doc ../../plugins/org.obeonetwork.dsl.uml2.usage ../../plugins/org.obeonetwork.dsl.uml2.navigator - ../../plugins/org.obeonetwork.dsl.uml2.migration ../../plugins/org.obeonetwork.dsl.uml2.discovery ../../plugins/org.eclipse.umlgen.ui ../../plugins/org.eclipse.umlgen.gen.java