Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui')
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/.classpath14
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/.settings/org.eclipse.jdt.core.prefs582
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/META-INF/MANIFEST.MF38
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/OSGI-INF/l10n/bundle.properties72
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/about.html54
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/build.properties18
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/org.eclipse.papyrus.emf.facet.custom.sdk.ui.modelcelleditors16
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/plugin.xml404
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/dialog/ICustomizationDialogFactory.java124
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/Activator.java102
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/Messages.java144
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/dialog/CustomizationDialogFactory.java166
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/messages.properties110
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/AbstractCustomizationMainDialog.java118
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/AbstractGetCustomizationDialog.java66
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/AbstractGetOrCreateCustomizationDialog.java118
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/command/AddCaseQueryDialog.java156
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/command/AddCustomizationPropertyDialog.java146
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/command/CreateEClassCustomizationDialog.java190
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/command/CreateFacetCustomizationDialog.java140
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/getorcreate/GetOrCreateCustomizationDialog.java158
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/selection/GetCustomizedFacetDialog.java142
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/selection/GetExtendedFacetDialog.java144
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/selection/GetFacetOperationDialog.java158
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/sync/SynchronizedAddCaseQueryDialog.java72
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/sync/SynchronizedAddCustomizationPropertyDialog.java72
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/sync/SynchronizedCreateEClassCustomizationDialog.java72
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/sync/SynchronizedCreateFacetCustomizationDialog.java72
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/AddCaseQueryHandler.java84
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/AddCustomizationPropertyInEClassHandler.java84
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/AddCustomizationPropertyInFacetHandler.java84
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/CreateEClassCustomizationHandler.java82
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/CreateFacetCustomizationHandler.java80
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/AddCaseQueryWidget.java186
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/AddCustomizationPropertyWidget.java236
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/CreateEClassCustomizationWidget.java356
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/CreateFacetCustomizationWidget.java244
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/GetOrCreateCustomizationWidget.java202
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/AbstractGetFacetWidget.java122
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetCustomizedFacetWidget.java124
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetExtendedFacetWidget.java124
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetFiltredCustomizedFacetWidget.java240
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetFiltredExtendedFacetWidget.java238
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetFiltredOperationFacetWidget.java194
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetOperationFacetWidget.java164
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetOrCreateCustomizationWidget.java170
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/metaclass/GetExtendedMetaclassWidget.java168
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/property/name/GetCaseQueryNameWidget.java136
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/property/name/GetCaseQueryTypeWidget.java118
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/property/name/GetEClassCustomizationNameWidget.java118
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/wizard/CreateCustimizationWizardImpl.java532
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/wizard/page/CreateCustomizationWizardPage.java224
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/wizard/page/CustomPropertyWizardPage.java224
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/widgets/celleditors/ImageCellEditor.java102
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/widgets/celleditors/composite/ImageComposite.java264
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/widgets/celleditors/composite/ImageCompositeFactory.java56
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/wizard/page/ICreateCustomizationWizardPage.java62
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/wizard/page/ICustomizationPropertyWizardPage.java100
58 files changed, 4393 insertions, 4393 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/.classpath b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/.classpath
index da1049abda9..e721d0c4eaa 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/.classpath
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/.classpath
@@ -1,7 +1,7 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src/"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src/"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/.settings/org.eclipse.jdt.core.prefs b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/.settings/org.eclipse.jdt.core.prefs
index 4759947300a..c585cc455ae 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/.settings/org.eclipse.jdt.core.prefs
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/.settings/org.eclipse.jdt.core.prefs
@@ -1,291 +1,291 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
-org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_assignment=0
-org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
-org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
-org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
-org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
-org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
-org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
-org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
-org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
-org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
-org.eclipse.jdt.core.formatter.blank_lines_after_package=1
-org.eclipse.jdt.core.formatter.blank_lines_before_field=0
-org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
-org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
-org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
-org.eclipse.jdt.core.formatter.blank_lines_before_method=1
-org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
-org.eclipse.jdt.core.formatter.blank_lines_before_package=0
-org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
-org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
-org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_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=false
-org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
-org.eclipse.jdt.core.formatter.comment.format_block_comments=true
-org.eclipse.jdt.core.formatter.comment.format_header=false
-org.eclipse.jdt.core.formatter.comment.format_html=true
-org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
-org.eclipse.jdt.core.formatter.comment.format_line_comments=true
-org.eclipse.jdt.core.formatter.comment.format_source_code=true
-org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
-org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
-org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
-org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
-org.eclipse.jdt.core.formatter.comment.line_length=260
-org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
-org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
-org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
-org.eclipse.jdt.core.formatter.compact_else_if=true
-org.eclipse.jdt.core.formatter.continuation_indentation=2
-org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
-org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
-org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
-org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
-org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
-org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
-org.eclipse.jdt.core.formatter.indent_empty_lines=false
-org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
-org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
-org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
-org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
-org.eclipse.jdt.core.formatter.indentation.size=4
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=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_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=insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
-org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
-org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_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=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=false
-org.eclipse.jdt.core.formatter.join_wrapped_lines=false
-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=260
-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=5
-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
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_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=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=260
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=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_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=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_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=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=false
+org.eclipse.jdt.core.formatter.join_wrapped_lines=false
+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=260
+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=5
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=tab
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/META-INF/MANIFEST.MF b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/META-INF/MANIFEST.MF
index cd53f4b1e3f..afae6fa4424 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/META-INF/MANIFEST.MF
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/META-INF/MANIFEST.MF
@@ -1,19 +1,19 @@
-Manifest-Version: 1.0
-Export-Package: org.eclipse.papyrus.emf.facet.custom.sdk.ui.dialog
-Require-Bundle: org.eclipse.ui;bundle-version="[3.107.0,4.0.0)",
- org.eclipse.papyrus.emf.facet.widgets.celleditors;bundle-version="[1.2.0,2.0.0)",
- org.eclipse.papyrus.emf.facet.custom.ui;bundle-version="[3.0.0,4.0.0)",
- org.eclipse.papyrus.emf.facet.util.core;bundle-version="[1.2.0,2.0.0)",
- org.eclipse.papyrus.emf.facet.custom.sdk.core;bundle-version="[1.2.0,2.0.0)",
- org.eclipse.papyrus.emf.facet.efacet.sdk.ui;bundle-version="[2.0.0,3.0.0)",
- org.eclipse.papyrus.emf.facet.efacet.ui;bundle-version="[3.0.0,4.0.0)",
- org.eclipse.ui.ide;bundle-version="[3.12.0,4.0.0)",
- org.eclipse.core.expressions;bundle-version="[3.5.0,4.0.0)"
-Bundle-Vendor: %Bundle-Vendor
-Bundle-ActivationPolicy: lazy
-Bundle-Version: 1.2.0.qualifier
-Bundle-Name: %Bundle-Name
-Bundle-ManifestVersion: 2
-Bundle-Activator: org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Activator
-Bundle-SymbolicName: org.eclipse.papyrus.emf.facet.custom.sdk.ui;singleton:=true
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Manifest-Version: 1.0
+Export-Package: org.eclipse.papyrus.emf.facet.custom.sdk.ui.dialog
+Require-Bundle: org.eclipse.ui;bundle-version="[3.107.0,4.0.0)",
+ org.eclipse.papyrus.emf.facet.widgets.celleditors;bundle-version="[1.2.0,2.0.0)",
+ org.eclipse.papyrus.emf.facet.custom.ui;bundle-version="[3.0.0,4.0.0)",
+ org.eclipse.papyrus.emf.facet.util.core;bundle-version="[1.2.0,2.0.0)",
+ org.eclipse.papyrus.emf.facet.custom.sdk.core;bundle-version="[1.2.0,2.0.0)",
+ org.eclipse.papyrus.emf.facet.efacet.sdk.ui;bundle-version="[2.0.0,3.0.0)",
+ org.eclipse.papyrus.emf.facet.efacet.ui;bundle-version="[3.0.0,4.0.0)",
+ org.eclipse.ui.ide;bundle-version="[3.12.0,4.0.0)",
+ org.eclipse.core.expressions;bundle-version="[3.5.0,4.0.0)"
+Bundle-Vendor: %Bundle-Vendor
+Bundle-ActivationPolicy: lazy
+Bundle-Version: 1.2.0.qualifier
+Bundle-Name: %Bundle-Name
+Bundle-ManifestVersion: 2
+Bundle-Activator: org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Activator
+Bundle-SymbolicName: org.eclipse.papyrus.emf.facet.custom.sdk.ui;singleton:=true
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/OSGI-INF/l10n/bundle.properties b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/OSGI-INF/l10n/bundle.properties
index 533b9a64251..8295da4c620 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/OSGI-INF/l10n/bundle.properties
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/OSGI-INF/l10n/bundle.properties
@@ -1,37 +1,37 @@
-###############################################################################
-# Copyright (c) 2012 CEA LIST.
-# 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:
-# Nicolas Bros (Mia-Software) - Bug 375388 - Cell editor for IImage
-# Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
-###############################################################################
-#Properties file for org.eclipse.papyrus.emf.facet.custom.sdk.ui
-Bundle-Vendor = Eclipse Modeling Project
-Bundle-Name = Papyrus EMF Facet Custom SDK UI
-
-wizard.name = Create a Customization 0.2
-wizard.description = Create a new Customization model
-
-menu.custo.label = EMF Customization Commands
-command.custo.name=Create EClass Customization
-command.custo.name.1=Create Facet Customization
-command.custo.name.2=Add a Customization Property
-command.custo.name.3=Add a Query
-
-menu.label = EMF Facet Commands
-command.name = Create FacetSet in a FacetSet
-command.name.0 = Create Facet in a FacetSet
-command.name.1 = Add Facet Attribute
-command.name.2 = Add Facet Operation
-command.name.3 = Add Parameter to Facet Operation
-command.name.4 = Add Facet Reference
-command.name.5 = Edit FacetSet
-command.name.6 = Edit Facet
-command.name.7 = Edit Facet Attribute
-command.name.8 = Edit Facet Operation
-command.name.9 = Edit Facet Operation Parameter
+###############################################################################
+# Copyright (c) 2012 CEA LIST.
+# 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:
+# Nicolas Bros (Mia-Software) - Bug 375388 - Cell editor for IImage
+# Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+###############################################################################
+#Properties file for org.eclipse.papyrus.emf.facet.custom.sdk.ui
+Bundle-Vendor = Eclipse Modeling Project
+Bundle-Name = Papyrus EMF Facet Custom SDK UI
+
+wizard.name = Create a Customization 0.2
+wizard.description = Create a new Customization model
+
+menu.custo.label = EMF Customization Commands
+command.custo.name=Create EClass Customization
+command.custo.name.1=Create Facet Customization
+command.custo.name.2=Add a Customization Property
+command.custo.name.3=Add a Query
+
+menu.label = EMF Facet Commands
+command.name = Create FacetSet in a FacetSet
+command.name.0 = Create Facet in a FacetSet
+command.name.1 = Add Facet Attribute
+command.name.2 = Add Facet Operation
+command.name.3 = Add Parameter to Facet Operation
+command.name.4 = Add Facet Reference
+command.name.5 = Edit FacetSet
+command.name.6 = Edit Facet
+command.name.7 = Edit Facet Attribute
+command.name.8 = Edit Facet Operation
+command.name.9 = Edit Facet Operation Parameter
command.name.10 = Edit Facet Reference \ No newline at end of file
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/about.html b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/about.html
index 3019b95b9cf..42595040e90 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/about.html
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/about.html
@@ -1,28 +1,28 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>December 22, 2008</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party (&quot;Redistributor&quot;) 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 <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
-
-</body>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>December 22, 2008</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party (&quot;Redistributor&quot;) 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 <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+
+</body>
</html> \ No newline at end of file
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/build.properties b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/build.properties
index ba2c24ec4f4..e0f0b9a1e0a 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/build.properties
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/build.properties
@@ -1,10 +1,10 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- org.eclipse.papyrus.emf.facet.custom.sdk.ui.modelcelleditors,\
- icons/,\
- about.html,\
- plugin.xml,\
- OSGI-INF/
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ org.eclipse.papyrus.emf.facet.custom.sdk.ui.modelcelleditors,\
+ icons/,\
+ about.html,\
+ plugin.xml,\
+ OSGI-INF/
src.includes = about.html \ No newline at end of file
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/org.eclipse.papyrus.emf.facet.custom.sdk.ui.modelcelleditors b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/org.eclipse.papyrus.emf.facet.custom.sdk.ui.modelcelleditors
index d521a0f702f..29c3c649129 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/org.eclipse.papyrus.emf.facet.custom.sdk.ui.modelcelleditors
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/org.eclipse.papyrus.emf.facet.custom.sdk.ui.modelcelleditors
@@ -1,8 +1,8 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<modelCellEditor:ModelCellEditorDeclarations xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:modelCellEditor="http://www.eclipse.org/EMF_Facet/ModelCellEditor/0.1.0/modelCellEditor">
- <modelCellEditors xsi:type="modelCellEditor:BasicCellEditor" cellId="iimage_cell" basicCellEditorImpl="org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.widgets.celleditors.ImageCellEditor">
- <cellType xsi:type="ecore:EDataType" href="http://www.eclipse.org/papyrus/emf/facet/custom/0.2.incubation/custom_primitive_types#//Image"/>
- </modelCellEditors>
-</modelCellEditor:ModelCellEditorDeclarations>
+<?xml version="1.0" encoding="UTF-8"?>
+<modelCellEditor:ModelCellEditorDeclarations xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
+ xmlns:modelCellEditor="http://www.eclipse.org/EMF_Facet/ModelCellEditor/0.1.0/modelCellEditor">
+ <modelCellEditors xsi:type="modelCellEditor:BasicCellEditor" cellId="iimage_cell" basicCellEditorImpl="org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.widgets.celleditors.ImageCellEditor">
+ <cellType xsi:type="ecore:EDataType" href="http://www.eclipse.org/papyrus/emf/facet/custom/0.2.incubation/custom_primitive_types#//Image"/>
+ </modelCellEditors>
+</modelCellEditor:ModelCellEditorDeclarations>
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/plugin.xml b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/plugin.xml
index c16677d88d7..d83eca37a30 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/plugin.xml
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/plugin.xml
@@ -1,203 +1,203 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<!--
- Copyright (c) 2012 Mia-Software.
-
- 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:
- Nicolas Bros (Mia-Software) - Bug 375388 - Cell editor for IImage
- Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
--->
-<plugin>
- <extension point="org.eclipse.papyrus.emf.facet.widgets.celleditors.celleditors">
- <cellEditorsModel path="org.eclipse.papyrus.emf.facet.custom.sdk.ui.modelcelleditors"/>
- </extension>
- <extension point="org.eclipse.papyrus.emf.facet.widgets.celleditors.compositeEditorFactories">
- <compositeEditorFactory class="org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.widgets.celleditors.composite.ImageCompositeFactory"/>
- </extension>
-
- <extension
- point="org.eclipse.ui.commands">
- <command
- defaultHandler="org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.handler.CreateEClassCustomizationHandler"
- id="org.eclipse.papyrus.emf.facet.custom.sdk.ui.CreateEClassCustomization"
- name="%command.custo.name">
- </command>
- <command
- defaultHandler="org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.handler.CreateFacetCustomizationHandler"
- id="org.eclipse.papyrus.emf.facet.custom.sdk.ui.CreateFacetCustomization"
- name="%command.custo.name.1">
- </command>
- <command
- defaultHandler="org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.handler.AddCustomizationPropertyInEClassHandler"
- id="org.eclipse.papyrus.emf.facet.custom.sdk.ui.AddCustomization"
- name="%command.custo.name.2">
- </command>
- <command
- defaultHandler="org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.handler.AddCaseQueryHandler"
- id="org.eclipse.papyrus.emf.facet.custom.sdk.ui.AddCaseQuery"
- name="%command.custo.name.3">
- </command>
- </extension>
- <extension
- point="org.eclipse.ui.menus">
- <menuContribution
- allPopups="true"
- locationURI="popup:org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.presentation.CustomEditorID?before=edit">
- <menu
- label="%menu.custo.label">
- <command
- commandId="org.eclipse.papyrus.emf.facet.custom.sdk.ui.CreateEClassCustomization"
- icon="icons/full/obj16/CustomModelFile.gif"
- label="%command.custo.name"
- style="push">
- <visibleWhen
- checkEnabled="true">
- </visibleWhen>
- </command>
- <command
- commandId="org.eclipse.papyrus.emf.facet.custom.sdk.ui.CreateFacetCustomization"
- icon="icons/full/obj16/CustomModelFile.gif"
- label="%command.custo.name.1"
- style="push">
- <visibleWhen
- checkEnabled="true">
- </visibleWhen>
- </command>
- <command
- commandId="org.eclipse.papyrus.emf.facet.custom.sdk.ui.AddCustomization"
- icon="icons/full/obj16/CustomModelFile.gif"
- label="%command.custo.name.2"
- style="push">
- <visibleWhen
- checkEnabled="true">
- </visibleWhen>
- </command>
- <command
- commandId="org.eclipse.papyrus.emf.facet.custom.sdk.ui.AddCaseQuery"
- icon="icons/querySet.gif"
- label="%command.custo.name.3"
- style="push">
- <visibleWhen
- checkEnabled="true">
- </visibleWhen>
- </command>
- </menu>
- <menu
- label="%menu.label">
- <command
- commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.createFacetSetInFacetSet"
- icon="icons/FacetSet.gif"
- label="%command.name"
- style="push">
- <visibleWhen
- checkEnabled="true">
- </visibleWhen>
- </command>
- <command
- commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.createFacetInFacetSet"
- icon="icons/facet.gif"
- label="%command.name.0"
- style="push">
- <visibleWhen
- checkEnabled="true">
- </visibleWhen>
- </command>
- <command
- commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.addAttributeInFacet"
- icon="icons/FacetAttribute.gif"
- label="%command.name.1"
- style="push">
- <visibleWhen
- checkEnabled="true">
- </visibleWhen>
- </command>
- <command
- commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.addOperationInFacet"
- icon="icons/FacetOperation.gif"
- label="%command.name.2"
- style="push">
- <visibleWhen
- checkEnabled="true">
- </visibleWhen>
- </command>
- <command
- commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.addReferenceInFacet"
- icon="icons/FacetReference.gif"
- label="%command.name.4"
- style="push">
- <visibleWhen
- checkEnabled="true">
- </visibleWhen>
- </command>
- <command
- commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.addParameterInOperation"
- icon="icons/ParameterValue.gif"
- label="%command.name.3"
- style="push">
- <visibleWhen
- checkEnabled="true">
- </visibleWhen>
- </command>
- <command
- commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.editFacetSet"
- icon="icons/FacetSet.gif"
- label="%command.name.5"
- style="push">
- <visibleWhen
- checkEnabled="true">
- </visibleWhen>
- </command>
- <command
- commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.editFacet"
- icon="icons/facet.gif"
- label="%command.name.6"
- style="push">
- <visibleWhen
- checkEnabled="true">
- </visibleWhen>
- </command>
- <command
- commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.editFacetAttribute"
- icon="icons/FacetAttribute.gif"
- label="%command.name.7"
- style="push">
- <visibleWhen
- checkEnabled="true">
- </visibleWhen>
- </command>
- <command
- commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.editFacetOperation"
- icon="icons/FacetOperation.gif"
- label="%command.name.8"
- style="push">
- <visibleWhen
- checkEnabled="true">
- </visibleWhen>
- </command>
- <command
- commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.editFacetOperationParameter"
- icon="icons/ParameterValue.gif"
- label="%command.name.9"
- style="push">
- <visibleWhen
- checkEnabled="true">
- </visibleWhen>
- </command>
- <command
- commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.editFacetReference"
- icon="icons/FacetReference.gif"
- label="%command.name.10"
- style="push">
- <visibleWhen
- checkEnabled="true">
- </visibleWhen>
- </command>
- </menu>
- </menuContribution>
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<!--
+ Copyright (c) 2012 Mia-Software.
+
+ 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:
+ Nicolas Bros (Mia-Software) - Bug 375388 - Cell editor for IImage
+ Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+-->
+<plugin>
+ <extension point="org.eclipse.papyrus.emf.facet.widgets.celleditors.celleditors">
+ <cellEditorsModel path="org.eclipse.papyrus.emf.facet.custom.sdk.ui.modelcelleditors"/>
</extension>
-</plugin>
+ <extension point="org.eclipse.papyrus.emf.facet.widgets.celleditors.compositeEditorFactories">
+ <compositeEditorFactory class="org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.widgets.celleditors.composite.ImageCompositeFactory"/>
+ </extension>
+
+ <extension
+ point="org.eclipse.ui.commands">
+ <command
+ defaultHandler="org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.handler.CreateEClassCustomizationHandler"
+ id="org.eclipse.papyrus.emf.facet.custom.sdk.ui.CreateEClassCustomization"
+ name="%command.custo.name">
+ </command>
+ <command
+ defaultHandler="org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.handler.CreateFacetCustomizationHandler"
+ id="org.eclipse.papyrus.emf.facet.custom.sdk.ui.CreateFacetCustomization"
+ name="%command.custo.name.1">
+ </command>
+ <command
+ defaultHandler="org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.handler.AddCustomizationPropertyInEClassHandler"
+ id="org.eclipse.papyrus.emf.facet.custom.sdk.ui.AddCustomization"
+ name="%command.custo.name.2">
+ </command>
+ <command
+ defaultHandler="org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.handler.AddCaseQueryHandler"
+ id="org.eclipse.papyrus.emf.facet.custom.sdk.ui.AddCaseQuery"
+ name="%command.custo.name.3">
+ </command>
+ </extension>
+ <extension
+ point="org.eclipse.ui.menus">
+ <menuContribution
+ allPopups="true"
+ locationURI="popup:org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.presentation.CustomEditorID?before=edit">
+ <menu
+ label="%menu.custo.label">
+ <command
+ commandId="org.eclipse.papyrus.emf.facet.custom.sdk.ui.CreateEClassCustomization"
+ icon="icons/full/obj16/CustomModelFile.gif"
+ label="%command.custo.name"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.eclipse.papyrus.emf.facet.custom.sdk.ui.CreateFacetCustomization"
+ icon="icons/full/obj16/CustomModelFile.gif"
+ label="%command.custo.name.1"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.eclipse.papyrus.emf.facet.custom.sdk.ui.AddCustomization"
+ icon="icons/full/obj16/CustomModelFile.gif"
+ label="%command.custo.name.2"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.eclipse.papyrus.emf.facet.custom.sdk.ui.AddCaseQuery"
+ icon="icons/querySet.gif"
+ label="%command.custo.name.3"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
+ </command>
+ </menu>
+ <menu
+ label="%menu.label">
+ <command
+ commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.createFacetSetInFacetSet"
+ icon="icons/FacetSet.gif"
+ label="%command.name"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.createFacetInFacetSet"
+ icon="icons/facet.gif"
+ label="%command.name.0"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.addAttributeInFacet"
+ icon="icons/FacetAttribute.gif"
+ label="%command.name.1"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.addOperationInFacet"
+ icon="icons/FacetOperation.gif"
+ label="%command.name.2"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.addReferenceInFacet"
+ icon="icons/FacetReference.gif"
+ label="%command.name.4"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.addParameterInOperation"
+ icon="icons/ParameterValue.gif"
+ label="%command.name.3"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.editFacetSet"
+ icon="icons/FacetSet.gif"
+ label="%command.name.5"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.editFacet"
+ icon="icons/facet.gif"
+ label="%command.name.6"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.editFacetAttribute"
+ icon="icons/FacetAttribute.gif"
+ label="%command.name.7"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.editFacetOperation"
+ icon="icons/FacetOperation.gif"
+ label="%command.name.8"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.editFacetOperationParameter"
+ icon="icons/ParameterValue.gif"
+ label="%command.name.9"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.eclipse.papyrus.emf.facet.efacet.sdk.ui.editFacetReference"
+ icon="icons/FacetReference.gif"
+ label="%command.name.10"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
+ </command>
+ </menu>
+ </menuContribution>
+ </extension>
+</plugin>
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/dialog/ICustomizationDialogFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/dialog/ICustomizationDialogFactory.java
index f17b3f5fe38..825103ae95e 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/dialog/ICustomizationDialogFactory.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/dialog/ICustomizationDialogFactory.java
@@ -1,62 +1,62 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Gregoire Dupe (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.dialog;
-
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.dialog.CustomizationDialogFactory;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
-import org.eclipse.swt.widgets.Display;
-
-/**
- * Interface for the dialogs creation factory.
- *
- * @see CustomizationDialogFactorImpl
- * @noextend This interface is not intended to be extended by clients.
- * @noimplement This interface is not intended to be implemented by clients.
- */
-public interface ICustomizationDialogFactory {
-
- ICustomizationDialogFactory DEFAULT = new CustomizationDialogFactory();
-
- /**
- * Create an new Dialog for the creation of a EClass Customization.
- *
- * @param editingDomain
- */
- IDialog openCreateEClassCustomizationDialog(Display display,
- EditingDomain editingDomain);
-
- /**
- * Create an new Dialog for the creation of a Facet Customization.
- *
- * @return the dialog.
- */
- IDialog openCreateFacetCustomizationDialog(Display display,
- EditingDomain editingDomain);
-
- /**
- * Create an new Dialog for the creation of a Customization Operation into a
- * Customization.
- *
- * @return the dialog.
- */
- IDialog openAddCustomizationPropertyDialog(Display display,
- EditingDomain editingDomain);
-
- /**
- * Create an new Dialog for the creation of a Query into a Case.
- *
- * @return the dialog.
- */
- IDialog openAddCaseQueryDialog(Display display, EditingDomain editingDomain);
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Gregoire Dupe (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.dialog;
+
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.dialog.CustomizationDialogFactory;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * Interface for the dialogs creation factory.
+ *
+ * @see CustomizationDialogFactorImpl
+ * @noextend This interface is not intended to be extended by clients.
+ * @noimplement This interface is not intended to be implemented by clients.
+ */
+public interface ICustomizationDialogFactory {
+
+ ICustomizationDialogFactory DEFAULT = new CustomizationDialogFactory();
+
+ /**
+ * Create an new Dialog for the creation of a EClass Customization.
+ *
+ * @param editingDomain
+ */
+ IDialog openCreateEClassCustomizationDialog(Display display,
+ EditingDomain editingDomain);
+
+ /**
+ * Create an new Dialog for the creation of a Facet Customization.
+ *
+ * @return the dialog.
+ */
+ IDialog openCreateFacetCustomizationDialog(Display display,
+ EditingDomain editingDomain);
+
+ /**
+ * Create an new Dialog for the creation of a Customization Operation into a
+ * Customization.
+ *
+ * @return the dialog.
+ */
+ IDialog openAddCustomizationPropertyDialog(Display display,
+ EditingDomain editingDomain);
+
+ /**
+ * Create an new Dialog for the creation of a Query into a Case.
+ *
+ * @return the dialog.
+ */
+ IDialog openAddCaseQueryDialog(Display display, EditingDomain editingDomain);
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/Activator.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/Activator.java
index 09eaa5883ed..204240043f0 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/Activator.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/Activator.java
@@ -1,51 +1,51 @@
-/*******************************************************************************
- * Copyright (c) 2012 CEA LIST.
- * 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:
- * Nicolas Bros (Mia-Software) - Bug 375388 - Cell editor for IImage
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- *******************************************************************************/
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal;
-
-import org.eclipse.core.runtime.Plugin;
-import org.osgi.framework.BundleContext;
-
-@SuppressWarnings("PMD.UseSingleton")
-// @SuppressWarnings("PMD.UseSingleton") We cannot conforms to this rule because
-// this class is an Eclipse plug-in activator which will be instantiated by the
-// Eclipse framework.
-public class Activator extends Plugin {
-
- private static Activator plugin;
-
- @Override
- @SuppressWarnings("PMD.SignatureDeclareThrowsException")
- // @SuppressWarnings("PMD.SignatureDeclareThrowsException") We have to use
- // this signature because this is an override of an Eclipse framework's
- // method.
- public void start(final BundleContext bundleContext) throws Exception {
- super.start(bundleContext);
- Activator.plugin = this;
- }
-
- @Override
- @SuppressWarnings("PMD.SignatureDeclareThrowsException")
- // @SuppressWarnings("PMD.SignatureDeclareThrowsException") We have to use
- // this signature because this is an override of an Eclipse framework's
- // method.
- public void stop(final BundleContext bundleContext) throws Exception {
- // NOPMD: PMD say "Assigning an Object to null is a code smell."
- // No choice to right it in another way : this is an Eclipse pattern.
- Activator.plugin = null; // NOPMD by gdupe on 30/03/12 10:19
- super.stop(bundleContext);
- }
-
- public static Plugin getDefault() {
- return Activator.plugin;
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ * 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:
+ * Nicolas Bros (Mia-Software) - Bug 375388 - Cell editor for IImage
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ *******************************************************************************/
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal;
+
+import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.BundleContext;
+
+@SuppressWarnings("PMD.UseSingleton")
+// @SuppressWarnings("PMD.UseSingleton") We cannot conforms to this rule because
+// this class is an Eclipse plug-in activator which will be instantiated by the
+// Eclipse framework.
+public class Activator extends Plugin {
+
+ private static Activator plugin;
+
+ @Override
+ @SuppressWarnings("PMD.SignatureDeclareThrowsException")
+ // @SuppressWarnings("PMD.SignatureDeclareThrowsException") We have to use
+ // this signature because this is an override of an Eclipse framework's
+ // method.
+ public void start(final BundleContext bundleContext) throws Exception {
+ super.start(bundleContext);
+ Activator.plugin = this;
+ }
+
+ @Override
+ @SuppressWarnings("PMD.SignatureDeclareThrowsException")
+ // @SuppressWarnings("PMD.SignatureDeclareThrowsException") We have to use
+ // this signature because this is an override of an Eclipse framework's
+ // method.
+ public void stop(final BundleContext bundleContext) throws Exception {
+ // NOPMD: PMD say "Assigning an Object to null is a code smell."
+ // No choice to right it in another way : this is an Eclipse pattern.
+ Activator.plugin = null; // NOPMD by gdupe on 30/03/12 10:19
+ super.stop(bundleContext);
+ }
+
+ public static Plugin getDefault() {
+ return Activator.plugin;
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/Messages.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/Messages.java
index 85002343b91..97762926b19 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/Messages.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/Messages.java
@@ -1,72 +1,72 @@
-/*******************************************************************************
- * Copyright (c) 2012 CEA LIST.
- * 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:
- * Nicolas Bros (Mia-Software) - Bug 375388 - Cell editor for IImage
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- *******************************************************************************/
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal;
-
-import org.eclipse.osgi.util.NLS;
-
-public class Messages extends NLS {
- private static final String BUNDLE_NAME = "org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.messages"; //$NON-NLS-1$
- public static String ImageComposite_fullImage;
- public static String Create_Customization_Model;
- public static String CreateCustomizationWizardImpl_customization;
- public static String CreateCustomizationWizardImpl_customization_properties;
- public static String CreateCustomizationWizardImpl_Create_new_customization;
- public static String CreateCustomizationWizardImpl_File_extension_restriction;
- public static String CreateCustomizationWizardPage_Not_a_Plugin_project;
-
- public static String Enter_a_nsUri;
- public static String Enter_a_prefix;
- public static String Please_enter_nsUri;
- public static String Please_enter_prefix;
- public static String Please_select_EPackage;
-
- public static String CreateEClassCustomizationDialog_Message;
- public static String CreateEClassCustomizationDialog_Title;
-
- public static String CreateFacetCustomizationDialog_Message;
- public static String CreateFacetCustomizationDialog_Title;
-
- public static String ExtendedMetaClass;
- public static String Metaclass_mustSelectMetaclass;
-
- public static String Customization;
- public static String Customization_mustSelectCustomization;
- public static String Customization_mustGiveCustomizationName;
-
- public static String GetOrCreate_customization_message;
- public static String Select_Customization;
-
- public static String Facet_mustSelectFacet;
- public static String ExtendedFacet;
- public static String CustomizedFacet;
- public static String CustomizedFacet_mustSelectCustomizedFacet;
-
- public static String OperationFacet;
- public static String OperationFacet_mustSelectOperationFacet;
-
- public static String Add_Customization_title;
- public static String Add_Customization_message;
-
- public static String Query_case_name;
- public static String Query_case_type;
-
- public static String Get_customization_property_message;
- public static String Select_Customization_property;
-
- static {
- // initialize resource bundle
- NLS.initializeMessages(BUNDLE_NAME, Messages.class);
- }
-
- private Messages() {
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ * 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:
+ * Nicolas Bros (Mia-Software) - Bug 375388 - Cell editor for IImage
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ *******************************************************************************/
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal;
+
+import org.eclipse.osgi.util.NLS;
+
+public class Messages extends NLS {
+ private static final String BUNDLE_NAME = "org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.messages"; //$NON-NLS-1$
+ public static String ImageComposite_fullImage;
+ public static String Create_Customization_Model;
+ public static String CreateCustomizationWizardImpl_customization;
+ public static String CreateCustomizationWizardImpl_customization_properties;
+ public static String CreateCustomizationWizardImpl_Create_new_customization;
+ public static String CreateCustomizationWizardImpl_File_extension_restriction;
+ public static String CreateCustomizationWizardPage_Not_a_Plugin_project;
+
+ public static String Enter_a_nsUri;
+ public static String Enter_a_prefix;
+ public static String Please_enter_nsUri;
+ public static String Please_enter_prefix;
+ public static String Please_select_EPackage;
+
+ public static String CreateEClassCustomizationDialog_Message;
+ public static String CreateEClassCustomizationDialog_Title;
+
+ public static String CreateFacetCustomizationDialog_Message;
+ public static String CreateFacetCustomizationDialog_Title;
+
+ public static String ExtendedMetaClass;
+ public static String Metaclass_mustSelectMetaclass;
+
+ public static String Customization;
+ public static String Customization_mustSelectCustomization;
+ public static String Customization_mustGiveCustomizationName;
+
+ public static String GetOrCreate_customization_message;
+ public static String Select_Customization;
+
+ public static String Facet_mustSelectFacet;
+ public static String ExtendedFacet;
+ public static String CustomizedFacet;
+ public static String CustomizedFacet_mustSelectCustomizedFacet;
+
+ public static String OperationFacet;
+ public static String OperationFacet_mustSelectOperationFacet;
+
+ public static String Add_Customization_title;
+ public static String Add_Customization_message;
+
+ public static String Query_case_name;
+ public static String Query_case_type;
+
+ public static String Get_customization_property_message;
+ public static String Select_Customization_property;
+
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ private Messages() {
+ }
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/dialog/CustomizationDialogFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/dialog/CustomizationDialogFactory.java
index 2df06eeba2f..c040f7cdf27 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/dialog/CustomizationDialogFactory.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/dialog/CustomizationDialogFactory.java
@@ -1,83 +1,83 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.dialog;
-
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.EClassCustomization;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementCase;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.dialog.ICustomizationDialogFactory;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.command.AddCaseQueryDialog;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.command.AddCustomizationPropertyDialog;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.command.CreateEClassCustomizationDialog;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.command.CreateFacetCustomizationDialog;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.handler.HandlerUtils;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.dialog.SynchronizedAbstractDialog;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
-import org.eclipse.swt.widgets.Display;
-
-/**
- * Concrete implementation of {@link ICustomizationDialogFactory}.
- *
- * @see ICustomizationDialogFactory
- */
-public class CustomizationDialogFactory implements ICustomizationDialogFactory {
-
- protected static void openDialog(final IDialog<?> dialog,
- final Display display) {
- display.asyncExec(new Runnable() {
- public void run() {
- dialog.open();
- }
- });
- }
-
- public IDialog<ICommandWidget> openCreateEClassCustomizationDialog(
- final Display display,
- final EditingDomain editingDomain) {
- final IDialog<ICommandWidget> dialog = new CreateEClassCustomizationDialog(
- (Customization) HandlerUtils.getSelection(), editingDomain);
- openDialog(dialog, display);
- return new SynchronizedAbstractDialog<ICommandWidget>(dialog, display);
- }
-
- public IDialog<ICommandWidget> openCreateFacetCustomizationDialog(
- final Display display,
- final EditingDomain editingDomain) {
- final IDialog<ICommandWidget> dialog = new CreateFacetCustomizationDialog(
- (Customization) HandlerUtils.getSelection(), editingDomain);
- openDialog(dialog, display);
- return new SynchronizedAbstractDialog<ICommandWidget>(dialog, display);
- }
-
- public IDialog<ICommandWidget> openAddCustomizationPropertyDialog(
- final Display display,
- final EditingDomain editingDomain) {
- final IDialog<ICommandWidget> dialog = new AddCustomizationPropertyDialog(
- (EClassCustomization) HandlerUtils.getSelection(),
- editingDomain);
- openDialog(dialog, display);
- return new SynchronizedAbstractDialog<ICommandWidget>(dialog, display);
- }
-
- public IDialog<ICommandWidget> openAddCaseQueryDialog(
- final Display display,
- final EditingDomain editingDomain) {
- final IDialog<ICommandWidget> dialog = new AddCaseQueryDialog(
- (ETypedElementCase) HandlerUtils.getSelection(), editingDomain);
- openDialog(dialog, display);
- return new SynchronizedAbstractDialog<ICommandWidget>(dialog, display);
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.dialog;
+
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.EClassCustomization;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementCase;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.dialog.ICustomizationDialogFactory;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.command.AddCaseQueryDialog;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.command.AddCustomizationPropertyDialog;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.command.CreateEClassCustomizationDialog;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.command.CreateFacetCustomizationDialog;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.handler.HandlerUtils;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.dialog.SynchronizedAbstractDialog;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * Concrete implementation of {@link ICustomizationDialogFactory}.
+ *
+ * @see ICustomizationDialogFactory
+ */
+public class CustomizationDialogFactory implements ICustomizationDialogFactory {
+
+ protected static void openDialog(final IDialog<?> dialog,
+ final Display display) {
+ display.asyncExec(new Runnable() {
+ public void run() {
+ dialog.open();
+ }
+ });
+ }
+
+ public IDialog<ICommandWidget> openCreateEClassCustomizationDialog(
+ final Display display,
+ final EditingDomain editingDomain) {
+ final IDialog<ICommandWidget> dialog = new CreateEClassCustomizationDialog(
+ (Customization) HandlerUtils.getSelection(), editingDomain);
+ openDialog(dialog, display);
+ return new SynchronizedAbstractDialog<ICommandWidget>(dialog, display);
+ }
+
+ public IDialog<ICommandWidget> openCreateFacetCustomizationDialog(
+ final Display display,
+ final EditingDomain editingDomain) {
+ final IDialog<ICommandWidget> dialog = new CreateFacetCustomizationDialog(
+ (Customization) HandlerUtils.getSelection(), editingDomain);
+ openDialog(dialog, display);
+ return new SynchronizedAbstractDialog<ICommandWidget>(dialog, display);
+ }
+
+ public IDialog<ICommandWidget> openAddCustomizationPropertyDialog(
+ final Display display,
+ final EditingDomain editingDomain) {
+ final IDialog<ICommandWidget> dialog = new AddCustomizationPropertyDialog(
+ (EClassCustomization) HandlerUtils.getSelection(),
+ editingDomain);
+ openDialog(dialog, display);
+ return new SynchronizedAbstractDialog<ICommandWidget>(dialog, display);
+ }
+
+ public IDialog<ICommandWidget> openAddCaseQueryDialog(
+ final Display display,
+ final EditingDomain editingDomain) {
+ final IDialog<ICommandWidget> dialog = new AddCaseQueryDialog(
+ (ETypedElementCase) HandlerUtils.getSelection(), editingDomain);
+ openDialog(dialog, display);
+ return new SynchronizedAbstractDialog<ICommandWidget>(dialog, display);
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/messages.properties b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/messages.properties
index 7dc535d839c..876f8f9a002 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/messages.properties
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/messages.properties
@@ -1,57 +1,57 @@
-###############################################################################
-# Copyright (c) 2012 CEA LIST.
-# 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:
-# Nicolas Bros (Mia-Software) - Bug 375388 - Cell editor for IImage
-# Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
-# Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
-###############################################################################
+###############################################################################
+# Copyright (c) 2012 CEA LIST.
+# 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:
+# Nicolas Bros (Mia-Software) - Bug 375388 - Cell editor for IImage
+# Alban Ménager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+# Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+###############################################################################
ImageComposite_fullImage=Full Image
-Create_Customization_Model=Create a customization model
-CreateCustomizationWizardImpl_customization=New Customization
-CreateCustomizationWizardImpl_Create_new_customization=Create a new Customization
-CreateCustomizationWizardImpl_customization_properties=Set the Customization properties
-CreateCustomizationWizardImpl_File_extension_restriction=File extension has to be ".custom"
-CreateCustomizationWizardPage_Not_a_Plugin_project=Warning : you are creating this Customization in a non-Plugin project. It will not be available until moved to a Plugin project.
-
-Enter_a_nsUri=Enter a nsUri :
-Please_enter_nsUri=Please enter a nsUri
-Enter_a_prefix=Enter a prefix :
-Please_enter_prefix=Please enter a prefix
-Please_select_EPackage=Please, select an EPackage
-
-CreateEClassCustomizationDialog_Message=Create a new EClass Customization
-CreateEClassCustomizationDialog_Title=EClass Customization
-
-CreateFacetCustomizationDialog_Message=Create a new Facet Customization
-CreateFacetCustomizationDialog_Title=Facet Customization
-
-Metaclass_mustSelectMetaclass=You must select a MetaClass
-ExtendedMetaClass=&Extended Meta-Class:
-
-Facet_mustSelectFacet=You must select an Extended Facet
-ExtendedFacet=Extended Facet
-
-Customization=Customization
-Customization_mustSelectCustomization=You must select a Customization
-Customization_mustGiveCustomizationName=You must give a Customization Name
-
-GetOrCreate_customization_message=Select or a Customization
-Select_Customization=Select a Customization
-CustomizedFacet=Customized Facet
-CustomizedFacet_mustSelectCustomizedFacet=You must select a Customized Facet
-
-OperationFacet=Facet Operation
-OperationFacet_mustSelectOperationFacet=You must select a Facet Operation
-
-Add_Customization_title=Add a Customization Property
-Add_Customization_message=Add a new Customization Property
-
-Get_customization_property_message=Select a Customization Property
-Select_Customization_property=Customization Property
-
-Query_case_name=Customized eTypeElement
+Create_Customization_Model=Create a customization model
+CreateCustomizationWizardImpl_customization=New Customization
+CreateCustomizationWizardImpl_Create_new_customization=Create a new Customization
+CreateCustomizationWizardImpl_customization_properties=Set the Customization properties
+CreateCustomizationWizardImpl_File_extension_restriction=File extension has to be ".custom"
+CreateCustomizationWizardPage_Not_a_Plugin_project=Warning : you are creating this Customization in a non-Plugin project. It will not be available until moved to a Plugin project.
+
+Enter_a_nsUri=Enter a nsUri :
+Please_enter_nsUri=Please enter a nsUri
+Enter_a_prefix=Enter a prefix :
+Please_enter_prefix=Please enter a prefix
+Please_select_EPackage=Please, select an EPackage
+
+CreateEClassCustomizationDialog_Message=Create a new EClass Customization
+CreateEClassCustomizationDialog_Title=EClass Customization
+
+CreateFacetCustomizationDialog_Message=Create a new Facet Customization
+CreateFacetCustomizationDialog_Title=Facet Customization
+
+Metaclass_mustSelectMetaclass=You must select a MetaClass
+ExtendedMetaClass=&Extended Meta-Class:
+
+Facet_mustSelectFacet=You must select an Extended Facet
+ExtendedFacet=Extended Facet
+
+Customization=Customization
+Customization_mustSelectCustomization=You must select a Customization
+Customization_mustGiveCustomizationName=You must give a Customization Name
+
+GetOrCreate_customization_message=Select or a Customization
+Select_Customization=Select a Customization
+CustomizedFacet=Customized Facet
+CustomizedFacet_mustSelectCustomizedFacet=You must select a Customized Facet
+
+OperationFacet=Facet Operation
+OperationFacet_mustSelectOperationFacet=You must select a Facet Operation
+
+Add_Customization_title=Add a Customization Property
+Add_Customization_message=Add a new Customization Property
+
+Get_customization_property_message=Select a Customization Property
+Select_Customization_property=Customization Property
+
+Query_case_name=Customized eTypeElement
Query_case_type=Case type \ No newline at end of file
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/AbstractCustomizationMainDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/AbstractCustomizationMainDialog.java
index f3d3b0eed9d..11d75b497bb 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/AbstractCustomizationMainDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/AbstractCustomizationMainDialog.java
@@ -1,59 +1,59 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.emf.facet.custom.sdk.core.ICustomizationCommandFactory;
-import org.eclipse.papyrus.emf.facet.custom.sdk.core.ICustomizationCommandFactoryFactory;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.dialog.AbstractMainDialog;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
-
-public abstract class AbstractCustomizationMainDialog<W extends ICommandWidget>
- extends AbstractMainDialog<W> {
-
- private final EditingDomain ediditingDomain;
- private final ICustomizationCommandFactory customCmdFactory;
-
- /**
- * Constructor.
- *
- * @param selection
- * the selection in the model (ecore file).
- */
- public AbstractCustomizationMainDialog(final Object selection,
- final EditingDomain editingDomain) {
- super(selection);
- this.ediditingDomain = editingDomain;
- this.customCmdFactory = ICustomizationCommandFactoryFactory.DEFAULT
- .createICustomizationCommandFactory(editingDomain);
- }
-
- @Override
- protected void execute() {
- final Object result = getWidget().getCommand();
- if (result instanceof Command) {
- final Command command = (Command) result;
- this.ediditingDomain.getCommandStack().execute(command);
- }
- }
-
- protected final ICustomizationCommandFactory getCustomCmdFactory() {
- return this.customCmdFactory;
- }
-
- protected final EditingDomain getEditingDomain() {
- return this.ediditingDomain;
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog;
+
+import org.eclipse.emf.common.command.Command;
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.papyrus.emf.facet.custom.sdk.core.ICustomizationCommandFactory;
+import org.eclipse.papyrus.emf.facet.custom.sdk.core.ICustomizationCommandFactoryFactory;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.dialog.AbstractMainDialog;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
+
+public abstract class AbstractCustomizationMainDialog<W extends ICommandWidget>
+ extends AbstractMainDialog<W> {
+
+ private final EditingDomain ediditingDomain;
+ private final ICustomizationCommandFactory customCmdFactory;
+
+ /**
+ * Constructor.
+ *
+ * @param selection
+ * the selection in the model (ecore file).
+ */
+ public AbstractCustomizationMainDialog(final Object selection,
+ final EditingDomain editingDomain) {
+ super(selection);
+ this.ediditingDomain = editingDomain;
+ this.customCmdFactory = ICustomizationCommandFactoryFactory.DEFAULT
+ .createICustomizationCommandFactory(editingDomain);
+ }
+
+ @Override
+ protected void execute() {
+ final Object result = getWidget().getCommand();
+ if (result instanceof Command) {
+ final Command command = (Command) result;
+ this.ediditingDomain.getCommandStack().execute(command);
+ }
+ }
+
+ protected final ICustomizationCommandFactory getCustomCmdFactory() {
+ return this.customCmdFactory;
+ }
+
+ protected final EditingDomain getEditingDomain() {
+ return this.ediditingDomain;
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/AbstractGetCustomizationDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/AbstractGetCustomizationDialog.java
index dd1fbba4598..c6962d8afb2 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/AbstractGetCustomizationDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/AbstractGetCustomizationDialog.java
@@ -1,33 +1,33 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog;
-
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IWithResultDialogCallback;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.dialog.AbstractDialog;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
-
-public abstract class AbstractGetCustomizationDialog<T extends Object, W extends ICommandWidget>
- extends AbstractDialog<IWithResultDialogCallback<T>, W> {
-
- /**
- * Constructor.
- *
- * @param properties
- * properties that parent widget had.
- */
- public AbstractGetCustomizationDialog(
- final IWithResultDialogCallback<T> callback) {
- super(callback);
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog;
+
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IWithResultDialogCallback;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.dialog.AbstractDialog;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
+
+public abstract class AbstractGetCustomizationDialog<T extends Object, W extends ICommandWidget>
+ extends AbstractDialog<IWithResultDialogCallback<T>, W> {
+
+ /**
+ * Constructor.
+ *
+ * @param properties
+ * properties that parent widget had.
+ */
+ public AbstractGetCustomizationDialog(
+ final IWithResultDialogCallback<T> callback) {
+ super(callback);
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/AbstractGetOrCreateCustomizationDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/AbstractGetOrCreateCustomizationDialog.java
index fcd487632a3..cb943891c3e 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/AbstractGetOrCreateCustomizationDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/AbstractGetOrCreateCustomizationDialog.java
@@ -1,59 +1,59 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.emf.facet.custom.sdk.core.ICustomizationCommandFactory;
-import org.eclipse.papyrus.emf.facet.custom.sdk.core.ICustomizationCommandFactoryFactory;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IWithResultDialogCallback;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
-
-public abstract class AbstractGetOrCreateCustomizationDialog<T, W extends ICommandWidget>
- extends AbstractGetCustomizationDialog<T, W> {
-
- private final EditingDomain editingDomain;
- private final ICustomizationCommandFactory customCmdFactory;
-
- /**
- * Constructor.
- *
- * @param properties
- * properties that parent widget had.
- */
- public AbstractGetOrCreateCustomizationDialog(
- final IWithResultDialogCallback<T> callback,
- final EditingDomain editingDomain) {
- super(callback);
- this.editingDomain = editingDomain;
- this.customCmdFactory = ICustomizationCommandFactoryFactory.DEFAULT
- .createICustomizationCommandFactory(editingDomain);
- }
-
- protected final EditingDomain getEditingDomain() {
- return this.editingDomain;
- }
-
- protected final ICustomizationCommandFactory getCustomCmdFactory() {
- return this.customCmdFactory;
- }
-
- @Override
- protected void execute() {
- final Object result = getWidget().getCommand();
- if (result instanceof Command) {
- final Command command = (Command) result;
- this.editingDomain.getCommandStack().execute(command);
- }
- }
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog;
+
+import org.eclipse.emf.common.command.Command;
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.papyrus.emf.facet.custom.sdk.core.ICustomizationCommandFactory;
+import org.eclipse.papyrus.emf.facet.custom.sdk.core.ICustomizationCommandFactoryFactory;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IWithResultDialogCallback;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
+
+public abstract class AbstractGetOrCreateCustomizationDialog<T, W extends ICommandWidget>
+ extends AbstractGetCustomizationDialog<T, W> {
+
+ private final EditingDomain editingDomain;
+ private final ICustomizationCommandFactory customCmdFactory;
+
+ /**
+ * Constructor.
+ *
+ * @param properties
+ * properties that parent widget had.
+ */
+ public AbstractGetOrCreateCustomizationDialog(
+ final IWithResultDialogCallback<T> callback,
+ final EditingDomain editingDomain) {
+ super(callback);
+ this.editingDomain = editingDomain;
+ this.customCmdFactory = ICustomizationCommandFactoryFactory.DEFAULT
+ .createICustomizationCommandFactory(editingDomain);
+ }
+
+ protected final EditingDomain getEditingDomain() {
+ return this.editingDomain;
+ }
+
+ protected final ICustomizationCommandFactory getCustomCmdFactory() {
+ return this.customCmdFactory;
+ }
+
+ @Override
+ protected void execute() {
+ final Object result = getWidget().getCommand();
+ if (result instanceof Command) {
+ final Command command = (Command) result;
+ this.editingDomain.getCommandStack().execute(command);
+ }
+ }
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/command/AddCaseQueryDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/command/AddCaseQueryDialog.java
index 1d688b2eda9..f40bfa61758 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/command/AddCaseQueryDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/command/AddCaseQueryDialog.java
@@ -1,78 +1,78 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.command;
-
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementCase;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.AbstractCustomizationMainDialog;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.command.AddCaseQueryWidget;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query;
-import org.eclipse.papyrus.emf.facet.efacet.sdk.ui.internal.exported.IQueryContext;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
-
-/**
- * Concrete dialog for the creation of a query in a case.
- */
-public class AddCaseQueryDialog extends
- AbstractCustomizationMainDialog<ICommandWidget> {
-
- private AddCaseQueryWidget addCaseQueryW;
- private final PropertyElement2<ETypedElementCase> queryCaseProp;
- private final PropertyElement2<Query> queryValueProp;
- private final IQueryContext queryContext;
-
- /**
- * Constructor.
- *
- * @param selection
- * the selection in the model (custom file).
- */
- public AddCaseQueryDialog(final ETypedElementCase selection,
- final EditingDomain editingDomain) {
- super(selection, editingDomain);
- this.queryContext = new QueryContext(selection);
- this.queryCaseProp = new PropertyElement2<ETypedElementCase>(true);
- this.queryValueProp = new PropertyElement2<Query>(true);
- if (selection != null) {
- this.queryCaseProp.setValue2(selection);
- }
- }
-
- @Override
- protected ICommandWidget createWidget() {
- this.addCaseQueryW = new AddCaseQueryWidget(this.getDialogComposite(),
- getCustomCmdFactory(), this.queryCaseProp, this.queryValueProp,
- this.queryContext);
- return this.addCaseQueryW;
- }
-
- @Override
- protected String getDialogMessage() {
- return Messages.Add_Customization_message;
- }
-
- @Override
- protected String getDialogTitle() {
- return Messages.Add_Customization_title;
- }
-
- /**
- * @return the addCaseQueryWidget
- */
- public AddCaseQueryWidget getAddCaseQueryWidget() {
- return this.addCaseQueryW;
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.command;
+
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementCase;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.AbstractCustomizationMainDialog;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.command.AddCaseQueryWidget;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query;
+import org.eclipse.papyrus.emf.facet.efacet.sdk.ui.internal.exported.IQueryContext;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
+
+/**
+ * Concrete dialog for the creation of a query in a case.
+ */
+public class AddCaseQueryDialog extends
+ AbstractCustomizationMainDialog<ICommandWidget> {
+
+ private AddCaseQueryWidget addCaseQueryW;
+ private final PropertyElement2<ETypedElementCase> queryCaseProp;
+ private final PropertyElement2<Query> queryValueProp;
+ private final IQueryContext queryContext;
+
+ /**
+ * Constructor.
+ *
+ * @param selection
+ * the selection in the model (custom file).
+ */
+ public AddCaseQueryDialog(final ETypedElementCase selection,
+ final EditingDomain editingDomain) {
+ super(selection, editingDomain);
+ this.queryContext = new QueryContext(selection);
+ this.queryCaseProp = new PropertyElement2<ETypedElementCase>(true);
+ this.queryValueProp = new PropertyElement2<Query>(true);
+ if (selection != null) {
+ this.queryCaseProp.setValue2(selection);
+ }
+ }
+
+ @Override
+ protected ICommandWidget createWidget() {
+ this.addCaseQueryW = new AddCaseQueryWidget(this.getDialogComposite(),
+ getCustomCmdFactory(), this.queryCaseProp, this.queryValueProp,
+ this.queryContext);
+ return this.addCaseQueryW;
+ }
+
+ @Override
+ protected String getDialogMessage() {
+ return Messages.Add_Customization_message;
+ }
+
+ @Override
+ protected String getDialogTitle() {
+ return Messages.Add_Customization_title;
+ }
+
+ /**
+ * @return the addCaseQueryWidget
+ */
+ public AddCaseQueryWidget getAddCaseQueryWidget() {
+ return this.addCaseQueryW;
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/command/AddCustomizationPropertyDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/command/AddCustomizationPropertyDialog.java
index 35a4c06d8e1..bc3734e7af4 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/command/AddCustomizationPropertyDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/command/AddCustomizationPropertyDialog.java
@@ -1,73 +1,73 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.command;
-
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.EClassCustomization;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.AbstractCustomizationMainDialog;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.command.AddCustomizationPropertyWidget;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
-
-/**
- * Concrete dialog for the creation of a customization property into a
- * customization.
- */
-public class AddCustomizationPropertyDialog extends
- AbstractCustomizationMainDialog<ICommandWidget> {
-
- private AddCustomizationPropertyWidget addCustomW;
- private final EClassCustomization eClassCustom;
- private final PropertyElement2<FacetOperation> facetOpProperty;
-
- /**
- * Constructor.
- *
- * @param selection
- * the selection in the model (custom file).
- */
- public AddCustomizationPropertyDialog(final EClassCustomization selection,
- final EditingDomain editingDomain) {
- super(selection, editingDomain);
- this.eClassCustom = selection;
- this.facetOpProperty = new PropertyElement2<FacetOperation>(true);
- }
-
- @Override
- protected ICommandWidget createWidget() {
- this.addCustomW = new AddCustomizationPropertyWidget(
- this.getDialogComposite(), this.facetOpProperty,
- this.eClassCustom, this.getEditingDomain());
- return this.addCustomW;
- }
-
- @Override
- protected String getDialogMessage() {
- return Messages.Add_Customization_message;
- }
-
- @Override
- protected String getDialogTitle() {
- return Messages.Add_Customization_title;
- }
-
- /**
- * @return the addCustomizationWidget
- */
- public AddCustomizationPropertyWidget getAddCustomizationWidget() {
- return this.addCustomW;
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.command;
+
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.EClassCustomization;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.AbstractCustomizationMainDialog;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.command.AddCustomizationPropertyWidget;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
+
+/**
+ * Concrete dialog for the creation of a customization property into a
+ * customization.
+ */
+public class AddCustomizationPropertyDialog extends
+ AbstractCustomizationMainDialog<ICommandWidget> {
+
+ private AddCustomizationPropertyWidget addCustomW;
+ private final EClassCustomization eClassCustom;
+ private final PropertyElement2<FacetOperation> facetOpProperty;
+
+ /**
+ * Constructor.
+ *
+ * @param selection
+ * the selection in the model (custom file).
+ */
+ public AddCustomizationPropertyDialog(final EClassCustomization selection,
+ final EditingDomain editingDomain) {
+ super(selection, editingDomain);
+ this.eClassCustom = selection;
+ this.facetOpProperty = new PropertyElement2<FacetOperation>(true);
+ }
+
+ @Override
+ protected ICommandWidget createWidget() {
+ this.addCustomW = new AddCustomizationPropertyWidget(
+ this.getDialogComposite(), this.facetOpProperty,
+ this.eClassCustom, this.getEditingDomain());
+ return this.addCustomW;
+ }
+
+ @Override
+ protected String getDialogMessage() {
+ return Messages.Add_Customization_message;
+ }
+
+ @Override
+ protected String getDialogTitle() {
+ return Messages.Add_Customization_title;
+ }
+
+ /**
+ * @return the addCustomizationWidget
+ */
+ public AddCustomizationPropertyWidget getAddCustomizationWidget() {
+ return this.addCustomW;
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/command/CreateEClassCustomizationDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/command/CreateEClassCustomizationDialog.java
index 9919ed80d74..72edf137d76 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/command/CreateEClassCustomizationDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/command/CreateEClassCustomizationDialog.java
@@ -1,95 +1,95 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.command;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.AbstractCustomizationMainDialog;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.command.CreateEClassCustomizationWidget;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
-
-/**
- * Concrete dialog for the creation of an EClass Customization.
- */
-public class CreateEClassCustomizationDialog extends
- AbstractCustomizationMainDialog<ICommandWidget> {
-
- private CreateEClassCustomizationWidget eClassCustomW;
- private final PropertyElement2<Customization> customProperty;
- private final PropertyElement2<EClass> mClassProperty;
- private final PropertyElement2<Facet> extFacetProperty;
-
- /**
- * Constructor.
- *
- * @param selection
- * the selection in the model (custom file).
- */
- public CreateEClassCustomizationDialog(final Customization selection,
- final EditingDomain editingDomain) {
- super(selection, editingDomain);
- this.customProperty = new PropertyElement2<Customization>(true);
- this.mClassProperty = new PropertyElement2<EClass>(true);
- this.extFacetProperty = new PropertyElement2<Facet>(true);
- if (selection != null) {
- this.customProperty.setValue2(selection);
- }
- }
-
- @Override
- protected ICommandWidget createWidget() {
- this.eClassCustomW = new CreateEClassCustomizationWidget(
- this.getDialogComposite(), this.getCustomCmdFactory(),
- getEditingDomain(), this.customProperty, this.mClassProperty,
- this.extFacetProperty);
- return this.eClassCustomW;
- }
-
- @Override
- protected String getDialogMessage() {
- return Messages.CreateEClassCustomizationDialog_Message;
- }
-
- @Override
- protected String getDialogTitle() {
- return Messages.CreateEClassCustomizationDialog_Title;
- }
-
- /**
- * @return the createEClassCustomizationWidget
- */
- public CreateEClassCustomizationWidget getCreateEClassCustomizationWidget() {
- return this.eClassCustomW;
- }
-
- protected final CreateEClassCustomizationWidget geteClassCustomW() {
- return this.eClassCustomW;
- }
-
- protected final PropertyElement2<Customization> getCustomProperty() {
- return this.customProperty;
- }
-
- protected final PropertyElement2<EClass> getmClassProperty() {
- return this.mClassProperty;
- }
-
- protected final PropertyElement2<Facet> getExtFacetProperty() {
- return this.extFacetProperty;
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.command;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.AbstractCustomizationMainDialog;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.command.CreateEClassCustomizationWidget;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
+
+/**
+ * Concrete dialog for the creation of an EClass Customization.
+ */
+public class CreateEClassCustomizationDialog extends
+ AbstractCustomizationMainDialog<ICommandWidget> {
+
+ private CreateEClassCustomizationWidget eClassCustomW;
+ private final PropertyElement2<Customization> customProperty;
+ private final PropertyElement2<EClass> mClassProperty;
+ private final PropertyElement2<Facet> extFacetProperty;
+
+ /**
+ * Constructor.
+ *
+ * @param selection
+ * the selection in the model (custom file).
+ */
+ public CreateEClassCustomizationDialog(final Customization selection,
+ final EditingDomain editingDomain) {
+ super(selection, editingDomain);
+ this.customProperty = new PropertyElement2<Customization>(true);
+ this.mClassProperty = new PropertyElement2<EClass>(true);
+ this.extFacetProperty = new PropertyElement2<Facet>(true);
+ if (selection != null) {
+ this.customProperty.setValue2(selection);
+ }
+ }
+
+ @Override
+ protected ICommandWidget createWidget() {
+ this.eClassCustomW = new CreateEClassCustomizationWidget(
+ this.getDialogComposite(), this.getCustomCmdFactory(),
+ getEditingDomain(), this.customProperty, this.mClassProperty,
+ this.extFacetProperty);
+ return this.eClassCustomW;
+ }
+
+ @Override
+ protected String getDialogMessage() {
+ return Messages.CreateEClassCustomizationDialog_Message;
+ }
+
+ @Override
+ protected String getDialogTitle() {
+ return Messages.CreateEClassCustomizationDialog_Title;
+ }
+
+ /**
+ * @return the createEClassCustomizationWidget
+ */
+ public CreateEClassCustomizationWidget getCreateEClassCustomizationWidget() {
+ return this.eClassCustomW;
+ }
+
+ protected final CreateEClassCustomizationWidget geteClassCustomW() {
+ return this.eClassCustomW;
+ }
+
+ protected final PropertyElement2<Customization> getCustomProperty() {
+ return this.customProperty;
+ }
+
+ protected final PropertyElement2<EClass> getmClassProperty() {
+ return this.mClassProperty;
+ }
+
+ protected final PropertyElement2<Facet> getExtFacetProperty() {
+ return this.extFacetProperty;
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/command/CreateFacetCustomizationDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/command/CreateFacetCustomizationDialog.java
index 3d042e4f99b..e3e6d443743 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/command/CreateFacetCustomizationDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/command/CreateFacetCustomizationDialog.java
@@ -1,70 +1,70 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.command;
-
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.command.CreateFacetCustomizationWidget;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
-
-/**
- * Concrete dialog for the creation of a Facet Customization.
- */
-public class CreateFacetCustomizationDialog extends
- CreateEClassCustomizationDialog {
-
- private CreateFacetCustomizationWidget facetCustomW;
- private PropertyElement2<Facet> facetCustomProp;
-
- /**
- * Constructor.
- *
- * @param selection
- * the selection in the model (custom file).
- */
- public CreateFacetCustomizationDialog(final Customization selection,
- final EditingDomain editingDomain) {
- super(selection, editingDomain);
- this.facetCustomProp = new PropertyElement2<Facet>(true);
- }
-
- @Override
- protected ICommandWidget createWidget() {
- this.facetCustomW = new CreateFacetCustomizationWidget(
- this.getDialogComposite(), getCustomCmdFactory(),
- getEditingDomain(), getmClassProperty(), getCustomProperty(),
- getExtFacetProperty(), this.facetCustomProp);
- return this.facetCustomW;
- }
-
- @Override
- protected String getDialogMessage() {
- return Messages.CreateFacetCustomizationDialog_Message;
- }
-
- @Override
- protected String getDialogTitle() {
- return Messages.CreateFacetCustomizationDialog_Title;
- }
-
- /**
- * @return the createFacetCustomizationWidget
- */
- public CreateFacetCustomizationWidget getCreateFacetCustomizationWidget() {
- return this.facetCustomW;
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.command;
+
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.command.CreateFacetCustomizationWidget;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
+
+/**
+ * Concrete dialog for the creation of a Facet Customization.
+ */
+public class CreateFacetCustomizationDialog extends
+ CreateEClassCustomizationDialog {
+
+ private CreateFacetCustomizationWidget facetCustomW;
+ private PropertyElement2<Facet> facetCustomProp;
+
+ /**
+ * Constructor.
+ *
+ * @param selection
+ * the selection in the model (custom file).
+ */
+ public CreateFacetCustomizationDialog(final Customization selection,
+ final EditingDomain editingDomain) {
+ super(selection, editingDomain);
+ this.facetCustomProp = new PropertyElement2<Facet>(true);
+ }
+
+ @Override
+ protected ICommandWidget createWidget() {
+ this.facetCustomW = new CreateFacetCustomizationWidget(
+ this.getDialogComposite(), getCustomCmdFactory(),
+ getEditingDomain(), getmClassProperty(), getCustomProperty(),
+ getExtFacetProperty(), this.facetCustomProp);
+ return this.facetCustomW;
+ }
+
+ @Override
+ protected String getDialogMessage() {
+ return Messages.CreateFacetCustomizationDialog_Message;
+ }
+
+ @Override
+ protected String getDialogTitle() {
+ return Messages.CreateFacetCustomizationDialog_Title;
+ }
+
+ /**
+ * @return the createFacetCustomizationWidget
+ */
+ public CreateFacetCustomizationWidget getCreateFacetCustomizationWidget() {
+ return this.facetCustomW;
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/getorcreate/GetOrCreateCustomizationDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/getorcreate/GetOrCreateCustomizationDialog.java
index 9ea7e7cf6fe..21bc2d69ba0 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/getorcreate/GetOrCreateCustomizationDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/getorcreate/GetOrCreateCustomizationDialog.java
@@ -1,79 +1,79 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.getorcreate;
-
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.sync.SynchronizedGetOrCreateFilteredElementCommmandWidget;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.AbstractGetOrCreateCustomizationDialog;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.command.GetOrCreateCustomizationWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IWithResultDialogCallback;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.IGetOrCreateFilteredElementCommmandWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
-
-/**
- * Provide a dialog where the user can select a {@link Customization} in the
- * list. This class use the specific widget {@link GetOrCreateCustomizationWidget} and return the selected element with
- * the method {@link #getCustomizationSelected()}.</p>
- *
- * When the "ok" button is pressed, the parent property is set with the selected
- * element.
- *
- * @see GetOrCreateCustomizationWidget
- */
-public class GetOrCreateCustomizationDialog
- extends
- AbstractGetOrCreateCustomizationDialog<Customization, IGetOrCreateFilteredElementCommmandWidget<Customization, ICommandWidget>> {
-
- private final PropertyElement2<Customization> customProperty;
-
- /**
- * Constructor.
- *
- * @param properties
- * properties that parent widget had.
- */
- public GetOrCreateCustomizationDialog(
- final IWithResultDialogCallback<Customization> callback,
- final EditingDomain editingDomain, final Customization custom) {
- super(callback, editingDomain);
- this.customProperty = new PropertyElement2<Customization>(true, custom);
- }
-
- @Override
- protected IGetOrCreateFilteredElementCommmandWidget<Customization, ICommandWidget> createWidget() {
- final GetOrCreateCustomizationWidget widget = new GetOrCreateCustomizationWidget(this.getDialogComposite(),
- getEditingDomain(), this.customProperty);
- return new SynchronizedGetOrCreateFilteredElementCommmandWidget<Customization, ICommandWidget>(
- widget, widget.getDisplay());
- }
-
- @Override
- protected String getDialogMessage() {
- return Messages.GetOrCreate_customization_message;
- }
-
- @Override
- protected String getDialogTitle() {
- return Messages.Select_Customization;
- }
-
- @Override
- protected void okPressed() {
- this.getCallback().commited(this.customProperty.getValue2());
- super.okPressed();
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.getorcreate;
+
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.sync.SynchronizedGetOrCreateFilteredElementCommmandWidget;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.AbstractGetOrCreateCustomizationDialog;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.command.GetOrCreateCustomizationWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IWithResultDialogCallback;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.IGetOrCreateFilteredElementCommmandWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
+
+/**
+ * Provide a dialog where the user can select a {@link Customization} in the
+ * list. This class use the specific widget {@link GetOrCreateCustomizationWidget} and return the selected element with
+ * the method {@link #getCustomizationSelected()}.</p>
+ *
+ * When the "ok" button is pressed, the parent property is set with the selected
+ * element.
+ *
+ * @see GetOrCreateCustomizationWidget
+ */
+public class GetOrCreateCustomizationDialog
+ extends
+ AbstractGetOrCreateCustomizationDialog<Customization, IGetOrCreateFilteredElementCommmandWidget<Customization, ICommandWidget>> {
+
+ private final PropertyElement2<Customization> customProperty;
+
+ /**
+ * Constructor.
+ *
+ * @param properties
+ * properties that parent widget had.
+ */
+ public GetOrCreateCustomizationDialog(
+ final IWithResultDialogCallback<Customization> callback,
+ final EditingDomain editingDomain, final Customization custom) {
+ super(callback, editingDomain);
+ this.customProperty = new PropertyElement2<Customization>(true, custom);
+ }
+
+ @Override
+ protected IGetOrCreateFilteredElementCommmandWidget<Customization, ICommandWidget> createWidget() {
+ final GetOrCreateCustomizationWidget widget = new GetOrCreateCustomizationWidget(this.getDialogComposite(),
+ getEditingDomain(), this.customProperty);
+ return new SynchronizedGetOrCreateFilteredElementCommmandWidget<Customization, ICommandWidget>(
+ widget, widget.getDisplay());
+ }
+
+ @Override
+ protected String getDialogMessage() {
+ return Messages.GetOrCreate_customization_message;
+ }
+
+ @Override
+ protected String getDialogTitle() {
+ return Messages.Select_Customization;
+ }
+
+ @Override
+ protected void okPressed() {
+ this.getCallback().commited(this.customProperty.getValue2());
+ super.okPressed();
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/selection/GetCustomizedFacetDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/selection/GetCustomizedFacetDialog.java
index 0e97f3650ba..534b28df5c2 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/selection/GetCustomizedFacetDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/selection/GetCustomizedFacetDialog.java
@@ -1,71 +1,71 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.selection;
-
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.AbstractGetCustomizationDialog;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate.GetCustomizedFacetWidget;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate.GetFiltredCustomizedFacetWidget;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IWithResultDialogCallback;
-
-/**
- * Concrete dialog for the selection of the customized facet.
- *
- * @see GetCustomizedFacetWidget
- */
-public class GetCustomizedFacetDialog extends
- AbstractGetCustomizationDialog<Facet, GetFiltredCustomizedFacetWidget> {
- private GetFiltredCustomizedFacetWidget customFacetW;
-
- /**
- * Constructor.
- *
- * @param properties
- * properties that parent widget had.
- */
- public GetCustomizedFacetDialog(
- final IWithResultDialogCallback<Facet> callback) {
- super(callback);
- }
-
- @Override
- protected GetFiltredCustomizedFacetWidget createWidget() {
- this.customFacetW = new GetFiltredCustomizedFacetWidget(
- this.getDialogComposite());
- return this.customFacetW;
- }
-
- @Override
- protected String getDialogMessage() {
- return Messages.GetOrCreate_customization_message;
- }
-
- @Override
- protected String getDialogTitle() {
- return Messages.Select_Customization;
- }
-
- @Override
- protected void okPressed() {
- // TODO Use of in instance of PropertyElement ?
- this.getCallback().commited(this.customFacetW.getElementSelected());
- super.okPressed();
- }
-
- @Override
- protected void execute() {
- getCallback().commited(this.customFacetW.getFacetSelected());
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.selection;
+
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.AbstractGetCustomizationDialog;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate.GetCustomizedFacetWidget;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate.GetFiltredCustomizedFacetWidget;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IWithResultDialogCallback;
+
+/**
+ * Concrete dialog for the selection of the customized facet.
+ *
+ * @see GetCustomizedFacetWidget
+ */
+public class GetCustomizedFacetDialog extends
+ AbstractGetCustomizationDialog<Facet, GetFiltredCustomizedFacetWidget> {
+ private GetFiltredCustomizedFacetWidget customFacetW;
+
+ /**
+ * Constructor.
+ *
+ * @param properties
+ * properties that parent widget had.
+ */
+ public GetCustomizedFacetDialog(
+ final IWithResultDialogCallback<Facet> callback) {
+ super(callback);
+ }
+
+ @Override
+ protected GetFiltredCustomizedFacetWidget createWidget() {
+ this.customFacetW = new GetFiltredCustomizedFacetWidget(
+ this.getDialogComposite());
+ return this.customFacetW;
+ }
+
+ @Override
+ protected String getDialogMessage() {
+ return Messages.GetOrCreate_customization_message;
+ }
+
+ @Override
+ protected String getDialogTitle() {
+ return Messages.Select_Customization;
+ }
+
+ @Override
+ protected void okPressed() {
+ // TODO Use of in instance of PropertyElement ?
+ this.getCallback().commited(this.customFacetW.getElementSelected());
+ super.okPressed();
+ }
+
+ @Override
+ protected void execute() {
+ getCallback().commited(this.customFacetW.getFacetSelected());
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/selection/GetExtendedFacetDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/selection/GetExtendedFacetDialog.java
index e8ea50d4dc5..ba20a4a2328 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/selection/GetExtendedFacetDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/selection/GetExtendedFacetDialog.java
@@ -1,72 +1,72 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.selection;
-
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.AbstractGetCustomizationDialog;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate.GetExtendedFacetWidget;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate.GetFiltredExtendedFacetWidget;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IWithResultDialogCallback;
-
-/**
- * Concrete dialog for the selection of the extended facet.
- *
- * @see GetExtendedFacetWidget
- */
-public class GetExtendedFacetDialog extends
- AbstractGetCustomizationDialog<Facet, GetFiltredExtendedFacetWidget> {
-
- private GetFiltredExtendedFacetWidget extendedFacetW;
-
- /**
- * Constructor.
- *
- * @param properties
- * properties that parent widget had.
- */
- public GetExtendedFacetDialog(
- final IWithResultDialogCallback<Facet> callback) {
- super(callback);
- }
-
- @Override
- protected GetFiltredExtendedFacetWidget createWidget() {
- this.extendedFacetW = new GetFiltredExtendedFacetWidget(
- this.getDialogComposite());
- return this.extendedFacetW;
- }
-
- @Override
- protected String getDialogMessage() {
- return Messages.GetOrCreate_customization_message;
- }
-
- @Override
- protected String getDialogTitle() {
- return Messages.Select_Customization;
- }
-
- @Override
- protected void okPressed() {
- if (this.extendedFacetW.getFacetSelected() != null) {
- getCallback().commited(this.extendedFacetW.getElementSelected());
- }
- super.okPressed();
- }
-
- @Override
- protected void execute() {
- getCallback().commited(this.extendedFacetW.getFacetSelected());
- }
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.selection;
+
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.AbstractGetCustomizationDialog;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate.GetExtendedFacetWidget;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate.GetFiltredExtendedFacetWidget;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IWithResultDialogCallback;
+
+/**
+ * Concrete dialog for the selection of the extended facet.
+ *
+ * @see GetExtendedFacetWidget
+ */
+public class GetExtendedFacetDialog extends
+ AbstractGetCustomizationDialog<Facet, GetFiltredExtendedFacetWidget> {
+
+ private GetFiltredExtendedFacetWidget extendedFacetW;
+
+ /**
+ * Constructor.
+ *
+ * @param properties
+ * properties that parent widget had.
+ */
+ public GetExtendedFacetDialog(
+ final IWithResultDialogCallback<Facet> callback) {
+ super(callback);
+ }
+
+ @Override
+ protected GetFiltredExtendedFacetWidget createWidget() {
+ this.extendedFacetW = new GetFiltredExtendedFacetWidget(
+ this.getDialogComposite());
+ return this.extendedFacetW;
+ }
+
+ @Override
+ protected String getDialogMessage() {
+ return Messages.GetOrCreate_customization_message;
+ }
+
+ @Override
+ protected String getDialogTitle() {
+ return Messages.Select_Customization;
+ }
+
+ @Override
+ protected void okPressed() {
+ if (this.extendedFacetW.getFacetSelected() != null) {
+ getCallback().commited(this.extendedFacetW.getElementSelected());
+ }
+ super.okPressed();
+ }
+
+ @Override
+ protected void execute() {
+ getCallback().commited(this.extendedFacetW.getFacetSelected());
+ }
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/selection/GetFacetOperationDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/selection/GetFacetOperationDialog.java
index 6d548687188..b6df53f5ecc 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/selection/GetFacetOperationDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/selection/GetFacetOperationDialog.java
@@ -1,79 +1,79 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.selection;
-
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.AbstractGetCustomizationDialog;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate.GetFiltredOperationFacetWidget;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IWithResultDialogCallback;
-
-/**
- * Concrete dialog for the selection of a Customization. The Customization is an
- * operation into a particular facet.
- *
- * @see GetFiltredOperationFacetWidget
- */
-public class GetFacetOperationDialog extends
- AbstractGetCustomizationDialog<FacetOperation, GetFiltredOperationFacetWidget> {
-
- private GetFiltredOperationFacetWidget operationFacetW;
- private final Facet facet;
-
- /**
- * Constructor.
- *
- * @param properties
- * properties that parent widget had.
- */
- public GetFacetOperationDialog(
- final IWithResultDialogCallback<FacetOperation> callback,
- final Facet facet) {
- super(callback);
- this.facet = facet;
- }
-
- @Override
- protected GetFiltredOperationFacetWidget createWidget() {
- this.operationFacetW = new GetFiltredOperationFacetWidget(
- this.getDialogComposite(), this.facet);
- return this.operationFacetW;
- }
-
- @Override
- protected String getDialogMessage() {
- return Messages.Get_customization_property_message;
- }
-
- @Override
- protected String getDialogTitle() {
- return Messages.Select_Customization_property;
- }
-
- @Override
- protected void okPressed() {
- if (this.operationFacetW.getFacetOperationSelected() != null) {
- this.getCallback().commited(
- this.operationFacetW.getFacetOperationSelected());
- }
- super.okPressed();
- }
-
- @Override
- protected void execute() {
- getCallback()
- .commited(this.operationFacetW.getFacetOperationSelected());
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.selection;
+
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.AbstractGetCustomizationDialog;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate.GetFiltredOperationFacetWidget;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IWithResultDialogCallback;
+
+/**
+ * Concrete dialog for the selection of a Customization. The Customization is an
+ * operation into a particular facet.
+ *
+ * @see GetFiltredOperationFacetWidget
+ */
+public class GetFacetOperationDialog extends
+ AbstractGetCustomizationDialog<FacetOperation, GetFiltredOperationFacetWidget> {
+
+ private GetFiltredOperationFacetWidget operationFacetW;
+ private final Facet facet;
+
+ /**
+ * Constructor.
+ *
+ * @param properties
+ * properties that parent widget had.
+ */
+ public GetFacetOperationDialog(
+ final IWithResultDialogCallback<FacetOperation> callback,
+ final Facet facet) {
+ super(callback);
+ this.facet = facet;
+ }
+
+ @Override
+ protected GetFiltredOperationFacetWidget createWidget() {
+ this.operationFacetW = new GetFiltredOperationFacetWidget(
+ this.getDialogComposite(), this.facet);
+ return this.operationFacetW;
+ }
+
+ @Override
+ protected String getDialogMessage() {
+ return Messages.Get_customization_property_message;
+ }
+
+ @Override
+ protected String getDialogTitle() {
+ return Messages.Select_Customization_property;
+ }
+
+ @Override
+ protected void okPressed() {
+ if (this.operationFacetW.getFacetOperationSelected() != null) {
+ this.getCallback().commited(
+ this.operationFacetW.getFacetOperationSelected());
+ }
+ super.okPressed();
+ }
+
+ @Override
+ protected void execute() {
+ getCallback()
+ .commited(this.operationFacetW.getFacetOperationSelected());
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/sync/SynchronizedAddCaseQueryDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/sync/SynchronizedAddCaseQueryDialog.java
index 2e6cd6b296a..2260e857760 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/sync/SynchronizedAddCaseQueryDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/sync/SynchronizedAddCaseQueryDialog.java
@@ -1,36 +1,36 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.sync;
-
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.dialog.SynchronizedAbstractDialog;
-import org.eclipse.swt.widgets.Display;
-
-/**
- * Synchronized class for safe run.
- */
-public class SynchronizedAddCaseQueryDialog extends
- SynchronizedAbstractDialog<IDialog> {
-
- /**
- * Constructor.
- *
- * @param object
- * the to synchronized.
- * @param display
- * the display.
- */
- public SynchronizedAddCaseQueryDialog(final IDialog object,
- final Display display) {
- super(object, display);
- }
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.sync;
+
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.dialog.SynchronizedAbstractDialog;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * Synchronized class for safe run.
+ */
+public class SynchronizedAddCaseQueryDialog extends
+ SynchronizedAbstractDialog<IDialog> {
+
+ /**
+ * Constructor.
+ *
+ * @param object
+ * the to synchronized.
+ * @param display
+ * the display.
+ */
+ public SynchronizedAddCaseQueryDialog(final IDialog object,
+ final Display display) {
+ super(object, display);
+ }
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/sync/SynchronizedAddCustomizationPropertyDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/sync/SynchronizedAddCustomizationPropertyDialog.java
index 97612bdd8b6..b29c1c13987 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/sync/SynchronizedAddCustomizationPropertyDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/sync/SynchronizedAddCustomizationPropertyDialog.java
@@ -1,36 +1,36 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.sync;
-
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.dialog.SynchronizedAbstractDialog;
-import org.eclipse.swt.widgets.Display;
-
-/**
- * Synchronized class for safe run.
- */
-public class SynchronizedAddCustomizationPropertyDialog extends
- SynchronizedAbstractDialog<IDialog> {
-
- /**
- * Constructor.
- *
- * @param object
- * the to synchronized.
- * @param display
- * the display.
- */
- public SynchronizedAddCustomizationPropertyDialog(
- final IDialog object, final Display display) {
- super(object, display);
- }
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.sync;
+
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.dialog.SynchronizedAbstractDialog;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * Synchronized class for safe run.
+ */
+public class SynchronizedAddCustomizationPropertyDialog extends
+ SynchronizedAbstractDialog<IDialog> {
+
+ /**
+ * Constructor.
+ *
+ * @param object
+ * the to synchronized.
+ * @param display
+ * the display.
+ */
+ public SynchronizedAddCustomizationPropertyDialog(
+ final IDialog object, final Display display) {
+ super(object, display);
+ }
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/sync/SynchronizedCreateEClassCustomizationDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/sync/SynchronizedCreateEClassCustomizationDialog.java
index 6a723d1eee0..36fa66713f5 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/sync/SynchronizedCreateEClassCustomizationDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/sync/SynchronizedCreateEClassCustomizationDialog.java
@@ -1,36 +1,36 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.sync;
-
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.dialog.SynchronizedAbstractDialog;
-import org.eclipse.swt.widgets.Display;
-
-/**
- * Synchronized class for safe run.
- */
-public class SynchronizedCreateEClassCustomizationDialog extends
- SynchronizedAbstractDialog<IDialog> {
-
- /**
- * Constructor.
- *
- * @param object
- * the to synchronized.
- * @param display
- * the display.
- */
- public SynchronizedCreateEClassCustomizationDialog(
- final IDialog object, final Display display) {
- super(object, display);
- }
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.sync;
+
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.dialog.SynchronizedAbstractDialog;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * Synchronized class for safe run.
+ */
+public class SynchronizedCreateEClassCustomizationDialog extends
+ SynchronizedAbstractDialog<IDialog> {
+
+ /**
+ * Constructor.
+ *
+ * @param object
+ * the to synchronized.
+ * @param display
+ * the display.
+ */
+ public SynchronizedCreateEClassCustomizationDialog(
+ final IDialog object, final Display display) {
+ super(object, display);
+ }
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/sync/SynchronizedCreateFacetCustomizationDialog.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/sync/SynchronizedCreateFacetCustomizationDialog.java
index 8bbe12cda0a..856df8ce6e9 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/sync/SynchronizedCreateFacetCustomizationDialog.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/dialog/sync/SynchronizedCreateFacetCustomizationDialog.java
@@ -1,36 +1,36 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.sync;
-
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.dialog.SynchronizedAbstractDialog;
-import org.eclipse.swt.widgets.Display;
-
-/**
- * Synchronized class for safe run.
- */
-public class SynchronizedCreateFacetCustomizationDialog extends
- SynchronizedAbstractDialog<IDialog> {
-
- /**
- * Constructor.
- *
- * @param object
- * the to synchronized.
- * @param display
- * the display.
- */
- public SynchronizedCreateFacetCustomizationDialog(
- final IDialog object, final Display display) {
- super(object, display);
- }
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.sync;
+
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.dialog.SynchronizedAbstractDialog;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * Synchronized class for safe run.
+ */
+public class SynchronizedCreateFacetCustomizationDialog extends
+ SynchronizedAbstractDialog<IDialog> {
+
+ /**
+ * Constructor.
+ *
+ * @param object
+ * the to synchronized.
+ * @param display
+ * the display.
+ */
+ public SynchronizedCreateFacetCustomizationDialog(
+ final IDialog object, final Display display) {
+ super(object, display);
+ }
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/AddCaseQueryHandler.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/AddCaseQueryHandler.java
index 839cd4eec4a..1ac4248b89b 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/AddCaseQueryHandler.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/AddCaseQueryHandler.java
@@ -1,42 +1,42 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.handler;
-
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementCase;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.dialog.ICustomizationDialogFactory;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.handler.AbstractSelectionExpectedTypeHandler;
-import org.eclipse.swt.widgets.Display;
-
-/**
- * Handler for the creation of a case query into an {@link ETypedElementCase}.
- *
- * @see ETypedElementCase
- */
-public class AddCaseQueryHandler extends AbstractSelectionExpectedTypeHandler {
-
- @Override
- protected Class<?> getSelectionExpectedType() {
- return ETypedElementCase.class;
- }
-
- public Object execute(final ExecutionEvent event) throws ExecutionException {
- final EditingDomain editingDomain = Utils.getEditingDomain(event);
- final Display display = Utils.getDisplay(event);
- return ICustomizationDialogFactory.DEFAULT.openAddCaseQueryDialog(
- display, editingDomain);
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.handler;
+
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementCase;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.dialog.ICustomizationDialogFactory;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.handler.AbstractSelectionExpectedTypeHandler;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * Handler for the creation of a case query into an {@link ETypedElementCase}.
+ *
+ * @see ETypedElementCase
+ */
+public class AddCaseQueryHandler extends AbstractSelectionExpectedTypeHandler {
+
+ @Override
+ protected Class<?> getSelectionExpectedType() {
+ return ETypedElementCase.class;
+ }
+
+ public Object execute(final ExecutionEvent event) throws ExecutionException {
+ final EditingDomain editingDomain = Utils.getEditingDomain(event);
+ final Display display = Utils.getDisplay(event);
+ return ICustomizationDialogFactory.DEFAULT.openAddCaseQueryDialog(
+ display, editingDomain);
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/AddCustomizationPropertyInEClassHandler.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/AddCustomizationPropertyInEClassHandler.java
index d824b8255cf..a5004ff4591 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/AddCustomizationPropertyInEClassHandler.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/AddCustomizationPropertyInEClassHandler.java
@@ -1,42 +1,42 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.handler;
-
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.EClassCustomization;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.dialog.ICustomizationDialogFactory;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.handler.AbstractSelectionExpectedTypeHandler;
-import org.eclipse.swt.widgets.Display;
-
-/**
- * Handler for the creation of an Customization Property into an EClass
- * Customization.
- */
-public class AddCustomizationPropertyInEClassHandler extends
- AbstractSelectionExpectedTypeHandler {
-
- public Object execute(final ExecutionEvent event) throws ExecutionException {
- final EditingDomain editingDomain = Utils.getEditingDomain(event);
- final Display display = Utils.getDisplay(event);
- return ICustomizationDialogFactory.DEFAULT
- .openAddCustomizationPropertyDialog(display, editingDomain);
- }
-
- @Override
- protected Class<?> getSelectionExpectedType() {
- return EClassCustomization.class;
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.handler;
+
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.EClassCustomization;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.dialog.ICustomizationDialogFactory;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.handler.AbstractSelectionExpectedTypeHandler;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * Handler for the creation of an Customization Property into an EClass
+ * Customization.
+ */
+public class AddCustomizationPropertyInEClassHandler extends
+ AbstractSelectionExpectedTypeHandler {
+
+ public Object execute(final ExecutionEvent event) throws ExecutionException {
+ final EditingDomain editingDomain = Utils.getEditingDomain(event);
+ final Display display = Utils.getDisplay(event);
+ return ICustomizationDialogFactory.DEFAULT
+ .openAddCustomizationPropertyDialog(display, editingDomain);
+ }
+
+ @Override
+ protected Class<?> getSelectionExpectedType() {
+ return EClassCustomization.class;
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/AddCustomizationPropertyInFacetHandler.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/AddCustomizationPropertyInFacetHandler.java
index a0a9ea8aac7..77c0bce019e 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/AddCustomizationPropertyInFacetHandler.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/AddCustomizationPropertyInFacetHandler.java
@@ -1,42 +1,42 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.handler;
-
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.FacetCustomization;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.dialog.ICustomizationDialogFactory;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.handler.AbstractSelectionExpectedTypeHandler;
-import org.eclipse.swt.widgets.Display;
-
-/**
- * Handler for the creation of an Customization Property into a Facet
- * Customization.
- */
-public class AddCustomizationPropertyInFacetHandler extends
- AbstractSelectionExpectedTypeHandler {
-
- public Object execute(final ExecutionEvent event) throws ExecutionException {
- final EditingDomain editingDomain = Utils.getEditingDomain(event);
- final Display display = Utils.getDisplay(event);
- return ICustomizationDialogFactory.DEFAULT
- .openAddCustomizationPropertyDialog(display, editingDomain);
- }
-
- @Override
- protected Class<?> getSelectionExpectedType() {
- return FacetCustomization.class;
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.handler;
+
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.FacetCustomization;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.dialog.ICustomizationDialogFactory;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.handler.AbstractSelectionExpectedTypeHandler;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * Handler for the creation of an Customization Property into a Facet
+ * Customization.
+ */
+public class AddCustomizationPropertyInFacetHandler extends
+ AbstractSelectionExpectedTypeHandler {
+
+ public Object execute(final ExecutionEvent event) throws ExecutionException {
+ final EditingDomain editingDomain = Utils.getEditingDomain(event);
+ final Display display = Utils.getDisplay(event);
+ return ICustomizationDialogFactory.DEFAULT
+ .openAddCustomizationPropertyDialog(display, editingDomain);
+ }
+
+ @Override
+ protected Class<?> getSelectionExpectedType() {
+ return FacetCustomization.class;
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/CreateEClassCustomizationHandler.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/CreateEClassCustomizationHandler.java
index c8a9473612d..a47ea52325a 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/CreateEClassCustomizationHandler.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/CreateEClassCustomizationHandler.java
@@ -1,41 +1,41 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.handler;
-
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.dialog.ICustomizationDialogFactory;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.handler.AbstractSelectionExpectedTypeHandler;
-import org.eclipse.swt.widgets.Display;
-
-/**
- * Handler for the creation of an EClass Customization.
- */
-public class CreateEClassCustomizationHandler extends
- AbstractSelectionExpectedTypeHandler {
-
- public Object execute(final ExecutionEvent event) throws ExecutionException {
- final EditingDomain editingDomain = Utils.getEditingDomain(event);
- final Display display = Utils.getDisplay(event);
- return ICustomizationDialogFactory.DEFAULT
- .openCreateEClassCustomizationDialog(display, editingDomain);
- }
-
- @Override
- protected Class<?> getSelectionExpectedType() {
- return Customization.class;
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.handler;
+
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.dialog.ICustomizationDialogFactory;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.handler.AbstractSelectionExpectedTypeHandler;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * Handler for the creation of an EClass Customization.
+ */
+public class CreateEClassCustomizationHandler extends
+ AbstractSelectionExpectedTypeHandler {
+
+ public Object execute(final ExecutionEvent event) throws ExecutionException {
+ final EditingDomain editingDomain = Utils.getEditingDomain(event);
+ final Display display = Utils.getDisplay(event);
+ return ICustomizationDialogFactory.DEFAULT
+ .openCreateEClassCustomizationDialog(display, editingDomain);
+ }
+
+ @Override
+ protected Class<?> getSelectionExpectedType() {
+ return Customization.class;
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/CreateFacetCustomizationHandler.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/CreateFacetCustomizationHandler.java
index 8b97b2bff48..d2ca05d3eb4 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/CreateFacetCustomizationHandler.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/handler/CreateFacetCustomizationHandler.java
@@ -1,40 +1,40 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.handler;
-
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.dialog.ICustomizationDialogFactory;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.handler.AbstractSelectionExpectedTypeHandler;
-import org.eclipse.swt.widgets.Display;
-
-/**
- * Handler for the creation of an Facet Customization.
- */
-public class CreateFacetCustomizationHandler extends AbstractSelectionExpectedTypeHandler {
-
- public Object execute(final ExecutionEvent event) throws ExecutionException {
- final EditingDomain editingDomain = Utils.getEditingDomain(event);
- final Display display = Utils.getDisplay(event);
- return ICustomizationDialogFactory.DEFAULT
- .openCreateFacetCustomizationDialog(display, editingDomain);
- }
-
- @Override
- protected Class<?> getSelectionExpectedType() {
- return Customization.class;
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.handler;
+
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.dialog.ICustomizationDialogFactory;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.handler.AbstractSelectionExpectedTypeHandler;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * Handler for the creation of an Facet Customization.
+ */
+public class CreateFacetCustomizationHandler extends AbstractSelectionExpectedTypeHandler {
+
+ public Object execute(final ExecutionEvent event) throws ExecutionException {
+ final EditingDomain editingDomain = Utils.getEditingDomain(event);
+ final Display display = Utils.getDisplay(event);
+ return ICustomizationDialogFactory.DEFAULT
+ .openCreateFacetCustomizationDialog(display, editingDomain);
+ }
+
+ @Override
+ protected Class<?> getSelectionExpectedType() {
+ return Customization.class;
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/AddCaseQueryWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/AddCaseQueryWidget.java
index f27f7d662b1..ac144d0a38c 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/AddCaseQueryWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/AddCaseQueryWidget.java
@@ -1,93 +1,93 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.command;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementCase;
-import org.eclipse.papyrus.emf.facet.custom.sdk.core.ICustomizationCommandFactory;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.property.name.GetCaseQueryNameWidget;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.property.name.GetCaseQueryTypeWidget;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query;
-import org.eclipse.papyrus.emf.facet.efacet.sdk.ui.internal.exported.IQueryContext;
-import org.eclipse.papyrus.emf.facet.efacet.sdk.ui.internal.query.SelectQueryTypeWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.AbstractCommandWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * Widget for the creation of a case query. This Widget return a command ( {@link #getCommand()} for the creation of the element into the model.
- *
- * </p> This widget uses 3 others widgets:
- *
- * <li> {@link GetCaseQueryNameWidget} to display the name of the query.</li> <li>
- * {@link GetCaseQueryTypeWidget} to display the type of the query.</li> <li>
- * {@link SelectQueryTypeWidget} to select the query and open the query editor.</li>
- */
-public class AddCaseQueryWidget extends AbstractCommandWidget {
-
- private final PropertyElement2<ETypedElementCase> queryCaseProp;
- private final PropertyElement2<Query> queryProperty;
- private final ICustomizationCommandFactory customCmdFactory;
- private final IQueryContext queryContext;
-
- /**
- * Constructor.
- *
- * @param parent
- * the parent of this composite.
- * @param properties
- * the properties.
- * @param customCmdFactory
- * @param queryCaseProp
- * @param queryNameProp
- * @param queryTypeProp
- * @param queryProperty
- */
- public AddCaseQueryWidget(final Composite parent,
- final ICustomizationCommandFactory customCmdFactory,
- final PropertyElement2<ETypedElementCase> queryCaseProperty,
- final PropertyElement2<Query> queryProperty,
- final IQueryContext queryContext) {
- super(parent);
- this.customCmdFactory = customCmdFactory;
- this.queryCaseProp = queryCaseProperty;
- this.queryProperty = queryProperty;
- this.queryContext = queryContext;
- }
-
- @Override
- public Command getCommand() {
- final ETypedElementCase elementCase = this.queryCaseProp.getValue2();
- final Query query = this.queryProperty.getValue2();
- return this.customCmdFactory.addValueInCase(
- elementCase, query);
- }
-
- @Override
- protected void addSubWidgets() {
- addSubWidget(new GetCaseQueryNameWidget(this, this.queryCaseProp));
- final SelectQueryTypeWidget queryTypeWidget = new SelectQueryTypeWidget(
- this, this.queryProperty, true, this.queryContext);
- addSubWidget(queryTypeWidget);
- }
-
- @Override
- public void notifyChanged() {
- // Nothing to do.
- }
-
- @Override
- public void onDialogValidation() {
- // Nothing to do.
- }
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.command;
+
+import org.eclipse.emf.common.command.Command;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementCase;
+import org.eclipse.papyrus.emf.facet.custom.sdk.core.ICustomizationCommandFactory;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.property.name.GetCaseQueryNameWidget;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.property.name.GetCaseQueryTypeWidget;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.extensible.Query;
+import org.eclipse.papyrus.emf.facet.efacet.sdk.ui.internal.exported.IQueryContext;
+import org.eclipse.papyrus.emf.facet.efacet.sdk.ui.internal.query.SelectQueryTypeWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.AbstractCommandWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
+import org.eclipse.swt.widgets.Composite;
+
+/**
+ * Widget for the creation of a case query. This Widget return a command ( {@link #getCommand()} for the creation of the element into the model.
+ *
+ * </p> This widget uses 3 others widgets:
+ *
+ * <li> {@link GetCaseQueryNameWidget} to display the name of the query.</li> <li>
+ * {@link GetCaseQueryTypeWidget} to display the type of the query.</li> <li>
+ * {@link SelectQueryTypeWidget} to select the query and open the query editor.</li>
+ */
+public class AddCaseQueryWidget extends AbstractCommandWidget {
+
+ private final PropertyElement2<ETypedElementCase> queryCaseProp;
+ private final PropertyElement2<Query> queryProperty;
+ private final ICustomizationCommandFactory customCmdFactory;
+ private final IQueryContext queryContext;
+
+ /**
+ * Constructor.
+ *
+ * @param parent
+ * the parent of this composite.
+ * @param properties
+ * the properties.
+ * @param customCmdFactory
+ * @param queryCaseProp
+ * @param queryNameProp
+ * @param queryTypeProp
+ * @param queryProperty
+ */
+ public AddCaseQueryWidget(final Composite parent,
+ final ICustomizationCommandFactory customCmdFactory,
+ final PropertyElement2<ETypedElementCase> queryCaseProperty,
+ final PropertyElement2<Query> queryProperty,
+ final IQueryContext queryContext) {
+ super(parent);
+ this.customCmdFactory = customCmdFactory;
+ this.queryCaseProp = queryCaseProperty;
+ this.queryProperty = queryProperty;
+ this.queryContext = queryContext;
+ }
+
+ @Override
+ public Command getCommand() {
+ final ETypedElementCase elementCase = this.queryCaseProp.getValue2();
+ final Query query = this.queryProperty.getValue2();
+ return this.customCmdFactory.addValueInCase(
+ elementCase, query);
+ }
+
+ @Override
+ protected void addSubWidgets() {
+ addSubWidget(new GetCaseQueryNameWidget(this, this.queryCaseProp));
+ final SelectQueryTypeWidget queryTypeWidget = new SelectQueryTypeWidget(
+ this, this.queryProperty, true, this.queryContext);
+ addSubWidget(queryTypeWidget);
+ }
+
+ @Override
+ public void notifyChanged() {
+ // Nothing to do.
+ }
+
+ @Override
+ public void onDialogValidation() {
+ // Nothing to do.
+ }
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/AddCustomizationPropertyWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/AddCustomizationPropertyWidget.java
index 8c23f2e0f45..fb93f4edf91 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/AddCustomizationPropertyWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/AddCustomizationPropertyWidget.java
@@ -1,118 +1,118 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.command;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.CustomFactory;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.EClassCustomization;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementCase;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementSwitchQuery;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate.GetOperationFacetWidget;
-import org.eclipse.papyrus.emf.facet.efacet.core.IFacetCommandFactoryFactory;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.AbstractCommandWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * Widget for the selection of a customization property. This Widget return a
- * command ( {@link #getCommand()} for the creation of the element into the
- * model.</p>
- *
- * This widget uses the {@link GetOperationFacetWidget} widget to display a
- * dialog where the user select the operation he wants.</p>
- *
- * When the operation is selected, a copy of this operation is made and this one
- * will be added to the model.</p>
- *
- * Cases are created to be added to the operation:</p>
- *
- * <li>a <code>null</code> case</li> <li>a case for each {@link EStructuralFeature} of the extended meta-class</li>
- */
-public class AddCustomizationPropertyWidget extends
- AbstractCommandWidget {
-
- private final EClassCustomization eClassCustom;
- private final PropertyElement2<FacetOperation> facetOpProperty;
- private final EditingDomain editingDomain;
-
- /**
- * Constructor.
- *
- * @param parent
- * the parent of this composite.
- * @param properties
- * the properties.
- */
- public AddCustomizationPropertyWidget(final Composite parent,
- final PropertyElement2<FacetOperation> facetOpProperty,
- final EClassCustomization eClassCustomProp,
- final EditingDomain editingDomain) {
- super(parent);
- this.facetOpProperty = facetOpProperty;
- this.eClassCustom = eClassCustomProp;
- this.editingDomain = editingDomain;
- }
-
- @Override
- public Command getCommand() {
- final FacetOperation customOperation = (FacetOperation) this.facetOpProperty
- .getValue();
- // Copy of the selected operation.
- final FacetOperation facetOperation = EcoreUtil
- .copy(customOperation);
- // Set the selected operation has the override operation of the new one.
- facetOperation.setOverride(customOperation);
- // Creation of the Query
- final ETypedElementSwitchQuery eTypedElementSQ = CustomFactory.eINSTANCE
- .createETypedElementSwitchQuery();
- ETypedElementCase elementCase;
- // Adding a null case
- elementCase = CustomFactory.eINSTANCE.createETypedElementCase();
- elementCase.setCase(null);
- eTypedElementSQ.getCases().add(elementCase);
- // Adding a Case for each Structural Feature.
- for (final EStructuralFeature feature : this.eClassCustom
- .getExtendedMetaclass().getEAllStructuralFeatures()) {
- elementCase = CustomFactory.eINSTANCE.createETypedElementCase();
- elementCase.setCase(feature);
- eTypedElementSQ.getCases().add(elementCase);
- }
- // Set the query created to the custom operation.
- facetOperation.setQuery(eTypedElementSQ);
- return IFacetCommandFactoryFactory.DEFAULT.createCommandFactory(
- this.editingDomain).createAddOperationInFacetCommand(
- this.eClassCustom, facetOperation);
- }
-
- @Override
- public void onDialogValidation() {
- // Nothing to do.
- }
-
- @Override
- protected void addSubWidgets() {
- final GetOperationFacetWidget widget = new GetOperationFacetWidget(
- this, this.facetOpProperty, this.eClassCustom);
- addSubWidget(widget);
- }
-
- @Override
- public void notifyChanged() {
- // Nothing to do.
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.command;
+
+import org.eclipse.emf.common.command.Command;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.CustomFactory;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.EClassCustomization;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementCase;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementSwitchQuery;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate.GetOperationFacetWidget;
+import org.eclipse.papyrus.emf.facet.efacet.core.IFacetCommandFactoryFactory;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.AbstractCommandWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
+import org.eclipse.swt.widgets.Composite;
+
+/**
+ * Widget for the selection of a customization property. This Widget return a
+ * command ( {@link #getCommand()} for the creation of the element into the
+ * model.</p>
+ *
+ * This widget uses the {@link GetOperationFacetWidget} widget to display a
+ * dialog where the user select the operation he wants.</p>
+ *
+ * When the operation is selected, a copy of this operation is made and this one
+ * will be added to the model.</p>
+ *
+ * Cases are created to be added to the operation:</p>
+ *
+ * <li>a <code>null</code> case</li> <li>a case for each {@link EStructuralFeature} of the extended meta-class</li>
+ */
+public class AddCustomizationPropertyWidget extends
+ AbstractCommandWidget {
+
+ private final EClassCustomization eClassCustom;
+ private final PropertyElement2<FacetOperation> facetOpProperty;
+ private final EditingDomain editingDomain;
+
+ /**
+ * Constructor.
+ *
+ * @param parent
+ * the parent of this composite.
+ * @param properties
+ * the properties.
+ */
+ public AddCustomizationPropertyWidget(final Composite parent,
+ final PropertyElement2<FacetOperation> facetOpProperty,
+ final EClassCustomization eClassCustomProp,
+ final EditingDomain editingDomain) {
+ super(parent);
+ this.facetOpProperty = facetOpProperty;
+ this.eClassCustom = eClassCustomProp;
+ this.editingDomain = editingDomain;
+ }
+
+ @Override
+ public Command getCommand() {
+ final FacetOperation customOperation = (FacetOperation) this.facetOpProperty
+ .getValue();
+ // Copy of the selected operation.
+ final FacetOperation facetOperation = EcoreUtil
+ .copy(customOperation);
+ // Set the selected operation has the override operation of the new one.
+ facetOperation.setOverride(customOperation);
+ // Creation of the Query
+ final ETypedElementSwitchQuery eTypedElementSQ = CustomFactory.eINSTANCE
+ .createETypedElementSwitchQuery();
+ ETypedElementCase elementCase;
+ // Adding a null case
+ elementCase = CustomFactory.eINSTANCE.createETypedElementCase();
+ elementCase.setCase(null);
+ eTypedElementSQ.getCases().add(elementCase);
+ // Adding a Case for each Structural Feature.
+ for (final EStructuralFeature feature : this.eClassCustom
+ .getExtendedMetaclass().getEAllStructuralFeatures()) {
+ elementCase = CustomFactory.eINSTANCE.createETypedElementCase();
+ elementCase.setCase(feature);
+ eTypedElementSQ.getCases().add(elementCase);
+ }
+ // Set the query created to the custom operation.
+ facetOperation.setQuery(eTypedElementSQ);
+ return IFacetCommandFactoryFactory.DEFAULT.createCommandFactory(
+ this.editingDomain).createAddOperationInFacetCommand(
+ this.eClassCustom, facetOperation);
+ }
+
+ @Override
+ public void onDialogValidation() {
+ // Nothing to do.
+ }
+
+ @Override
+ protected void addSubWidgets() {
+ final GetOperationFacetWidget widget = new GetOperationFacetWidget(
+ this, this.facetOpProperty, this.eClassCustom);
+ addSubWidget(widget);
+ }
+
+ @Override
+ public void notifyChanged() {
+ // Nothing to do.
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/CreateEClassCustomizationWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/CreateEClassCustomizationWidget.java
index 97c8e40912a..d22ddc366f0 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/CreateEClassCustomizationWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/CreateEClassCustomizationWidget.java
@@ -1,178 +1,178 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.command;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.CustomFactory;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.EClassCustomization;
-import org.eclipse.papyrus.emf.facet.custom.sdk.core.ICustomizationCommandFactory;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate.GetExtendedFacetWidget;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate.GetOrCreateCustomizationWidget;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.metaclass.GetExtendedMetaclassWidget;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.AbstractCommandWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * Widget for the creation of an {@link EClassCustomization}. This Widget return
- * a command ( {@link #getCommand()} for the creation of the element into the
- * model.
- * <p/>
- *
- * This widget uses 3 others:
- * <p/>
- * <li> {@link GetOrCreateCustomizationWidget} for the selection of the parent.</li>
- * <p/>
- * <li> {@link GetExtendedMetaclassWidget} for the selection of the extended meta-class</li>
- * <p/>
- * <li> {@link GetExtendedFacetWidget} for the selection of the extended {@link Facet}</li>
- */
-public class CreateEClassCustomizationWidget extends AbstractCommandWidget {
-
- private final PropertyElement2<Customization> customProperty;
- private final PropertyElement2<EClass> mClassProperty;
- private final PropertyElement2<Facet> extFacetProperty;
-
- private GetOrCreateCustomizationWidget customWidget;
- private GetExtendedMetaclassWidget extendedMCWidget;
- private GetExtendedFacetWidget extendedFacetW;
- private final ICustomizationCommandFactory customCmdFactory;
- private final EditingDomain editingDomain;
-
- /**
- * Constructor.
- *
- * @param parent
- * the parent of this composite.
- * @param properties
- * the properties.
- */
- public CreateEClassCustomizationWidget(final Composite parent,
- final ICustomizationCommandFactory customCmdFactory,
- final EditingDomain editingDomain,
- final PropertyElement2<Customization> customProperty,
- final PropertyElement2<EClass> mClassProperty,
- final PropertyElement2<Facet> extFacetProperty) {
- super(parent);
- this.customCmdFactory = customCmdFactory;
- this.editingDomain = editingDomain;
- this.customProperty = customProperty;
- this.mClassProperty = mClassProperty;
- this.extFacetProperty = extFacetProperty;
- }
-
- @Override
- public Command getCommand() {
- final Customization customization = (Customization) this
- .getCustomizationProperty().getValue();
- final EClassCustomization eClassCustom = createEClassCustomization();
- return this.customCmdFactory.createEClassCustomization(customization,
- eClassCustom);
- }
-
- public EClassCustomization createEClassCustomization() {
- final EClass extendedMetaclass = (EClass) this.getMetaClassProperty()
- .getValue();
- final Facet extendedFacet = (Facet) this.getExtendedFacetProperty()
- .getValue();
- final String name = extendedMetaclass.getName() + " " //$NON-NLS-1$
- + extendedFacet.getDocumentation();
- final EClassCustomization eClassCustom = getEClassCustomization();
- eClassCustom.setName(name);
- eClassCustom.setExtendedMetaclass(extendedMetaclass);
- eClassCustom.getExtendedFacets().add(extendedFacet);
- return eClassCustom;
- }
-
- @SuppressWarnings("static-method")
- // @SuppressWarnings("static-method") This method is overrode by
- // EditEClassCustomizationWidget.
- public EClassCustomization getEClassCustomization() {
- return CustomFactory.eINSTANCE.createEClassCustomization();
- }
-
- @Override
- public void onDialogValidation() {
- // Nothing.
- }
-
- @Override
- protected void addSubWidgets() {
- this.customWidget = new GetOrCreateCustomizationWidget(this,
- this.customProperty, this.editingDomain);
- addSubWidget(this.customWidget);
- this.extendedMCWidget = new GetExtendedMetaclassWidget(this,
- this.mClassProperty, this.customProperty);
- addSubWidget(this.extendedMCWidget);
- this.extendedFacetW = new GetExtendedFacetWidget(this,
- this.extFacetProperty);
- addSubWidget(this.extendedFacetW);
- }
-
- @Override
- public void notifyChanged() {
- // Nothing.
- }
-
- /**
- * @return the customizationProperty
- */
- public PropertyElement getCustomizationProperty() {
- return this.customProperty;
- }
-
- /**
- * @return the metaClassProperty
- */
- public PropertyElement getMetaClassProperty() {
- return this.mClassProperty;
- }
-
- /**
- * @return the extendedFacetProperty
- */
- public PropertyElement getExtendedFacetProperty() {
- return this.extFacetProperty;
- }
-
- /**
- * @return the getOrCreateCustomizationWidget
- */
- public GetOrCreateCustomizationWidget getGetOrCreateCustomizationWidget() {
- return this.customWidget;
- }
-
- /**
- * @return the getExtendedMetaclassWidget
- */
- public GetExtendedMetaclassWidget getGetExtendedMetaclassWidget() {
- return this.extendedMCWidget;
- }
-
- /**
- * @return the getExtendedFacetWidget
- */
- public GetExtendedFacetWidget getGetExtendedFacetWidget() {
- return this.extendedFacetW;
- }
-
- protected final ICustomizationCommandFactory getCustomCmdFactory() {
- return this.customCmdFactory;
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.command;
+
+import org.eclipse.emf.common.command.Command;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.CustomFactory;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.EClassCustomization;
+import org.eclipse.papyrus.emf.facet.custom.sdk.core.ICustomizationCommandFactory;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate.GetExtendedFacetWidget;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate.GetOrCreateCustomizationWidget;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.metaclass.GetExtendedMetaclassWidget;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.AbstractCommandWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
+import org.eclipse.swt.widgets.Composite;
+
+/**
+ * Widget for the creation of an {@link EClassCustomization}. This Widget return
+ * a command ( {@link #getCommand()} for the creation of the element into the
+ * model.
+ * <p/>
+ *
+ * This widget uses 3 others:
+ * <p/>
+ * <li> {@link GetOrCreateCustomizationWidget} for the selection of the parent.</li>
+ * <p/>
+ * <li> {@link GetExtendedMetaclassWidget} for the selection of the extended meta-class</li>
+ * <p/>
+ * <li> {@link GetExtendedFacetWidget} for the selection of the extended {@link Facet}</li>
+ */
+public class CreateEClassCustomizationWidget extends AbstractCommandWidget {
+
+ private final PropertyElement2<Customization> customProperty;
+ private final PropertyElement2<EClass> mClassProperty;
+ private final PropertyElement2<Facet> extFacetProperty;
+
+ private GetOrCreateCustomizationWidget customWidget;
+ private GetExtendedMetaclassWidget extendedMCWidget;
+ private GetExtendedFacetWidget extendedFacetW;
+ private final ICustomizationCommandFactory customCmdFactory;
+ private final EditingDomain editingDomain;
+
+ /**
+ * Constructor.
+ *
+ * @param parent
+ * the parent of this composite.
+ * @param properties
+ * the properties.
+ */
+ public CreateEClassCustomizationWidget(final Composite parent,
+ final ICustomizationCommandFactory customCmdFactory,
+ final EditingDomain editingDomain,
+ final PropertyElement2<Customization> customProperty,
+ final PropertyElement2<EClass> mClassProperty,
+ final PropertyElement2<Facet> extFacetProperty) {
+ super(parent);
+ this.customCmdFactory = customCmdFactory;
+ this.editingDomain = editingDomain;
+ this.customProperty = customProperty;
+ this.mClassProperty = mClassProperty;
+ this.extFacetProperty = extFacetProperty;
+ }
+
+ @Override
+ public Command getCommand() {
+ final Customization customization = (Customization) this
+ .getCustomizationProperty().getValue();
+ final EClassCustomization eClassCustom = createEClassCustomization();
+ return this.customCmdFactory.createEClassCustomization(customization,
+ eClassCustom);
+ }
+
+ public EClassCustomization createEClassCustomization() {
+ final EClass extendedMetaclass = (EClass) this.getMetaClassProperty()
+ .getValue();
+ final Facet extendedFacet = (Facet) this.getExtendedFacetProperty()
+ .getValue();
+ final String name = extendedMetaclass.getName() + " " //$NON-NLS-1$
+ + extendedFacet.getDocumentation();
+ final EClassCustomization eClassCustom = getEClassCustomization();
+ eClassCustom.setName(name);
+ eClassCustom.setExtendedMetaclass(extendedMetaclass);
+ eClassCustom.getExtendedFacets().add(extendedFacet);
+ return eClassCustom;
+ }
+
+ @SuppressWarnings("static-method")
+ // @SuppressWarnings("static-method") This method is overrode by
+ // EditEClassCustomizationWidget.
+ public EClassCustomization getEClassCustomization() {
+ return CustomFactory.eINSTANCE.createEClassCustomization();
+ }
+
+ @Override
+ public void onDialogValidation() {
+ // Nothing.
+ }
+
+ @Override
+ protected void addSubWidgets() {
+ this.customWidget = new GetOrCreateCustomizationWidget(this,
+ this.customProperty, this.editingDomain);
+ addSubWidget(this.customWidget);
+ this.extendedMCWidget = new GetExtendedMetaclassWidget(this,
+ this.mClassProperty, this.customProperty);
+ addSubWidget(this.extendedMCWidget);
+ this.extendedFacetW = new GetExtendedFacetWidget(this,
+ this.extFacetProperty);
+ addSubWidget(this.extendedFacetW);
+ }
+
+ @Override
+ public void notifyChanged() {
+ // Nothing.
+ }
+
+ /**
+ * @return the customizationProperty
+ */
+ public PropertyElement getCustomizationProperty() {
+ return this.customProperty;
+ }
+
+ /**
+ * @return the metaClassProperty
+ */
+ public PropertyElement getMetaClassProperty() {
+ return this.mClassProperty;
+ }
+
+ /**
+ * @return the extendedFacetProperty
+ */
+ public PropertyElement getExtendedFacetProperty() {
+ return this.extFacetProperty;
+ }
+
+ /**
+ * @return the getOrCreateCustomizationWidget
+ */
+ public GetOrCreateCustomizationWidget getGetOrCreateCustomizationWidget() {
+ return this.customWidget;
+ }
+
+ /**
+ * @return the getExtendedMetaclassWidget
+ */
+ public GetExtendedMetaclassWidget getGetExtendedMetaclassWidget() {
+ return this.extendedMCWidget;
+ }
+
+ /**
+ * @return the getExtendedFacetWidget
+ */
+ public GetExtendedFacetWidget getGetExtendedFacetWidget() {
+ return this.extendedFacetW;
+ }
+
+ protected final ICustomizationCommandFactory getCustomCmdFactory() {
+ return this.customCmdFactory;
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/CreateFacetCustomizationWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/CreateFacetCustomizationWidget.java
index 0cb1276931f..1e4521f1187 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/CreateFacetCustomizationWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/CreateFacetCustomizationWidget.java
@@ -1,122 +1,122 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.command;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.CustomFactory;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.FacetCustomization;
-import org.eclipse.papyrus.emf.facet.custom.sdk.core.ICustomizationCommandFactory;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate.GetCustomizedFacetWidget;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * Widget for the creation of an {@link FacetCustomization}. This Widget return
- * a command ( {@link #getCommand()} for the creation of the element into the
- * model and extends {@link CreateEClassCustomizationWidget}.
- * <p/>
- *
- * This widget add a other widget to the 3 of {@link CreateEClassCustomizationWidget}:
- * <p/>
- * <li> {@link GetCustomizedFacetWidget} for the selection of a {@link Facet}</li>
- */
-public class CreateFacetCustomizationWidget extends
- CreateEClassCustomizationWidget {
-
- private final PropertyElement2<Facet> facetCustomProp;
- private GetCustomizedFacetWidget getCustomFacetW;
-
- /**
- * Constructor.
- *
- * @param parent
- * the parent of this composite.
- * @param properties
- * the properties.
- * @param mClassProperty
- * @param customProperty
- * @param extFacetProperty
- * @param facetCustomProp
- * @param facetCustomProp
- */
- public CreateFacetCustomizationWidget(final Composite parent,
- final ICustomizationCommandFactory customCmdFactory,
- final EditingDomain editingDomain,
- final PropertyElement2<EClass> mClassProperty,
- final PropertyElement2<Customization> customProperty,
- final PropertyElement2<Facet> extFacetProperty,
- final PropertyElement2<Facet> facetCustomProp) {
- super(parent, customCmdFactory, editingDomain,
- customProperty, mClassProperty, extFacetProperty);
- this.facetCustomProp = facetCustomProp;
- }
-
- @Override
- public Command getCommand() {
- final Customization customization = (Customization) this
- .getCustomizationProperty().getValue();
- final FacetCustomization facetCustom = createFacetCustomization();
- return getCustomCmdFactory().createFacetCustomization(customization,
- facetCustom);
- }
-
- public FacetCustomization createFacetCustomization() {
- final EClass extendedMetaclass = (EClass) this.getMetaClassProperty()
- .getValue();
- final Facet extendedFacet = (Facet) this.getExtendedFacetProperty()
- .getValue();
- final String name = extendedMetaclass.getName() + " " //$NON-NLS-1$
- + extendedFacet.getDocumentation();
- final Facet customizedFacet = (Facet) this.facetCustomProp.getValue();
- final FacetCustomization facetCustom = getFacetCustomization();
- facetCustom.setName(name);
- facetCustom.setExtendedMetaclass(extendedMetaclass);
- facetCustom.getExtendedFacets().add(extendedFacet);
- facetCustom.setCustomizedFacet(customizedFacet);
- return facetCustom;
- }
-
- @SuppressWarnings("static-method")
- // @SuppressWarnings("static-method") This method is overrode by EditFacetCustomizationWidget.
- public FacetCustomization getFacetCustomization() {
- return CustomFactory.eINSTANCE.createFacetCustomization();
- }
-
- @Override
- protected void addSubWidgets() {
- super.addSubWidgets();
- this.getCustomFacetW = new GetCustomizedFacetWidget(this,
- this.facetCustomProp);
- addSubWidget(this.getCustomFacetW);
- }
-
- /**
- * @return the facetCustomizedProperty
- */
- public PropertyElement getFacetCustomizedProperty() {
- return this.facetCustomProp;
- }
-
- /**
- * @return the getCustomizedFacetWidget
- */
- public GetCustomizedFacetWidget getGetCustomizedFacetWidget() {
- return this.getCustomFacetW;
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.command;
+
+import org.eclipse.emf.common.command.Command;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.CustomFactory;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.FacetCustomization;
+import org.eclipse.papyrus.emf.facet.custom.sdk.core.ICustomizationCommandFactory;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate.GetCustomizedFacetWidget;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
+import org.eclipse.swt.widgets.Composite;
+
+/**
+ * Widget for the creation of an {@link FacetCustomization}. This Widget return
+ * a command ( {@link #getCommand()} for the creation of the element into the
+ * model and extends {@link CreateEClassCustomizationWidget}.
+ * <p/>
+ *
+ * This widget add a other widget to the 3 of {@link CreateEClassCustomizationWidget}:
+ * <p/>
+ * <li> {@link GetCustomizedFacetWidget} for the selection of a {@link Facet}</li>
+ */
+public class CreateFacetCustomizationWidget extends
+ CreateEClassCustomizationWidget {
+
+ private final PropertyElement2<Facet> facetCustomProp;
+ private GetCustomizedFacetWidget getCustomFacetW;
+
+ /**
+ * Constructor.
+ *
+ * @param parent
+ * the parent of this composite.
+ * @param properties
+ * the properties.
+ * @param mClassProperty
+ * @param customProperty
+ * @param extFacetProperty
+ * @param facetCustomProp
+ * @param facetCustomProp
+ */
+ public CreateFacetCustomizationWidget(final Composite parent,
+ final ICustomizationCommandFactory customCmdFactory,
+ final EditingDomain editingDomain,
+ final PropertyElement2<EClass> mClassProperty,
+ final PropertyElement2<Customization> customProperty,
+ final PropertyElement2<Facet> extFacetProperty,
+ final PropertyElement2<Facet> facetCustomProp) {
+ super(parent, customCmdFactory, editingDomain,
+ customProperty, mClassProperty, extFacetProperty);
+ this.facetCustomProp = facetCustomProp;
+ }
+
+ @Override
+ public Command getCommand() {
+ final Customization customization = (Customization) this
+ .getCustomizationProperty().getValue();
+ final FacetCustomization facetCustom = createFacetCustomization();
+ return getCustomCmdFactory().createFacetCustomization(customization,
+ facetCustom);
+ }
+
+ public FacetCustomization createFacetCustomization() {
+ final EClass extendedMetaclass = (EClass) this.getMetaClassProperty()
+ .getValue();
+ final Facet extendedFacet = (Facet) this.getExtendedFacetProperty()
+ .getValue();
+ final String name = extendedMetaclass.getName() + " " //$NON-NLS-1$
+ + extendedFacet.getDocumentation();
+ final Facet customizedFacet = (Facet) this.facetCustomProp.getValue();
+ final FacetCustomization facetCustom = getFacetCustomization();
+ facetCustom.setName(name);
+ facetCustom.setExtendedMetaclass(extendedMetaclass);
+ facetCustom.getExtendedFacets().add(extendedFacet);
+ facetCustom.setCustomizedFacet(customizedFacet);
+ return facetCustom;
+ }
+
+ @SuppressWarnings("static-method")
+ // @SuppressWarnings("static-method") This method is overrode by EditFacetCustomizationWidget.
+ public FacetCustomization getFacetCustomization() {
+ return CustomFactory.eINSTANCE.createFacetCustomization();
+ }
+
+ @Override
+ protected void addSubWidgets() {
+ super.addSubWidgets();
+ this.getCustomFacetW = new GetCustomizedFacetWidget(this,
+ this.facetCustomProp);
+ addSubWidget(this.getCustomFacetW);
+ }
+
+ /**
+ * @return the facetCustomizedProperty
+ */
+ public PropertyElement getFacetCustomizedProperty() {
+ return this.facetCustomProp;
+ }
+
+ /**
+ * @return the getCustomizedFacetWidget
+ */
+ public GetCustomizedFacetWidget getGetCustomizedFacetWidget() {
+ return this.getCustomFacetW;
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/GetOrCreateCustomizationWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/GetOrCreateCustomizationWidget.java
index 8403dfbfb0d..16e3a6fbdcf 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/GetOrCreateCustomizationWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/command/GetOrCreateCustomizationWidget.java
@@ -1,101 +1,101 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.command;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.command.CreateEClassCustomizationDialog;
-import org.eclipse.papyrus.emf.facet.efacet.core.FacetUtils;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.AbstractGetOrCreateFilteredElementCommandWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * This widget allow the user to select a Customization.
- *
- * @see AbstractGetOrCreateFilteredElementCommandWidget
- */
-public class GetOrCreateCustomizationWidget extends
- AbstractGetOrCreateFilteredElementCommandWidget<Customization, ICommandWidget> {
-
- private final EditingDomain editingDomain;
- private final PropertyElement2<Customization> customProperty;
-
- /**
- * Constructor.
- *
- * @param parent
- * the parent of this composite.
- * @param properties
- * the properties.
- * @param customProperty
- */
- public GetOrCreateCustomizationWidget(final Composite parent,
- final EditingDomain editingDomain,
- final PropertyElement2<Customization> customProperty) {
- super(parent);
- this.editingDomain = editingDomain;
- this.customProperty = customProperty;
- }
-
- @Override
- protected Map<String, Customization> getElements() {
- final Map<String, Customization> result = new HashMap<String, Customization>();
- final Customization initialSelection = this.customProperty.getValue2();
- final FacetSet parent = FacetUtils
- .getContainingFacetSet(initialSelection);
- final Map<String, FacetSet> allFacetSets = FacetUtils
- .getAllFacetSetsByName(parent);
- for (String key : allFacetSets.keySet()) {
- final FacetSet value = allFacetSets.get(key);
- if (value instanceof Customization) {
- final Customization custom = (Customization) value;
- result.put(key, custom);
- }
- }
- final Object name = initialSelection.getName();
- result.remove(name);
- return result;
- }
-
- @Override
- protected IDialog<ICommandWidget> createDialog() {
- return new CreateEClassCustomizationDialog(
- this.customProperty.getValue2(), this.editingDomain);
- }
-
- @Override
- public Command getCommand() {
- // Here, this widget only return a selected element so, no command is
- // returned.
- return null;
- }
-
- @Override
- public void notifyChanged() {
- // No action has to be done if a change appends.
- }
-
- @Override
- public void onDialogValidation() {
- // Nothing.
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.command;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.eclipse.emf.common.command.Command;
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.command.CreateEClassCustomizationDialog;
+import org.eclipse.papyrus.emf.facet.efacet.core.FacetUtils;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.AbstractGetOrCreateFilteredElementCommandWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
+import org.eclipse.swt.widgets.Composite;
+
+/**
+ * This widget allow the user to select a Customization.
+ *
+ * @see AbstractGetOrCreateFilteredElementCommandWidget
+ */
+public class GetOrCreateCustomizationWidget extends
+ AbstractGetOrCreateFilteredElementCommandWidget<Customization, ICommandWidget> {
+
+ private final EditingDomain editingDomain;
+ private final PropertyElement2<Customization> customProperty;
+
+ /**
+ * Constructor.
+ *
+ * @param parent
+ * the parent of this composite.
+ * @param properties
+ * the properties.
+ * @param customProperty
+ */
+ public GetOrCreateCustomizationWidget(final Composite parent,
+ final EditingDomain editingDomain,
+ final PropertyElement2<Customization> customProperty) {
+ super(parent);
+ this.editingDomain = editingDomain;
+ this.customProperty = customProperty;
+ }
+
+ @Override
+ protected Map<String, Customization> getElements() {
+ final Map<String, Customization> result = new HashMap<String, Customization>();
+ final Customization initialSelection = this.customProperty.getValue2();
+ final FacetSet parent = FacetUtils
+ .getContainingFacetSet(initialSelection);
+ final Map<String, FacetSet> allFacetSets = FacetUtils
+ .getAllFacetSetsByName(parent);
+ for (String key : allFacetSets.keySet()) {
+ final FacetSet value = allFacetSets.get(key);
+ if (value instanceof Customization) {
+ final Customization custom = (Customization) value;
+ result.put(key, custom);
+ }
+ }
+ final Object name = initialSelection.getName();
+ result.remove(name);
+ return result;
+ }
+
+ @Override
+ protected IDialog<ICommandWidget> createDialog() {
+ return new CreateEClassCustomizationDialog(
+ this.customProperty.getValue2(), this.editingDomain);
+ }
+
+ @Override
+ public Command getCommand() {
+ // Here, this widget only return a selected element so, no command is
+ // returned.
+ return null;
+ }
+
+ @Override
+ public void notifyChanged() {
+ // No action has to be done if a change appends.
+ }
+
+ @Override
+ public void onDialogValidation() {
+ // Nothing.
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/AbstractGetFacetWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/AbstractGetFacetWidget.java
index abff03a133e..17f6e9a5946 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/AbstractGetFacetWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/AbstractGetFacetWidget.java
@@ -1,61 +1,61 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate;
-
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.component.getorcreate.AbstractGetOrCreateElementWithButtonWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.component.getorcreate.AbstractGetOrCreateElementWithDialogButtonWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * This class extends {@link AbstractGetOrCreateElementWithButtonWidget} and
- * display to the user a label with a textfield and a button to select the
- * customized facet.
- */
-public abstract class AbstractGetFacetWidget<W extends Object> extends
- AbstractGetOrCreateElementWithDialogButtonWidget<Facet, W> {
-
- /**
- * Constructor.
- *
- * @param parent
- * the parent of this composite.
- * @param propertyElement
- * the property element that be edited with this composite.
- * @param properties
- * the map of properties of the parent.
- */
- public AbstractGetFacetWidget(final Composite parent,
- final PropertyElement2<Facet> propertyElement) {
- super(parent, propertyElement);
- }
-
- @Override
- protected String getTextFieldInitialText() {
- return this.getPropertyElement().getValue2().getName();
- }
-
- @Override
- public void notifyChanged() { // NOPMD by gdupe on 24/09/12 16:59
- // NOPMD This methods will be empty in all the sub classes of this class
- // No action has to be done if a change appends.
- }
-
- @Override
- protected void onCanceled() { // NOPMD by gdupe on 24/09/12 16:59
- // NOPMD This methods will be empty in all the sub classes of this class
- // Nothing to do.
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate;
+
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.component.getorcreate.AbstractGetOrCreateElementWithButtonWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.component.getorcreate.AbstractGetOrCreateElementWithDialogButtonWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
+import org.eclipse.swt.widgets.Composite;
+
+/**
+ * This class extends {@link AbstractGetOrCreateElementWithButtonWidget} and
+ * display to the user a label with a textfield and a button to select the
+ * customized facet.
+ */
+public abstract class AbstractGetFacetWidget<W extends Object> extends
+ AbstractGetOrCreateElementWithDialogButtonWidget<Facet, W> {
+
+ /**
+ * Constructor.
+ *
+ * @param parent
+ * the parent of this composite.
+ * @param propertyElement
+ * the property element that be edited with this composite.
+ * @param properties
+ * the map of properties of the parent.
+ */
+ public AbstractGetFacetWidget(final Composite parent,
+ final PropertyElement2<Facet> propertyElement) {
+ super(parent, propertyElement);
+ }
+
+ @Override
+ protected String getTextFieldInitialText() {
+ return this.getPropertyElement().getValue2().getName();
+ }
+
+ @Override
+ public void notifyChanged() { // NOPMD by gdupe on 24/09/12 16:59
+ // NOPMD This methods will be empty in all the sub classes of this class
+ // No action has to be done if a change appends.
+ }
+
+ @Override
+ protected void onCanceled() { // NOPMD by gdupe on 24/09/12 16:59
+ // NOPMD This methods will be empty in all the sub classes of this class
+ // Nothing to do.
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetCustomizedFacetWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetCustomizedFacetWidget.java
index a56316c6a30..466237c69c4 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetCustomizedFacetWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetCustomizedFacetWidget.java
@@ -1,62 +1,62 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate;
-
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.selection.GetCustomizedFacetDialog;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IWithResultDialogCallback;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.component.getorcreate.AbstractGetOrCreateElementWithButtonWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * This class extends {@link AbstractGetOrCreateElementWithButtonWidget} and
- * display to the user a label with a textfield and a button to select the
- * customized facet.
- */
-public class GetCustomizedFacetWidget extends
- AbstractGetFacetWidget<GetFiltredCustomizedFacetWidget> {
-
- /**
- * Constructor.
- *
- * @param parent
- * the parent of this composite.
- * @param propertyElement
- * the property element that be edited with this composite.
- * @param properties
- * the map of properties of the parent.
- */
- public GetCustomizedFacetWidget(final Composite parent,
- final PropertyElement2<Facet> propertyElement) {
- super(parent, propertyElement);
- }
-
- @Override
- protected String getLabel() {
- return Messages.CustomizedFacet;
- }
-
- @Override
- protected String getErrorMessage() {
- return Messages.CustomizedFacet_mustSelectCustomizedFacet;
- }
-
- @Override
- protected GetCustomizedFacetDialog getCreationDialog(
- final IWithResultDialogCallback<Facet> callback) {
- return new GetCustomizedFacetDialog(callback);
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate;
+
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.selection.GetCustomizedFacetDialog;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IWithResultDialogCallback;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.component.getorcreate.AbstractGetOrCreateElementWithButtonWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
+import org.eclipse.swt.widgets.Composite;
+
+/**
+ * This class extends {@link AbstractGetOrCreateElementWithButtonWidget} and
+ * display to the user a label with a textfield and a button to select the
+ * customized facet.
+ */
+public class GetCustomizedFacetWidget extends
+ AbstractGetFacetWidget<GetFiltredCustomizedFacetWidget> {
+
+ /**
+ * Constructor.
+ *
+ * @param parent
+ * the parent of this composite.
+ * @param propertyElement
+ * the property element that be edited with this composite.
+ * @param properties
+ * the map of properties of the parent.
+ */
+ public GetCustomizedFacetWidget(final Composite parent,
+ final PropertyElement2<Facet> propertyElement) {
+ super(parent, propertyElement);
+ }
+
+ @Override
+ protected String getLabel() {
+ return Messages.CustomizedFacet;
+ }
+
+ @Override
+ protected String getErrorMessage() {
+ return Messages.CustomizedFacet_mustSelectCustomizedFacet;
+ }
+
+ @Override
+ protected GetCustomizedFacetDialog getCreationDialog(
+ final IWithResultDialogCallback<Facet> callback) {
+ return new GetCustomizedFacetDialog(callback);
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetExtendedFacetWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetExtendedFacetWidget.java
index bbf437ec536..d5aa55fd4b6 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetExtendedFacetWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetExtendedFacetWidget.java
@@ -1,62 +1,62 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate;
-
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.selection.GetExtendedFacetDialog;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IWithResultDialogCallback;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.component.getorcreate.AbstractGetOrCreateElementWithButtonWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * This class extends {@link AbstractGetOrCreateElementWithButtonWidget}. The
- * widget open the {@link GetExtendedFacetDialog} dialog when the button [...]
- * is pressed {@link #createDialog()}.
- */
-public class GetExtendedFacetWidget extends
- AbstractGetFacetWidget<GetFiltredExtendedFacetWidget> {
-
- /**
- * Constructor.
- *
- * @param parent
- * the parent of this composite.
- * @param propertyElement
- * the property element that be edited with this composite.
- * @param properties
- * the map of properties of the parent.
- */
- public GetExtendedFacetWidget(final Composite parent,
- final PropertyElement2<Facet> propertyElement) {
- super(parent, propertyElement);
- }
-
- @Override
- protected String getLabel() {
- return Messages.ExtendedFacet;
- }
-
- @Override
- protected String getErrorMessage() {
- return Messages.Facet_mustSelectFacet;
- }
-
- @Override
- protected GetExtendedFacetDialog getCreationDialog(
- final IWithResultDialogCallback<Facet> callback) {
- return new GetExtendedFacetDialog(callback);
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate;
+
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.selection.GetExtendedFacetDialog;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IWithResultDialogCallback;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.component.getorcreate.AbstractGetOrCreateElementWithButtonWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
+import org.eclipse.swt.widgets.Composite;
+
+/**
+ * This class extends {@link AbstractGetOrCreateElementWithButtonWidget}. The
+ * widget open the {@link GetExtendedFacetDialog} dialog when the button [...]
+ * is pressed {@link #createDialog()}.
+ */
+public class GetExtendedFacetWidget extends
+ AbstractGetFacetWidget<GetFiltredExtendedFacetWidget> {
+
+ /**
+ * Constructor.
+ *
+ * @param parent
+ * the parent of this composite.
+ * @param propertyElement
+ * the property element that be edited with this composite.
+ * @param properties
+ * the map of properties of the parent.
+ */
+ public GetExtendedFacetWidget(final Composite parent,
+ final PropertyElement2<Facet> propertyElement) {
+ super(parent, propertyElement);
+ }
+
+ @Override
+ protected String getLabel() {
+ return Messages.ExtendedFacet;
+ }
+
+ @Override
+ protected String getErrorMessage() {
+ return Messages.Facet_mustSelectFacet;
+ }
+
+ @Override
+ protected GetExtendedFacetDialog getCreationDialog(
+ final IWithResultDialogCallback<Facet> callback) {
+ return new GetExtendedFacetDialog(callback);
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetFiltredCustomizedFacetWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetFiltredCustomizedFacetWidget.java
index 62631972d49..c51037e9e09 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetFiltredCustomizedFacetWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetFiltredCustomizedFacetWidget.java
@@ -1,120 +1,120 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate;
-
-import java.io.File;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.ecore.EClassifier;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Activator;
-import org.eclipse.papyrus.emf.facet.efacet.core.IFacetSetCatalogManager;
-import org.eclipse.papyrus.emf.facet.efacet.core.IFacetSetCatalogManagerFactory;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet;
-import org.eclipse.papyrus.emf.facet.util.emf.ui.util.EditingUtil;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.AbstractGetOrCreateFilteredElementCommandWidget;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * This widget extends {@link AbstractGetOrCreateFilteredElementCommandWidget} and allow
- * the selection of a {@link Facet} that the Customization will customize. It
- * displays a selection window with a textfield to filter the element in the
- * selection window. Extending {@link AbstractGetOrCreateFilteredElementCommandWidget},
- * a [New...] button can be displayed. Here, no button is displayed because we
- * only select the extended facet into the existing facet.
- * <p/>
- *
- * The selection window will be full up with the customization properties returned by {@link IFacetSetCatalogManager}.
- */
-public class GetFiltredCustomizedFacetWidget extends
- AbstractGetOrCreateFilteredElementCommandWidget<Facet, Object> {
-
- protected static final String TMP_NAME = Activator.getDefault()
- .getBundle().getSymbolicName()
- + ".tmp"; //$NON-NLS-1$
- public static final File DEFAULT_FILE = new File(Platform
- .getStateLocation(Activator.getDefault().getBundle()).toOSString(),
- GetFiltredCustomizedFacetWidget.TMP_NAME);
-
- private final IFacetSetCatalogManager facetSetCatMan;
-
- /**
- * Constructor.
- *
- * @param parent
- * the parent of this composite.
- * @param properties
- * the map of properties of the parent.
- */
- public GetFiltredCustomizedFacetWidget(final Composite parent) {
- super(parent);
- this.facetSetCatMan = IFacetSetCatalogManagerFactory.DEFAULT
- .getOrCreateFacetSetCatalogManager(EditingUtil
- .createDefaultResource(
- GetFiltredCustomizedFacetWidget.DEFAULT_FILE)
- .getResourceSet());
- }
-
- @Override
- protected Map<String, Facet> getElements() {
- final Map<String, Facet> allFacets = new HashMap<String, Facet>();
- final Collection<FacetSet> facetSets = this.facetSetCatMan
- .getRegisteredFacetSets();
- for (final FacetSet facetSet : facetSets) {
- for (final EClassifier eClassifier : facetSet.getEClassifiers()) {
- if ((eClassifier instanceof Facet)
- && (eClassifier.getName() != null)) {
- allFacets.put(eClassifier.getName(), (Facet) eClassifier);
- }
- }
- }
- return allFacets;
- }
-
- @Override
- public void notifyChanged() {
- // No action has to be done if a change appends.
- }
-
- @Override
- public Command getCommand() {
- // Here, this widget only return a selected element so, no command is
- // returned.
- return null;
- }
-
- @Override
- protected IDialog<Object> createDialog() {
- // No "New..." button.
- return null;
- }
-
-
- @Override
- public void onDialogValidation() {
- // Nothing.
- }
-
- /**
- * @return
- */
- public Facet getFacetSelected() {
- return getElementSelected();
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate;
+
+import java.io.File;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.emf.common.command.Command;
+import org.eclipse.emf.ecore.EClassifier;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Activator;
+import org.eclipse.papyrus.emf.facet.efacet.core.IFacetSetCatalogManager;
+import org.eclipse.papyrus.emf.facet.efacet.core.IFacetSetCatalogManagerFactory;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet;
+import org.eclipse.papyrus.emf.facet.util.emf.ui.util.EditingUtil;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.AbstractGetOrCreateFilteredElementCommandWidget;
+import org.eclipse.swt.widgets.Composite;
+
+/**
+ * This widget extends {@link AbstractGetOrCreateFilteredElementCommandWidget} and allow
+ * the selection of a {@link Facet} that the Customization will customize. It
+ * displays a selection window with a textfield to filter the element in the
+ * selection window. Extending {@link AbstractGetOrCreateFilteredElementCommandWidget},
+ * a [New...] button can be displayed. Here, no button is displayed because we
+ * only select the extended facet into the existing facet.
+ * <p/>
+ *
+ * The selection window will be full up with the customization properties returned by {@link IFacetSetCatalogManager}.
+ */
+public class GetFiltredCustomizedFacetWidget extends
+ AbstractGetOrCreateFilteredElementCommandWidget<Facet, Object> {
+
+ protected static final String TMP_NAME = Activator.getDefault()
+ .getBundle().getSymbolicName()
+ + ".tmp"; //$NON-NLS-1$
+ public static final File DEFAULT_FILE = new File(Platform
+ .getStateLocation(Activator.getDefault().getBundle()).toOSString(),
+ GetFiltredCustomizedFacetWidget.TMP_NAME);
+
+ private final IFacetSetCatalogManager facetSetCatMan;
+
+ /**
+ * Constructor.
+ *
+ * @param parent
+ * the parent of this composite.
+ * @param properties
+ * the map of properties of the parent.
+ */
+ public GetFiltredCustomizedFacetWidget(final Composite parent) {
+ super(parent);
+ this.facetSetCatMan = IFacetSetCatalogManagerFactory.DEFAULT
+ .getOrCreateFacetSetCatalogManager(EditingUtil
+ .createDefaultResource(
+ GetFiltredCustomizedFacetWidget.DEFAULT_FILE)
+ .getResourceSet());
+ }
+
+ @Override
+ protected Map<String, Facet> getElements() {
+ final Map<String, Facet> allFacets = new HashMap<String, Facet>();
+ final Collection<FacetSet> facetSets = this.facetSetCatMan
+ .getRegisteredFacetSets();
+ for (final FacetSet facetSet : facetSets) {
+ for (final EClassifier eClassifier : facetSet.getEClassifiers()) {
+ if ((eClassifier instanceof Facet)
+ && (eClassifier.getName() != null)) {
+ allFacets.put(eClassifier.getName(), (Facet) eClassifier);
+ }
+ }
+ }
+ return allFacets;
+ }
+
+ @Override
+ public void notifyChanged() {
+ // No action has to be done if a change appends.
+ }
+
+ @Override
+ public Command getCommand() {
+ // Here, this widget only return a selected element so, no command is
+ // returned.
+ return null;
+ }
+
+ @Override
+ protected IDialog<Object> createDialog() {
+ // No "New..." button.
+ return null;
+ }
+
+
+ @Override
+ public void onDialogValidation() {
+ // Nothing.
+ }
+
+ /**
+ * @return
+ */
+ public Facet getFacetSelected() {
+ return getElementSelected();
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetFiltredExtendedFacetWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetFiltredExtendedFacetWidget.java
index 1d75631cd74..047c4ea1b72 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetFiltredExtendedFacetWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetFiltredExtendedFacetWidget.java
@@ -1,119 +1,119 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate;
-
-import java.io.File;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.ecore.EClassifier;
-import org.eclipse.papyrus.emf.facet.custom.core.ICustomizationPropertiesCatalogManager;
-import org.eclipse.papyrus.emf.facet.custom.core.ICustomizationPropertiesCatalogManagerFactory;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Activator;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet;
-import org.eclipse.papyrus.emf.facet.util.emf.ui.util.EditingUtil;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.AbstractGetOrCreateFilteredElementCommandWidget;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * This widget extends {@link AbstractGetOrCreateFilteredElementCommandWidget} and allow
- * the selection of a {@link Facet} that the Customization will extend. It
- * displays a selection window with a textfield to filter the element in the
- * selection window. Extending {@link AbstractGetOrCreateFilteredElementCommandWidget},
- * a [New...] button can be displayed. Here, no button is displayed because we
- * only select the extended facet into the existing facet.
- * <p/>
- *
- * The selection window will be full up with the customization properties returned by {@link ICustomizationPropertiesCatalogManager}.
- */
-public class GetFiltredExtendedFacetWidget extends
- AbstractGetOrCreateFilteredElementCommandWidget<Facet, Object> {
-
- protected static final String TMP_NAME = Activator.getDefault()
- .getBundle().getSymbolicName()
- + ".tmp"; //$NON-NLS-1$
- public static final File DEFAULT_FILE = new File(Platform
- .getStateLocation(Activator.getDefault().getBundle()).toOSString(),
- GetFiltredExtendedFacetWidget.TMP_NAME);
-
- private final ICustomizationPropertiesCatalogManager customPropCatMan;
-
- /**
- * Constructor.
- *
- * @param parent
- * the parent of this composite.
- * @param properties
- * the map of properties of the parent.
- */
- public GetFiltredExtendedFacetWidget(final Composite parent) {
- super(parent);
- this.customPropCatMan = ICustomizationPropertiesCatalogManagerFactory.INSTANCE
- .getOrCreateCustomizationPropertiesCatalogManager(EditingUtil
- .createDefaultResource(
- GetFiltredExtendedFacetWidget.DEFAULT_FILE)
- .getResourceSet());
- }
-
- @Override
- protected Map<String, Facet> getElements() {
- final Map<String, Facet> allFacets = new HashMap<String, Facet>();
- final List<FacetSet> facetSets = this.customPropCatMan
- .getAllRegisteredCustomizationPropertySet();
- for (final FacetSet facetSet : facetSets) {
- for (final EClassifier eClassifier : facetSet.getEClassifiers()) {
- if ((eClassifier instanceof Facet)
- && (eClassifier.getName() != null)) {
- allFacets.put(eClassifier.getName(), (Facet) eClassifier);
- }
- }
- }
- return allFacets;
- }
-
- @Override
- protected IDialog<Object> createDialog() {
- // No "New..." button.
- return null;
- }
-
- @Override
- public Command getCommand() {
- // Here, this widget only return a selected element so, no command is
- // returned.
- return null;
- }
-
- @Override
- public void notifyChanged() {
- // No action has to be done if a change appends.
- }
-
- @Override
- public void onDialogValidation() {
- // Nothing.
- }
-
- /**
- * @return
- */
- public Facet getFacetSelected() {
- return getElementSelected();
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate;
+
+import java.io.File;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.emf.common.command.Command;
+import org.eclipse.emf.ecore.EClassifier;
+import org.eclipse.papyrus.emf.facet.custom.core.ICustomizationPropertiesCatalogManager;
+import org.eclipse.papyrus.emf.facet.custom.core.ICustomizationPropertiesCatalogManagerFactory;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Activator;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet;
+import org.eclipse.papyrus.emf.facet.util.emf.ui.util.EditingUtil;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.AbstractGetOrCreateFilteredElementCommandWidget;
+import org.eclipse.swt.widgets.Composite;
+
+/**
+ * This widget extends {@link AbstractGetOrCreateFilteredElementCommandWidget} and allow
+ * the selection of a {@link Facet} that the Customization will extend. It
+ * displays a selection window with a textfield to filter the element in the
+ * selection window. Extending {@link AbstractGetOrCreateFilteredElementCommandWidget},
+ * a [New...] button can be displayed. Here, no button is displayed because we
+ * only select the extended facet into the existing facet.
+ * <p/>
+ *
+ * The selection window will be full up with the customization properties returned by {@link ICustomizationPropertiesCatalogManager}.
+ */
+public class GetFiltredExtendedFacetWidget extends
+ AbstractGetOrCreateFilteredElementCommandWidget<Facet, Object> {
+
+ protected static final String TMP_NAME = Activator.getDefault()
+ .getBundle().getSymbolicName()
+ + ".tmp"; //$NON-NLS-1$
+ public static final File DEFAULT_FILE = new File(Platform
+ .getStateLocation(Activator.getDefault().getBundle()).toOSString(),
+ GetFiltredExtendedFacetWidget.TMP_NAME);
+
+ private final ICustomizationPropertiesCatalogManager customPropCatMan;
+
+ /**
+ * Constructor.
+ *
+ * @param parent
+ * the parent of this composite.
+ * @param properties
+ * the map of properties of the parent.
+ */
+ public GetFiltredExtendedFacetWidget(final Composite parent) {
+ super(parent);
+ this.customPropCatMan = ICustomizationPropertiesCatalogManagerFactory.INSTANCE
+ .getOrCreateCustomizationPropertiesCatalogManager(EditingUtil
+ .createDefaultResource(
+ GetFiltredExtendedFacetWidget.DEFAULT_FILE)
+ .getResourceSet());
+ }
+
+ @Override
+ protected Map<String, Facet> getElements() {
+ final Map<String, Facet> allFacets = new HashMap<String, Facet>();
+ final List<FacetSet> facetSets = this.customPropCatMan
+ .getAllRegisteredCustomizationPropertySet();
+ for (final FacetSet facetSet : facetSets) {
+ for (final EClassifier eClassifier : facetSet.getEClassifiers()) {
+ if ((eClassifier instanceof Facet)
+ && (eClassifier.getName() != null)) {
+ allFacets.put(eClassifier.getName(), (Facet) eClassifier);
+ }
+ }
+ }
+ return allFacets;
+ }
+
+ @Override
+ protected IDialog<Object> createDialog() {
+ // No "New..." button.
+ return null;
+ }
+
+ @Override
+ public Command getCommand() {
+ // Here, this widget only return a selected element so, no command is
+ // returned.
+ return null;
+ }
+
+ @Override
+ public void notifyChanged() {
+ // No action has to be done if a change appends.
+ }
+
+ @Override
+ public void onDialogValidation() {
+ // Nothing.
+ }
+
+ /**
+ * @return
+ */
+ public Facet getFacetSelected() {
+ return getElementSelected();
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetFiltredOperationFacetWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetFiltredOperationFacetWidget.java
index 55ff9cc18dd..cfc5f84bf8b 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetFiltredOperationFacetWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetFiltredOperationFacetWidget.java
@@ -1,97 +1,97 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.AbstractGetOrCreateFilteredElementCommandWidget;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * This widget provide the selection of a {@link FacetOperation} available of
- * the selected {@link Facet}. The {@link Facet} is passed in the constructor
- * parameter.
- * <p/>
- *
- * This widget extends {@link AbstractGetOrCreateFilteredElementCommandWidget}.
- *
- * @see AbstractGetOrCreateFilteredElementCommandWidget
- */
-public class GetFiltredOperationFacetWidget extends
- AbstractGetOrCreateFilteredElementCommandWidget<FacetOperation, Object> {
-
- private final Facet selectedFacet;
-
- /**
- * Constructor.
- *
- * @param parent
- * the parent of this composite.
- * @param facetOpProperty
- * @param properties
- * the map of properties of the parent.
- * @param facetOpProperty
- */
- public GetFiltredOperationFacetWidget(final Composite parent,
- final Facet selectedFacet) {
- super(parent);
- this.selectedFacet = selectedFacet;
- }
-
- @Override
- protected Map<String, FacetOperation> getElements() {
- final Map<String, FacetOperation> allFacetOpes = new HashMap<String, FacetOperation>();
- for (final Facet facet : this.selectedFacet.getExtendedFacets()) {
- for (final FacetOperation operation : facet.getFacetOperations()) {
- allFacetOpes.put(operation.getName(), operation);
- }
- }
- return allFacetOpes;
- }
-
- @Override
- protected IDialog<Object> createDialog() {
- // No "New..." button.
- return null;
- }
-
- @Override
- public Command getCommand() {
- // Here, this widget only return a selected element so, no command is
- // returned.
- return null;
- }
-
- @Override
- public void notifyChanged() {
- // No action has to be done if a change appends.
- }
-
- @Override
- public void onDialogValidation() {
- // Nothing.
- }
-
- /**
- * @return
- */
- public FacetOperation getFacetOperationSelected() {
- return getElementSelected();
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.eclipse.emf.common.command.Command;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.AbstractGetOrCreateFilteredElementCommandWidget;
+import org.eclipse.swt.widgets.Composite;
+
+/**
+ * This widget provide the selection of a {@link FacetOperation} available of
+ * the selected {@link Facet}. The {@link Facet} is passed in the constructor
+ * parameter.
+ * <p/>
+ *
+ * This widget extends {@link AbstractGetOrCreateFilteredElementCommandWidget}.
+ *
+ * @see AbstractGetOrCreateFilteredElementCommandWidget
+ */
+public class GetFiltredOperationFacetWidget extends
+ AbstractGetOrCreateFilteredElementCommandWidget<FacetOperation, Object> {
+
+ private final Facet selectedFacet;
+
+ /**
+ * Constructor.
+ *
+ * @param parent
+ * the parent of this composite.
+ * @param facetOpProperty
+ * @param properties
+ * the map of properties of the parent.
+ * @param facetOpProperty
+ */
+ public GetFiltredOperationFacetWidget(final Composite parent,
+ final Facet selectedFacet) {
+ super(parent);
+ this.selectedFacet = selectedFacet;
+ }
+
+ @Override
+ protected Map<String, FacetOperation> getElements() {
+ final Map<String, FacetOperation> allFacetOpes = new HashMap<String, FacetOperation>();
+ for (final Facet facet : this.selectedFacet.getExtendedFacets()) {
+ for (final FacetOperation operation : facet.getFacetOperations()) {
+ allFacetOpes.put(operation.getName(), operation);
+ }
+ }
+ return allFacetOpes;
+ }
+
+ @Override
+ protected IDialog<Object> createDialog() {
+ // No "New..." button.
+ return null;
+ }
+
+ @Override
+ public Command getCommand() {
+ // Here, this widget only return a selected element so, no command is
+ // returned.
+ return null;
+ }
+
+ @Override
+ public void notifyChanged() {
+ // No action has to be done if a change appends.
+ }
+
+ @Override
+ public void onDialogValidation() {
+ // Nothing.
+ }
+
+ /**
+ * @return
+ */
+ public FacetOperation getFacetOperationSelected() {
+ return getElementSelected();
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetOperationFacetWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetOperationFacetWidget.java
index 7aad350d02a..d18076e1e0f 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetOperationFacetWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetOperationFacetWidget.java
@@ -1,82 +1,82 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate;
-
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.selection.GetFacetOperationDialog;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IWithResultDialogCallback;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.component.getorcreate.AbstractGetOrCreateElementWithButtonWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.component.getorcreate.AbstractGetOrCreateElementWithDialogButtonWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * This widget extends {@link AbstractGetOrCreateElementWithButtonWidget}.
- */
-public class GetOperationFacetWidget
- extends
- AbstractGetOrCreateElementWithDialogButtonWidget<FacetOperation, GetFiltredOperationFacetWidget> {
-
- private final Facet facet;
-
- /**
- * Constructor.
- *
- * @param parent
- * the parent of this composite.
- * @param propertyElement
- * the property element that be edited with this composite.
- * @param properties
- * the map of properties of the parent.
- */
- public GetOperationFacetWidget(final Composite parent,
- final PropertyElement2<FacetOperation> propertyElement,
- final Facet facet) {
- super(parent, propertyElement);
- this.facet = facet;
- }
-
- @Override
- protected String getLabel() {
- return Messages.OperationFacet;
- }
-
- @Override
- protected String getErrorMessage() {
- return Messages.OperationFacet_mustSelectOperationFacet;
- }
-
- @Override
- protected String getTextFieldInitialText() {
- return this.getPropertyElement().getValue2().getName();
- }
-
- @Override
- public void notifyChanged() {
- // No action has to be done if a change appends.
- }
-
- @Override
- protected void onCanceled() {
- // Nothing to do.
- }
-
- @Override
- protected GetFacetOperationDialog getCreationDialog(
- final IWithResultDialogCallback<FacetOperation> callback) {
- return new GetFacetOperationDialog(callback, this.facet);
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate;
+
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.selection.GetFacetOperationDialog;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.Facet;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetOperation;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IWithResultDialogCallback;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.component.getorcreate.AbstractGetOrCreateElementWithButtonWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.component.getorcreate.AbstractGetOrCreateElementWithDialogButtonWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
+import org.eclipse.swt.widgets.Composite;
+
+/**
+ * This widget extends {@link AbstractGetOrCreateElementWithButtonWidget}.
+ */
+public class GetOperationFacetWidget
+ extends
+ AbstractGetOrCreateElementWithDialogButtonWidget<FacetOperation, GetFiltredOperationFacetWidget> {
+
+ private final Facet facet;
+
+ /**
+ * Constructor.
+ *
+ * @param parent
+ * the parent of this composite.
+ * @param propertyElement
+ * the property element that be edited with this composite.
+ * @param properties
+ * the map of properties of the parent.
+ */
+ public GetOperationFacetWidget(final Composite parent,
+ final PropertyElement2<FacetOperation> propertyElement,
+ final Facet facet) {
+ super(parent, propertyElement);
+ this.facet = facet;
+ }
+
+ @Override
+ protected String getLabel() {
+ return Messages.OperationFacet;
+ }
+
+ @Override
+ protected String getErrorMessage() {
+ return Messages.OperationFacet_mustSelectOperationFacet;
+ }
+
+ @Override
+ protected String getTextFieldInitialText() {
+ return this.getPropertyElement().getValue2().getName();
+ }
+
+ @Override
+ public void notifyChanged() {
+ // No action has to be done if a change appends.
+ }
+
+ @Override
+ protected void onCanceled() {
+ // Nothing to do.
+ }
+
+ @Override
+ protected GetFacetOperationDialog getCreationDialog(
+ final IWithResultDialogCallback<FacetOperation> callback) {
+ return new GetFacetOperationDialog(callback, this.facet);
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetOrCreateCustomizationWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetOrCreateCustomizationWidget.java
index 8f8b206f9ce..6b2e7f13125 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetOrCreateCustomizationWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/getorcreate/GetOrCreateCustomizationWidget.java
@@ -1,85 +1,85 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate;
-
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.getorcreate.GetOrCreateCustomizationDialog;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IWithResultDialogCallback;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.IGetOrCreateFilteredElementCommmandWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.component.getorcreate.AbstractGetOrCreateElementWithDialogButtonWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * This widget allow the creation of a Customization element.
- */
-public class GetOrCreateCustomizationWidget
- extends
- AbstractGetOrCreateElementWithDialogButtonWidget<Customization, IGetOrCreateFilteredElementCommmandWidget<Customization, ICommandWidget>> {
-
- private final EditingDomain editingDomain;
-
- /**
- * Constructor.*
- *
- * @param parent
- * the parent of this composite.
- * @param propertyElement
- * the property element that be edited with this composite.
- * @param properties
- * the map of properties of the parent.
- */
- public GetOrCreateCustomizationWidget(final Composite parent,
- final PropertyElement2<Customization> propertyElement,
- final EditingDomain editingDomain) {
- super(parent, propertyElement);
- this.editingDomain = editingDomain;
- }
-
- @Override
- protected String getLabel() {
- return Messages.Customization;
- }
-
- @Override
- protected String getErrorMessage() {
- return Messages.Customization_mustSelectCustomization;
- }
-
- @Override
- protected String getTextFieldInitialText() {
- return this.getPropertyElement().getValue2().getName();
- }
-
- @Override
- public void notifyChanged() {
- // No action has to be done if a change appends.
- }
-
- @Override
- protected void onCanceled() {
- // Nothing to do.
- }
-
- @Override
- protected IDialog<IGetOrCreateFilteredElementCommmandWidget<Customization, ICommandWidget>> getCreationDialog(
- final IWithResultDialogCallback<Customization> callback) {
- return new GetOrCreateCustomizationDialog(callback, this.editingDomain,
- this.getPropertyElement().getValue2());
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.getorcreate;
+
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.dialog.getorcreate.GetOrCreateCustomizationDialog;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IDialog;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.dialog.IWithResultDialogCallback;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.ICommandWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.command.IGetOrCreateFilteredElementCommmandWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.component.getorcreate.AbstractGetOrCreateElementWithDialogButtonWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
+import org.eclipse.swt.widgets.Composite;
+
+/**
+ * This widget allow the creation of a Customization element.
+ */
+public class GetOrCreateCustomizationWidget
+ extends
+ AbstractGetOrCreateElementWithDialogButtonWidget<Customization, IGetOrCreateFilteredElementCommmandWidget<Customization, ICommandWidget>> {
+
+ private final EditingDomain editingDomain;
+
+ /**
+ * Constructor.*
+ *
+ * @param parent
+ * the parent of this composite.
+ * @param propertyElement
+ * the property element that be edited with this composite.
+ * @param properties
+ * the map of properties of the parent.
+ */
+ public GetOrCreateCustomizationWidget(final Composite parent,
+ final PropertyElement2<Customization> propertyElement,
+ final EditingDomain editingDomain) {
+ super(parent, propertyElement);
+ this.editingDomain = editingDomain;
+ }
+
+ @Override
+ protected String getLabel() {
+ return Messages.Customization;
+ }
+
+ @Override
+ protected String getErrorMessage() {
+ return Messages.Customization_mustSelectCustomization;
+ }
+
+ @Override
+ protected String getTextFieldInitialText() {
+ return this.getPropertyElement().getValue2().getName();
+ }
+
+ @Override
+ public void notifyChanged() {
+ // No action has to be done if a change appends.
+ }
+
+ @Override
+ protected void onCanceled() {
+ // Nothing to do.
+ }
+
+ @Override
+ protected IDialog<IGetOrCreateFilteredElementCommmandWidget<Customization, ICommandWidget>> getCreationDialog(
+ final IWithResultDialogCallback<Customization> callback) {
+ return new GetOrCreateCustomizationDialog(callback, this.editingDomain,
+ this.getPropertyElement().getValue2());
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/metaclass/GetExtendedMetaclassWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/metaclass/GetExtendedMetaclassWidget.java
index 102b75b3a4c..3f0c4bc3353 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/metaclass/GetExtendedMetaclassWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/metaclass/GetExtendedMetaclassWidget.java
@@ -1,84 +1,84 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.metaclass;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet;
-import org.eclipse.papyrus.emf.facet.util.emf.ui.internal.exported.util.widget.component.metaclass.AbstractGetMetaclassWidget;
-import org.eclipse.papyrus.emf.facet.util.emf.ui.internal.exported.wizard.ISelectETypeWizard;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * Concrete implementation of {@link AbstractGetMetaclassWidget} abstract
- * class.</p>
- *
- * Create a simple Label {@link #getLabel()}TextField and a button.</p> This
- * class provide the selection the extended metaclass. The type used is {@link ETypeSelectionOptions#ECLASS}
- *
- * @since 0.3
- */
-public class GetExtendedMetaclassWidget extends
- AbstractGetMetaclassWidget<EClass> {
-
- /**
- * Constructor.
- *
- * @param parent
- * the parent of this composite.
- * @param propertyElement
- * the property element that will be edited by this composite.
- * @param facetSetProp
- * the property element to get the super, main, facetSet of the
- * model.
- */
- public GetExtendedMetaclassWidget(final Composite parent,
- final PropertyElement2<EClass> propertyElement,
- final PropertyElement2<? extends FacetSet> facetSetProp) {
- super(parent, propertyElement, facetSetProp, EClass.class);
- }
-
- @Override
- protected String getLabel() {
- return Messages.ExtendedMetaClass;
- }
-
- @Override
- protected String getErrorMessage() {
- return Messages.Metaclass_mustSelectMetaclass;
- }
-
- @Override
- public void notifyChanged() {
- // No action has to be done if a change appends.
- }
-
- @Override
- protected String getTextFieldInitialText() {
- return getPropertyElement().getValue2().getName();
- }
-
- @Override
- protected EPackage getEPackage() {
- return this.getEPackageProperty().getValue2();
- }
-
- @Override
- protected ISelectETypeWizard<EClass> createSynchronizedWizard(
- final ISelectETypeWizard<EClass> wizard) {
-
- return null;
- }
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.metaclass;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
+import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.FacetSet;
+import org.eclipse.papyrus.emf.facet.util.emf.ui.internal.exported.util.widget.component.metaclass.AbstractGetMetaclassWidget;
+import org.eclipse.papyrus.emf.facet.util.emf.ui.internal.exported.wizard.ISelectETypeWizard;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
+import org.eclipse.swt.widgets.Composite;
+
+/**
+ * Concrete implementation of {@link AbstractGetMetaclassWidget} abstract
+ * class.</p>
+ *
+ * Create a simple Label {@link #getLabel()}TextField and a button.</p> This
+ * class provide the selection the extended metaclass. The type used is {@link ETypeSelectionOptions#ECLASS}
+ *
+ * @since 0.3
+ */
+public class GetExtendedMetaclassWidget extends
+ AbstractGetMetaclassWidget<EClass> {
+
+ /**
+ * Constructor.
+ *
+ * @param parent
+ * the parent of this composite.
+ * @param propertyElement
+ * the property element that will be edited by this composite.
+ * @param facetSetProp
+ * the property element to get the super, main, facetSet of the
+ * model.
+ */
+ public GetExtendedMetaclassWidget(final Composite parent,
+ final PropertyElement2<EClass> propertyElement,
+ final PropertyElement2<? extends FacetSet> facetSetProp) {
+ super(parent, propertyElement, facetSetProp, EClass.class);
+ }
+
+ @Override
+ protected String getLabel() {
+ return Messages.ExtendedMetaClass;
+ }
+
+ @Override
+ protected String getErrorMessage() {
+ return Messages.Metaclass_mustSelectMetaclass;
+ }
+
+ @Override
+ public void notifyChanged() {
+ // No action has to be done if a change appends.
+ }
+
+ @Override
+ protected String getTextFieldInitialText() {
+ return getPropertyElement().getValue2().getName();
+ }
+
+ @Override
+ protected EPackage getEPackage() {
+ return this.getEPackageProperty().getValue2();
+ }
+
+ @Override
+ protected ISelectETypeWizard<EClass> createSynchronizedWizard(
+ final ISelectETypeWizard<EClass> wizard) {
+
+ return null;
+ }
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/property/name/GetCaseQueryNameWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/property/name/GetCaseQueryNameWidget.java
index 412b97f2aba..a562162ebb0 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/property/name/GetCaseQueryNameWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/property/name/GetCaseQueryNameWidget.java
@@ -1,68 +1,68 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.property.name;
-
-import org.eclipse.emf.ecore.ETypedElement;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementCase;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.component.properties.name.AbstractPrintElementWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * Display a textfield with the query name on it.
- */
-public class GetCaseQueryNameWidget extends
- AbstractPrintElementWidget<ETypedElementCase> {
-
- /**
- * Constructor.
- *
- * @param parent
- * the parent of this composite.
- * @param propertyElement
- * the property element that be edited with this composite.
- */
- public GetCaseQueryNameWidget(final Composite parent,
- final PropertyElement2<ETypedElementCase> propertyElement) {
- super(parent, propertyElement);
- }
-
- @Override
- protected String getLabel() {
- return Messages.Query_case_name;
- }
-
- @Override
- protected String getErrorMessage() {
- return null;
- }
-
- @Override
- protected String getTextFieldInitialText() {
- String result = "The object node cusomization"; //$NON-NLS-1$
- final ETypedElementCase eTECase = this.getPropertyElement().getValue2();
- final ETypedElement eTypedElement = eTECase.getCase();
- if (eTypedElement != null) {
- result = eTypedElement.getName();
- }
- return result;
- }
-
- @Override
- public void notifyChanged() {
- // Nothing.
- }
-
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.property.name;
+
+import org.eclipse.emf.ecore.ETypedElement;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.ETypedElementCase;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.component.properties.name.AbstractPrintElementWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
+import org.eclipse.swt.widgets.Composite;
+
+/**
+ * Display a textfield with the query name on it.
+ */
+public class GetCaseQueryNameWidget extends
+ AbstractPrintElementWidget<ETypedElementCase> {
+
+ /**
+ * Constructor.
+ *
+ * @param parent
+ * the parent of this composite.
+ * @param propertyElement
+ * the property element that be edited with this composite.
+ */
+ public GetCaseQueryNameWidget(final Composite parent,
+ final PropertyElement2<ETypedElementCase> propertyElement) {
+ super(parent, propertyElement);
+ }
+
+ @Override
+ protected String getLabel() {
+ return Messages.Query_case_name;
+ }
+
+ @Override
+ protected String getErrorMessage() {
+ return null;
+ }
+
+ @Override
+ protected String getTextFieldInitialText() {
+ String result = "The object node cusomization"; //$NON-NLS-1$
+ final ETypedElementCase eTECase = this.getPropertyElement().getValue2();
+ final ETypedElement eTypedElement = eTECase.getCase();
+ if (eTypedElement != null) {
+ result = eTypedElement.getName();
+ }
+ return result;
+ }
+
+ @Override
+ public void notifyChanged() {
+ // Nothing.
+ }
+
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/property/name/GetCaseQueryTypeWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/property/name/GetCaseQueryTypeWidget.java
index 491fc8dde9c..75927ca1d47 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/property/name/GetCaseQueryTypeWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/property/name/GetCaseQueryTypeWidget.java
@@ -1,59 +1,59 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.property.name;
-
-import org.eclipse.emf.ecore.ETypedElement;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.component.properties.name.AbstractPrintElementWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * Display a textfield with the query type on it.
- */
-public class GetCaseQueryTypeWidget extends
- AbstractPrintElementWidget<ETypedElement> {
-
- /**
- * Constructor.
- *
- * @param parent
- * the parent of this composite.
- * @param propertyElement
- * the property element that be edited with this composite.
- */
- public GetCaseQueryTypeWidget(final Composite parent,
- final PropertyElement2<ETypedElement> propertyElement) {
- super(parent, propertyElement);
- }
-
- @Override
- protected String getLabel() {
- return Messages.Query_case_type;
- }
-
- @Override
- protected String getErrorMessage() {
- return null;
- }
-
- @Override
- protected String getTextFieldInitialText() {
- return this.getPropertyElement().getValue2().getName();
- }
-
- @Override
- public void notifyChanged() {
- // Nothing.
- }
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.property.name;
+
+import org.eclipse.emf.ecore.ETypedElement;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.component.properties.name.AbstractPrintElementWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
+import org.eclipse.swt.widgets.Composite;
+
+/**
+ * Display a textfield with the query type on it.
+ */
+public class GetCaseQueryTypeWidget extends
+ AbstractPrintElementWidget<ETypedElement> {
+
+ /**
+ * Constructor.
+ *
+ * @param parent
+ * the parent of this composite.
+ * @param propertyElement
+ * the property element that be edited with this composite.
+ */
+ public GetCaseQueryTypeWidget(final Composite parent,
+ final PropertyElement2<ETypedElement> propertyElement) {
+ super(parent, propertyElement);
+ }
+
+ @Override
+ protected String getLabel() {
+ return Messages.Query_case_type;
+ }
+
+ @Override
+ protected String getErrorMessage() {
+ return null;
+ }
+
+ @Override
+ protected String getTextFieldInitialText() {
+ return this.getPropertyElement().getValue2().getName();
+ }
+
+ @Override
+ public void notifyChanged() {
+ // Nothing.
+ }
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/property/name/GetEClassCustomizationNameWidget.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/property/name/GetEClassCustomizationNameWidget.java
index 555bb2ac5e5..1e3ae3f1fbf 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/property/name/GetEClassCustomizationNameWidget.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/widget/property/name/GetEClassCustomizationNameWidget.java
@@ -1,59 +1,59 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.property.name;
-
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.component.properties.name.AbstractGetElementNameWidget;
-import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * Display a textfield with the customization name on it.
- */
-public class GetEClassCustomizationNameWidget extends
- AbstractGetElementNameWidget {
-
- /**
- * Constructor.
- *
- * @param parent
- * the parent of this composite.
- * @param propertyElement
- * the property element that be edited with this composite.
- */
- public GetEClassCustomizationNameWidget(final Composite parent,
- final PropertyElement2<String> propertyElement) {
- super(parent, propertyElement);
- }
-
- @Override
- protected String getLabel() {
- return Messages.Customization;
- }
-
- @Override
- protected String getErrorMessage() {
- return Messages.Customization_mustGiveCustomizationName;
- }
-
- @Override
- protected String getTextFieldInitialText() {
- return (String) this.getPropertyElement().getValue();
- }
-
- @Override
- public void notifyChanged() {
- // No action has to be done if a change appends.
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ * Grégoire Dupé (Mia-Software) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.widget.property.name;
+
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
+import org.eclipse.papyrus.emf.facet.util.ui.internal.exported.util.widget.component.properties.name.AbstractGetElementNameWidget;
+import org.eclipse.papyrus.emf.facet.util.ui.utils.PropertyElement2;
+import org.eclipse.swt.widgets.Composite;
+
+/**
+ * Display a textfield with the customization name on it.
+ */
+public class GetEClassCustomizationNameWidget extends
+ AbstractGetElementNameWidget {
+
+ /**
+ * Constructor.
+ *
+ * @param parent
+ * the parent of this composite.
+ * @param propertyElement
+ * the property element that be edited with this composite.
+ */
+ public GetEClassCustomizationNameWidget(final Composite parent,
+ final PropertyElement2<String> propertyElement) {
+ super(parent, propertyElement);
+ }
+
+ @Override
+ protected String getLabel() {
+ return Messages.Customization;
+ }
+
+ @Override
+ protected String getErrorMessage() {
+ return Messages.Customization_mustGiveCustomizationName;
+ }
+
+ @Override
+ protected String getTextFieldInitialText() {
+ return (String) this.getPropertyElement().getValue();
+ }
+
+ @Override
+ public void notifyChanged() {
+ // No action has to be done if a change appends.
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/wizard/CreateCustimizationWizardImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/wizard/CreateCustimizationWizardImpl.java
index 7b89e4cca78..1404045b77c 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/wizard/CreateCustimizationWizardImpl.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/wizard/CreateCustimizationWizardImpl.java
@@ -1,266 +1,266 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.wizard;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.window.Window;
-import org.eclipse.jface.wizard.IWizardPage;
-import org.eclipse.jface.wizard.Wizard;
-import org.eclipse.jface.wizard.WizardDialog;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.CustomPackage;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
-import org.eclipse.papyrus.emf.facet.custom.sdk.core.ICustomizationActions;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Activator;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.wizard.page.CreateCustomizationWizardPage;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.wizard.page.CustomPropertyWizardPage;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.wizard.page.ICreateCustomizationWizardPage;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.wizard.page.ICustomizationPropertyWizardPage;
-import org.eclipse.papyrus.emf.facet.util.core.Logger;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.IEditorDescriptor;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IEditorRegistry;
-import org.eclipse.ui.INewWizard;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.IWorkbenchPart;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.actions.WorkspaceModifyOperation;
-import org.eclipse.ui.part.FileEditorInput;
-import org.eclipse.ui.part.ISetSelectionTarget;
-
-/**
- * Wizard for the creation of the "custom" file for customization.
- */
-public class CreateCustimizationWizardImpl extends Wizard implements INewWizard {
-
- private WizardDialog dialog;
-
- private IStructuredSelection selection;
- private IWorkbench workbench;
- private final ICreateCustomizationWizardPage customWizardPage;
- private final ICustomizationPropertyWizardPage propertyWP;
-
- private boolean openCustom = true;
-
- public CreateCustimizationWizardImpl() {
- this(PlatformUI.getWorkbench().getActiveWorkbenchWindow()
- .getSelectionService().getSelection());
- }
-
- public CreateCustimizationWizardImpl(final ISelection selection,
- final boolean openCustom) {
- this(selection);
- this.openCustom = openCustom;
- }
-
- public CreateCustimizationWizardImpl(final ISelection selection) {
- super();
- if (selection instanceof IStructuredSelection) {
- this.selection = (IStructuredSelection) selection;
- }
- setWindowTitle(Messages.Create_Customization_Model);
- this.customWizardPage = new CreateCustomizationWizardPage("Whatever", //$NON-NLS-1$
- this.selection);
- this.propertyWP = new CustomPropertyWizardPage("Whatever"); //$NON-NLS-1$
- }
-
- @Override
- public void addPages() {
- addPage(this.customWizardPage);
- addPage(this.propertyWP);
- }
-
- public int open() {
- this.dialog = new WizardDialog(Display.getDefault().getShells()[0],
- this);
- int result = Window.CANCEL;
-
- if (this.dialog != null) {
- result = this.dialog.open();
- }
- return result;
- }
-
- @Override
- public boolean performFinish() {
- return finish();
- }
-
- protected IWorkbenchWindow selectWorkbenchWindow() {
- if (this.workbench == null) {
- this.workbench = PlatformUI.getWorkbench();
- }
- final IWorkbenchWindow workbenchWindow = this.workbench
- .getActiveWorkbenchWindow();
- return workbenchWindow;
- }
-
- protected WorkspaceModifyOperation createOperation(final IFile modelFile) {
- final WorkspaceModifyOperation operation = new WorkspaceModifyOperation() {
- @Override
- protected void execute(final IProgressMonitor progressMonitor) {
- try {
- final Customization customization = createInitialCustomization();
- ICustomizationActions.INSTANCE.saveCustomization(
- customization, modelFile);
- } catch (final Exception exception) {
- Logger.logError(exception, Activator.getDefault());
- } finally {
- progressMonitor.done();
- }
- }
- };
- return operation;
- }
-
- protected void openNewFile(final IFile modelFile,
- final IWorkbenchWindow workbenchWindow, final IWorkbenchPage page) {
- // Open an editor on the new file.
- try {
- final String fileName = modelFile.getName();
- final IEditorRegistry editorRegistry = this.workbench
- .getEditorRegistry();
- final IEditorDescriptor defaultEditor = editorRegistry
- .getDefaultEditor(fileName);
- final String editorId = defaultEditor.getId();
- final FileEditorInput editorInput = new FileEditorInput(modelFile);
- page.openEditor(editorInput, editorId);
- } catch (final PartInitException exception) {
- MessageDialog.openError(workbenchWindow.getShell(), "Open Editor", exception.getMessage()); //$NON-NLS-1$
- }
- }
-
- protected IWorkbenchPage selectNewFile(final IFile modelFile,
- final IWorkbenchWindow workbenchWindow) {
- final IWorkbenchPage page = workbenchWindow.getActivePage();
- final IWorkbenchPart activePart = page.getActivePart();
- if (activePart instanceof ISetSelectionTarget) {
- final ISelection targetSelection = new StructuredSelection(
- modelFile);
- getShell().getDisplay().asyncExec(new Runnable() {
- public void run() {
- ((ISetSelectionTarget) activePart)
- .selectReveal(targetSelection);
- }
- });
- }
- return page;
- }
-
- @Override
- public boolean canFinish() {
- return this.propertyWP.isPageComplete();
- }
-
- public void init(final IWorkbench newWorkbench,
- final IStructuredSelection newSelection) {
- this.workbench = newWorkbench;
- this.selection = newSelection;
- }
-
- protected Customization createInitialCustomization() {
- final Customization customization = CustomPackage.eINSTANCE
- .getCustomFactory().createCustomization();
- final String projectName = getProjectName();
- final String modelCustomName = getModelFile().getName().replaceAll(".custom", ""); //$NON-NLS-1$ //$NON-NLS-2$
- customization.setName(projectName + "." + modelCustomName); //$NON-NLS-1$
- customization.setNsURI(this.propertyWP.getNsUri());
- customization.setNsPrefix(this.propertyWP.getPrefix());
- return customization;
- }
-
- /**
- * @return
- */
- private static String getProjectName() {
- String activeProjectName = null;
- final IEditorPart editorPart = PlatformUI.getWorkbench()
- .getActiveWorkbenchWindow()
- .getActivePage().getActiveEditor();
-
- if (editorPart != null) {
- final FileEditorInput input = (FileEditorInput) editorPart
- .getEditorInput();
- final IFile file = input.getFile();
- final IProject activeProject = file.getProject();
- activeProjectName = activeProject.getName();
- }
- return activeProjectName;
- }
-
- public IFile getModelFile() {
- return this.customWizardPage.getModelFile();
- }
-
- public IWizardPage next() {
- final IWizardPage nextPage = getNextPage(this.getCurrentPage());
- this.dialog.showPage(nextPage);
- return nextPage;
-
- }
-
- public IWizardPage previous() {
- final IWizardPage previousPage = getPreviousPage(this.getCurrentPage());
- this.dialog.showPage(previousPage);
- return previousPage;
- }
-
- public boolean finish() {
- boolean result = false;
-
- if (canFinish()) {
- try {
- // Remember the file.
- final IFile modelFile = getModelFile();
-
- // Do the work within an operation.
- final WorkspaceModifyOperation operation = createOperation(modelFile);
-
- getContainer().run(false, false, operation);
-
- if (this.openCustom) {
- // Select the new file resource in the current view.
- final IWorkbenchWindow workbenchWindow = selectWorkbenchWindow();
- final IWorkbenchPage page = selectNewFile(modelFile,
- workbenchWindow);
-
- openNewFile(modelFile, workbenchWindow, page);
- }
-
- result = true;
- } catch (final Exception exception) {
- Logger.logError(exception, Activator.getDefault());
- }
- }
-
- return result;
- }
-
- public WizardDialog getDialog() {
- return this.dialog;
- }
-
- public IWizardPage getCurrentPage() {
- return this.getContainer().getCurrentPage();
- }
-
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.wizard;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.jface.window.Window;
+import org.eclipse.jface.wizard.IWizardPage;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.jface.wizard.WizardDialog;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.CustomPackage;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.custom.Customization;
+import org.eclipse.papyrus.emf.facet.custom.sdk.core.ICustomizationActions;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Activator;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.wizard.page.CreateCustomizationWizardPage;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.wizard.page.CustomPropertyWizardPage;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.wizard.page.ICreateCustomizationWizardPage;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.wizard.page.ICustomizationPropertyWizardPage;
+import org.eclipse.papyrus.emf.facet.util.core.Logger;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IEditorDescriptor;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IEditorRegistry;
+import org.eclipse.ui.INewWizard;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.actions.WorkspaceModifyOperation;
+import org.eclipse.ui.part.FileEditorInput;
+import org.eclipse.ui.part.ISetSelectionTarget;
+
+/**
+ * Wizard for the creation of the "custom" file for customization.
+ */
+public class CreateCustimizationWizardImpl extends Wizard implements INewWizard {
+
+ private WizardDialog dialog;
+
+ private IStructuredSelection selection;
+ private IWorkbench workbench;
+ private final ICreateCustomizationWizardPage customWizardPage;
+ private final ICustomizationPropertyWizardPage propertyWP;
+
+ private boolean openCustom = true;
+
+ public CreateCustimizationWizardImpl() {
+ this(PlatformUI.getWorkbench().getActiveWorkbenchWindow()
+ .getSelectionService().getSelection());
+ }
+
+ public CreateCustimizationWizardImpl(final ISelection selection,
+ final boolean openCustom) {
+ this(selection);
+ this.openCustom = openCustom;
+ }
+
+ public CreateCustimizationWizardImpl(final ISelection selection) {
+ super();
+ if (selection instanceof IStructuredSelection) {
+ this.selection = (IStructuredSelection) selection;
+ }
+ setWindowTitle(Messages.Create_Customization_Model);
+ this.customWizardPage = new CreateCustomizationWizardPage("Whatever", //$NON-NLS-1$
+ this.selection);
+ this.propertyWP = new CustomPropertyWizardPage("Whatever"); //$NON-NLS-1$
+ }
+
+ @Override
+ public void addPages() {
+ addPage(this.customWizardPage);
+ addPage(this.propertyWP);
+ }
+
+ public int open() {
+ this.dialog = new WizardDialog(Display.getDefault().getShells()[0],
+ this);
+ int result = Window.CANCEL;
+
+ if (this.dialog != null) {
+ result = this.dialog.open();
+ }
+ return result;
+ }
+
+ @Override
+ public boolean performFinish() {
+ return finish();
+ }
+
+ protected IWorkbenchWindow selectWorkbenchWindow() {
+ if (this.workbench == null) {
+ this.workbench = PlatformUI.getWorkbench();
+ }
+ final IWorkbenchWindow workbenchWindow = this.workbench
+ .getActiveWorkbenchWindow();
+ return workbenchWindow;
+ }
+
+ protected WorkspaceModifyOperation createOperation(final IFile modelFile) {
+ final WorkspaceModifyOperation operation = new WorkspaceModifyOperation() {
+ @Override
+ protected void execute(final IProgressMonitor progressMonitor) {
+ try {
+ final Customization customization = createInitialCustomization();
+ ICustomizationActions.INSTANCE.saveCustomization(
+ customization, modelFile);
+ } catch (final Exception exception) {
+ Logger.logError(exception, Activator.getDefault());
+ } finally {
+ progressMonitor.done();
+ }
+ }
+ };
+ return operation;
+ }
+
+ protected void openNewFile(final IFile modelFile,
+ final IWorkbenchWindow workbenchWindow, final IWorkbenchPage page) {
+ // Open an editor on the new file.
+ try {
+ final String fileName = modelFile.getName();
+ final IEditorRegistry editorRegistry = this.workbench
+ .getEditorRegistry();
+ final IEditorDescriptor defaultEditor = editorRegistry
+ .getDefaultEditor(fileName);
+ final String editorId = defaultEditor.getId();
+ final FileEditorInput editorInput = new FileEditorInput(modelFile);
+ page.openEditor(editorInput, editorId);
+ } catch (final PartInitException exception) {
+ MessageDialog.openError(workbenchWindow.getShell(), "Open Editor", exception.getMessage()); //$NON-NLS-1$
+ }
+ }
+
+ protected IWorkbenchPage selectNewFile(final IFile modelFile,
+ final IWorkbenchWindow workbenchWindow) {
+ final IWorkbenchPage page = workbenchWindow.getActivePage();
+ final IWorkbenchPart activePart = page.getActivePart();
+ if (activePart instanceof ISetSelectionTarget) {
+ final ISelection targetSelection = new StructuredSelection(
+ modelFile);
+ getShell().getDisplay().asyncExec(new Runnable() {
+ public void run() {
+ ((ISetSelectionTarget) activePart)
+ .selectReveal(targetSelection);
+ }
+ });
+ }
+ return page;
+ }
+
+ @Override
+ public boolean canFinish() {
+ return this.propertyWP.isPageComplete();
+ }
+
+ public void init(final IWorkbench newWorkbench,
+ final IStructuredSelection newSelection) {
+ this.workbench = newWorkbench;
+ this.selection = newSelection;
+ }
+
+ protected Customization createInitialCustomization() {
+ final Customization customization = CustomPackage.eINSTANCE
+ .getCustomFactory().createCustomization();
+ final String projectName = getProjectName();
+ final String modelCustomName = getModelFile().getName().replaceAll(".custom", ""); //$NON-NLS-1$ //$NON-NLS-2$
+ customization.setName(projectName + "." + modelCustomName); //$NON-NLS-1$
+ customization.setNsURI(this.propertyWP.getNsUri());
+ customization.setNsPrefix(this.propertyWP.getPrefix());
+ return customization;
+ }
+
+ /**
+ * @return
+ */
+ private static String getProjectName() {
+ String activeProjectName = null;
+ final IEditorPart editorPart = PlatformUI.getWorkbench()
+ .getActiveWorkbenchWindow()
+ .getActivePage().getActiveEditor();
+
+ if (editorPart != null) {
+ final FileEditorInput input = (FileEditorInput) editorPart
+ .getEditorInput();
+ final IFile file = input.getFile();
+ final IProject activeProject = file.getProject();
+ activeProjectName = activeProject.getName();
+ }
+ return activeProjectName;
+ }
+
+ public IFile getModelFile() {
+ return this.customWizardPage.getModelFile();
+ }
+
+ public IWizardPage next() {
+ final IWizardPage nextPage = getNextPage(this.getCurrentPage());
+ this.dialog.showPage(nextPage);
+ return nextPage;
+
+ }
+
+ public IWizardPage previous() {
+ final IWizardPage previousPage = getPreviousPage(this.getCurrentPage());
+ this.dialog.showPage(previousPage);
+ return previousPage;
+ }
+
+ public boolean finish() {
+ boolean result = false;
+
+ if (canFinish()) {
+ try {
+ // Remember the file.
+ final IFile modelFile = getModelFile();
+
+ // Do the work within an operation.
+ final WorkspaceModifyOperation operation = createOperation(modelFile);
+
+ getContainer().run(false, false, operation);
+
+ if (this.openCustom) {
+ // Select the new file resource in the current view.
+ final IWorkbenchWindow workbenchWindow = selectWorkbenchWindow();
+ final IWorkbenchPage page = selectNewFile(modelFile,
+ workbenchWindow);
+
+ openNewFile(modelFile, workbenchWindow, page);
+ }
+
+ result = true;
+ } catch (final Exception exception) {
+ Logger.logError(exception, Activator.getDefault());
+ }
+ }
+
+ return result;
+ }
+
+ public WizardDialog getDialog() {
+ return this.dialog;
+ }
+
+ public IWizardPage getCurrentPage() {
+ return this.getContainer().getCurrentPage();
+ }
+
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/wizard/page/CreateCustomizationWizardPage.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/wizard/page/CreateCustomizationWizardPage.java
index 30375abd8b2..24424efde1f 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/wizard/page/CreateCustomizationWizardPage.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/wizard/page/CreateCustomizationWizardPage.java
@@ -1,112 +1,112 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.wizard.page;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.wizard.page.ICreateCustomizationWizardPage;
-import org.eclipse.ui.dialogs.WizardNewFileCreationPage;
-
-/**
- * Wizard page for the creation of a custom model file.
- */
-public class CreateCustomizationWizardPage extends WizardNewFileCreationPage
- implements ICreateCustomizationWizardPage {
-
- private static final String FILE_EXTENSION = "custom"; //$NON-NLS-1$
- private static final String MODEL_BASE = "My"; //$NON-NLS-1$
-
- /**
- * @param pageName
- * @param selection
- */
- public CreateCustomizationWizardPage(final String pageName,
- final IStructuredSelection selection) {
- super(pageName, selection);
- setTitle(Messages.CreateCustomizationWizardImpl_customization);
- setDescription(Messages.CreateCustomizationWizardImpl_Create_new_customization);
- setFileName(MODEL_BASE + "." + FILE_EXTENSION); //$NON-NLS-1$
-
- // Try and get the resource selection to determine a current directory
- // for the file dialog.
- if ((selection != null) && !selection.isEmpty()) {
- // Get the resource...
- final Object selectedElement = selection.iterator().next();
- if (selectedElement instanceof IResource) {
- // Get the resource parent, if its a file.
- getResourceParent(selectedElement);
- }
- }
- }
-
- private void getResourceParent(final Object selectedElement) {
- IResource selectedResource = (IResource) selectedElement;
- if (selectedResource.getType() == IResource.FILE) {
- selectedResource = selectedResource.getParent();
- }
-
- // This gives us a directory...
- if ((selectedResource instanceof IFolder)
- || (selectedResource instanceof IProject)) {
- // Set this for the container.
- setContainerFullPath(selectedResource.getFullPath());
-
- // Make up a unique new name here.
- final String modelFileExt = FILE_EXTENSION;
- String modelFilename = MODEL_BASE + "." + modelFileExt; //$NON-NLS-1$
- for (int i = 1; ((IContainer) selectedResource)
- .findMember(modelFilename) != null; ++i) {
- modelFilename = MODEL_BASE + i + "." + modelFileExt; //$NON-NLS-1$
- }
- setFileName(modelFilename);
- }
- }
-
- @Override
- protected boolean validatePage() {
- boolean valid = super.validatePage();
-
- if (valid) {
- final String extension = new Path(getFileName()).getFileExtension();
- if ((extension == null)
- || !FILE_EXTENSION.equalsIgnoreCase(extension)) {
- setErrorMessage(Messages.CreateCustomizationWizardImpl_File_extension_restriction);
- valid = false;
- }
- final IPath containerFullPath = getContainerFullPath();
- // try {
- // if (!PluginUtils.isInPluginProject(containerFullPath)) {
- // setMessage(
- // Messages.CreateCustomizationWizardPage_Not_a_Plugin_project,
- // IMessageProvider.WARNING);
- // }
- // } catch (final CoreException e) {
- // Logger.logError(e, Activator.getDefault());
- // }
- }
-
- return valid;
- }
-
- public IFile getModelFile() {
- return ResourcesPlugin.getWorkspace().getRoot()
- .getFile(getContainerFullPath().append(getFileName()));
- }
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.wizard.page;
+
+import org.eclipse.core.resources.IContainer;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IFolder;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.wizard.page.ICreateCustomizationWizardPage;
+import org.eclipse.ui.dialogs.WizardNewFileCreationPage;
+
+/**
+ * Wizard page for the creation of a custom model file.
+ */
+public class CreateCustomizationWizardPage extends WizardNewFileCreationPage
+ implements ICreateCustomizationWizardPage {
+
+ private static final String FILE_EXTENSION = "custom"; //$NON-NLS-1$
+ private static final String MODEL_BASE = "My"; //$NON-NLS-1$
+
+ /**
+ * @param pageName
+ * @param selection
+ */
+ public CreateCustomizationWizardPage(final String pageName,
+ final IStructuredSelection selection) {
+ super(pageName, selection);
+ setTitle(Messages.CreateCustomizationWizardImpl_customization);
+ setDescription(Messages.CreateCustomizationWizardImpl_Create_new_customization);
+ setFileName(MODEL_BASE + "." + FILE_EXTENSION); //$NON-NLS-1$
+
+ // Try and get the resource selection to determine a current directory
+ // for the file dialog.
+ if ((selection != null) && !selection.isEmpty()) {
+ // Get the resource...
+ final Object selectedElement = selection.iterator().next();
+ if (selectedElement instanceof IResource) {
+ // Get the resource parent, if its a file.
+ getResourceParent(selectedElement);
+ }
+ }
+ }
+
+ private void getResourceParent(final Object selectedElement) {
+ IResource selectedResource = (IResource) selectedElement;
+ if (selectedResource.getType() == IResource.FILE) {
+ selectedResource = selectedResource.getParent();
+ }
+
+ // This gives us a directory...
+ if ((selectedResource instanceof IFolder)
+ || (selectedResource instanceof IProject)) {
+ // Set this for the container.
+ setContainerFullPath(selectedResource.getFullPath());
+
+ // Make up a unique new name here.
+ final String modelFileExt = FILE_EXTENSION;
+ String modelFilename = MODEL_BASE + "." + modelFileExt; //$NON-NLS-1$
+ for (int i = 1; ((IContainer) selectedResource)
+ .findMember(modelFilename) != null; ++i) {
+ modelFilename = MODEL_BASE + i + "." + modelFileExt; //$NON-NLS-1$
+ }
+ setFileName(modelFilename);
+ }
+ }
+
+ @Override
+ protected boolean validatePage() {
+ boolean valid = super.validatePage();
+
+ if (valid) {
+ final String extension = new Path(getFileName()).getFileExtension();
+ if ((extension == null)
+ || !FILE_EXTENSION.equalsIgnoreCase(extension)) {
+ setErrorMessage(Messages.CreateCustomizationWizardImpl_File_extension_restriction);
+ valid = false;
+ }
+ final IPath containerFullPath = getContainerFullPath();
+ // try {
+ // if (!PluginUtils.isInPluginProject(containerFullPath)) {
+ // setMessage(
+ // Messages.CreateCustomizationWizardPage_Not_a_Plugin_project,
+ // IMessageProvider.WARNING);
+ // }
+ // } catch (final CoreException e) {
+ // Logger.logError(e, Activator.getDefault());
+ // }
+ }
+
+ return valid;
+ }
+
+ public IFile getModelFile() {
+ return ResourcesPlugin.getWorkspace().getRoot()
+ .getFile(getContainerFullPath().append(getFileName()));
+ }
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/wizard/page/CustomPropertyWizardPage.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/wizard/page/CustomPropertyWizardPage.java
index 089a608b30a..824c5a7d408 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/wizard/page/CustomPropertyWizardPage.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/util/wizard/page/CustomPropertyWizardPage.java
@@ -1,112 +1,112 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.wizard.page;
-
-import org.eclipse.jface.wizard.WizardPage;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.wizard.page.ICustomizationPropertyWizardPage;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Listener;
-import org.eclipse.swt.widgets.Text;
-
-/**
- * Wizard page to enter a NsURI, a prefix and an extended EPackage to a facetSet
- */
-public class CustomPropertyWizardPage extends WizardPage implements
- ICustomizationPropertyWizardPage {
-
- private Text nsUriTextField;
- private Text prefixTextField;
-
- /**
- * @param pageName
- */
- public CustomPropertyWizardPage(final String pageName) {
- super(pageName);
-
- setTitle(Messages.CreateCustomizationWizardImpl_customization_properties);
- }
-
- public void createControl(final Composite parent) {
- final Composite nsURiContainer = new Composite(parent, SWT.NONE);
- nsURiContainer.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- nsURiContainer.setLayout(new GridLayout(2, false));
- // NsURI
- final Label nsUriLabel = new Label(nsURiContainer, SWT.NONE);
- nsUriLabel.setText(Messages.Enter_a_nsUri);
- this.nsUriTextField = new Text(nsURiContainer, SWT.BORDER | SWT.SINGLE);
- this.nsUriTextField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- this.nsUriTextField.addListener(SWT.Modify, new Listener() {
- public void handleEvent(final Event event) {
- updateButtons();
- }
- });
- // PREFIX
- final Label prefixLabel = new Label(nsURiContainer, SWT.NONE);
- prefixLabel.setText(Messages.Enter_a_prefix);
- this.prefixTextField = new Text(nsURiContainer, SWT.BORDER | SWT.SINGLE);
- this.prefixTextField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- this.prefixTextField.addListener(SWT.Modify, new Listener() {
- public void handleEvent(final Event event) {
- updateButtons();
- }
- });
- setControl(nsURiContainer);
- }
-
- @Override
- public boolean isPageComplete() {
- boolean result = false;
- if (this.nsUriTextField.getText().length() == 0) {
- setErrorMessage(Messages.Please_enter_nsUri);
- }
- if (this.prefixTextField.getText().length() == 0) {
- setErrorMessage(Messages.Please_enter_prefix);
- }
- if (super.isPageComplete()) {
- setErrorMessage(null);
- result = true;
- } else {
- setErrorMessage(Messages.Please_select_EPackage);
- }
- return result;
- }
-
- public String getNsUri() {
- return this.nsUriTextField.getText();
- }
-
- public String getPrefix() {
- return this.prefixTextField.getText();
- }
-
- protected void updateButtons() {
- getContainer().updateButtons();
- }
-
- public void setNsUri(final String nsUri) {
- this.nsUriTextField.setText(nsUri);
- }
-
- public void setPrefix(final String prefix) {
- this.prefixTextField.setText(prefix);
- }
-
- public void setIsPageComplete(final boolean complete) {
- this.setPageComplete(complete);
- }
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.wizard.page;
+
+import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.wizard.page.ICustomizationPropertyWizardPage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Listener;
+import org.eclipse.swt.widgets.Text;
+
+/**
+ * Wizard page to enter a NsURI, a prefix and an extended EPackage to a facetSet
+ */
+public class CustomPropertyWizardPage extends WizardPage implements
+ ICustomizationPropertyWizardPage {
+
+ private Text nsUriTextField;
+ private Text prefixTextField;
+
+ /**
+ * @param pageName
+ */
+ public CustomPropertyWizardPage(final String pageName) {
+ super(pageName);
+
+ setTitle(Messages.CreateCustomizationWizardImpl_customization_properties);
+ }
+
+ public void createControl(final Composite parent) {
+ final Composite nsURiContainer = new Composite(parent, SWT.NONE);
+ nsURiContainer.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ nsURiContainer.setLayout(new GridLayout(2, false));
+ // NsURI
+ final Label nsUriLabel = new Label(nsURiContainer, SWT.NONE);
+ nsUriLabel.setText(Messages.Enter_a_nsUri);
+ this.nsUriTextField = new Text(nsURiContainer, SWT.BORDER | SWT.SINGLE);
+ this.nsUriTextField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ this.nsUriTextField.addListener(SWT.Modify, new Listener() {
+ public void handleEvent(final Event event) {
+ updateButtons();
+ }
+ });
+ // PREFIX
+ final Label prefixLabel = new Label(nsURiContainer, SWT.NONE);
+ prefixLabel.setText(Messages.Enter_a_prefix);
+ this.prefixTextField = new Text(nsURiContainer, SWT.BORDER | SWT.SINGLE);
+ this.prefixTextField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ this.prefixTextField.addListener(SWT.Modify, new Listener() {
+ public void handleEvent(final Event event) {
+ updateButtons();
+ }
+ });
+ setControl(nsURiContainer);
+ }
+
+ @Override
+ public boolean isPageComplete() {
+ boolean result = false;
+ if (this.nsUriTextField.getText().length() == 0) {
+ setErrorMessage(Messages.Please_enter_nsUri);
+ }
+ if (this.prefixTextField.getText().length() == 0) {
+ setErrorMessage(Messages.Please_enter_prefix);
+ }
+ if (super.isPageComplete()) {
+ setErrorMessage(null);
+ result = true;
+ } else {
+ setErrorMessage(Messages.Please_select_EPackage);
+ }
+ return result;
+ }
+
+ public String getNsUri() {
+ return this.nsUriTextField.getText();
+ }
+
+ public String getPrefix() {
+ return this.prefixTextField.getText();
+ }
+
+ protected void updateButtons() {
+ getContainer().updateButtons();
+ }
+
+ public void setNsUri(final String nsUri) {
+ this.nsUriTextField.setText(nsUri);
+ }
+
+ public void setPrefix(final String prefix) {
+ this.prefixTextField.setText(prefix);
+ }
+
+ public void setIsPageComplete(final boolean complete) {
+ this.setPageComplete(complete);
+ }
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/widgets/celleditors/ImageCellEditor.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/widgets/celleditors/ImageCellEditor.java
index d604f897904..d3c2bec3579 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/widgets/celleditors/ImageCellEditor.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/widgets/celleditors/ImageCellEditor.java
@@ -1,51 +1,51 @@
-/*******************************************************************************
- * Copyright (c) 2012 CEA LIST.
- * 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:
- * Nicolas Bros (Mia-Software) - Bug 375388 - Cell editor for IImage
- *******************************************************************************/
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.widgets.celleditors;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.papyrus.emf.facet.custom.metamodel.custompt.IImage;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.widgets.celleditors.composite.ImageComposite;
-import org.eclipse.papyrus.emf.facet.custom.ui.ImageUtils;
-import org.eclipse.papyrus.emf.facet.widgets.celleditors.IModelCellEditHandler;
-import org.eclipse.papyrus.emf.facet.widgets.celleditors.IModelCellEditor;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-
-/** A cell editor for displaying an {@link IImage} (read-only for now) */
-public class ImageCellEditor implements IModelCellEditor {
-
- private IImage iimage;
- private ImageComposite imageComposite;
-
- protected Image getImage() {
- return ImageUtils.unwrap(this.iimage);
- }
-
- public Control activateCell(final Composite parent, final Object originalValue,
- final IModelCellEditHandler editHandler, final EStructuralFeature feature,
- final EObject source) {
-
- this.imageComposite = new ImageComposite(parent);
-
- if (originalValue instanceof IImage) {
- this.imageComposite.setValue((IImage) originalValue);
- this.iimage = (IImage) originalValue;
- }
-
- return this.imageComposite;
- }
-
- public Object getValue() {
- return this.iimage;
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ * 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:
+ * Nicolas Bros (Mia-Software) - Bug 375388 - Cell editor for IImage
+ *******************************************************************************/
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.widgets.celleditors;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.custompt.IImage;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.widgets.celleditors.composite.ImageComposite;
+import org.eclipse.papyrus.emf.facet.custom.ui.ImageUtils;
+import org.eclipse.papyrus.emf.facet.widgets.celleditors.IModelCellEditHandler;
+import org.eclipse.papyrus.emf.facet.widgets.celleditors.IModelCellEditor;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+
+/** A cell editor for displaying an {@link IImage} (read-only for now) */
+public class ImageCellEditor implements IModelCellEditor {
+
+ private IImage iimage;
+ private ImageComposite imageComposite;
+
+ protected Image getImage() {
+ return ImageUtils.unwrap(this.iimage);
+ }
+
+ public Control activateCell(final Composite parent, final Object originalValue,
+ final IModelCellEditHandler editHandler, final EStructuralFeature feature,
+ final EObject source) {
+
+ this.imageComposite = new ImageComposite(parent);
+
+ if (originalValue instanceof IImage) {
+ this.imageComposite.setValue((IImage) originalValue);
+ this.iimage = (IImage) originalValue;
+ }
+
+ return this.imageComposite;
+ }
+
+ public Object getValue() {
+ return this.iimage;
+ }
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/widgets/celleditors/composite/ImageComposite.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/widgets/celleditors/composite/ImageComposite.java
index 458322817c3..41b2afe0255 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/widgets/celleditors/composite/ImageComposite.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/widgets/celleditors/composite/ImageComposite.java
@@ -1,132 +1,132 @@
-/*******************************************************************************
- * Copyright (c) 2012 CEA LIST.
- * 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:
- * Nicolas Bros (Mia-Software) - Bug 375388 - Cell editor for IImage
- *******************************************************************************/
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.widgets.celleditors.composite;
-
-import org.eclipse.papyrus.emf.facet.custom.metamodel.custompt.IImage;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
-import org.eclipse.papyrus.emf.facet.custom.ui.ImageUtils;
-import org.eclipse.papyrus.emf.facet.widgets.celleditors.AbstractCellEditorComposite;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.PaintEvent;
-import org.eclipse.swt.events.PaintListener;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Canvas;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
-import org.eclipse.swt.widgets.Shell;
-
-/** A composite for displaying an {@link IImage} (read-only for now) */
-public class ImageComposite extends AbstractCellEditorComposite<IImage> {
-
- private final Button compositeButton;
- private final Canvas compositeCanvas;
- private IImage valueImage;
-
- protected Button getButton() {
- return this.compositeButton;
- }
-
- public Canvas getCanvas() {
- return this.compositeCanvas;
- }
-
- public ImageComposite(final Composite parent) {
- super(parent);
-
- final GridLayout layout = new GridLayout(2, false);
- layout.marginWidth = 0;
- layout.marginHeight = 0;
- layout.horizontalSpacing = 0;
- setLayout(layout);
-
- this.compositeCanvas = createCanvas(this);
- this.compositeButton = createButton(this);
-
- // disposes the composite when the user clicks
- final Listener disposeListener = new Listener() {
- public void handleEvent(final Event event) {
- if (event.widget instanceof Control) {
- final Control control = (Control) event.widget;
- if (control.getShell() == getParent().getShell() && event.widget != getButton() && event.widget != getCanvas()) {
- ImageComposite.this.dispose();
- Display.getDefault().removeFilter(SWT.MouseDown, this);
- }
- }
- }
- };
- Display.getDefault().addFilter(SWT.MouseDown, disposeListener);
- }
-
- protected Canvas createCanvas(final Composite parent) {
- final Canvas canvas = new Canvas(parent, SWT.NONE);
- canvas.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
- canvas.addPaintListener(new PaintListener() {
- public void paintControl(final PaintEvent e) {
- final Image img = getImage();
- if (img != null && !img.isDisposed()) {
- e.gc.drawImage(img, 0, 0);
- }
- }
- });
- return canvas;
- }
-
- protected Button createButton(final Composite parent) {
- final Button button = new Button(parent, SWT.PUSH);
- button.setText("+"); //$NON-NLS-1$
- final GridData data = new GridData(SWT.FILL, SWT.FILL, false, true);
- button.setLayoutData(data);
-
- button.addSelectionListener(new SelectionAdapter() {
- @Override
- public void widgetSelected(final SelectionEvent e) {
- openShell();
- }
- });
- return button;
- }
-
- protected void openShell() {
- final Shell shell = new Shell();
- shell.setText(Messages.ImageComposite_fullImage);
- shell.setLayout(new GridLayout());
- final Canvas shellCanvas = createCanvas(shell);
- final GridData canvasData = new GridData(SWT.FILL, SWT.FILL, true, true);
- final Image img = getImage();
- if (img != null && !img.isDisposed()) {
- canvasData.widthHint = img.getBounds().width;
- canvasData.heightHint = img.getBounds().height;
- }
- shellCanvas.setLayoutData(canvasData);
- shell.pack();
- shell.open();
- }
-
- protected Image getImage() {
- return ImageUtils.unwrap(this.valueImage);
- }
-
- public IImage getValue() {
- return this.valueImage;
- }
-
- public void setValue(final IImage value) {
- this.valueImage = value;
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ * 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:
+ * Nicolas Bros (Mia-Software) - Bug 375388 - Cell editor for IImage
+ *******************************************************************************/
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.widgets.celleditors.composite;
+
+import org.eclipse.papyrus.emf.facet.custom.metamodel.custompt.IImage;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.Messages;
+import org.eclipse.papyrus.emf.facet.custom.ui.ImageUtils;
+import org.eclipse.papyrus.emf.facet.widgets.celleditors.AbstractCellEditorComposite;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.PaintEvent;
+import org.eclipse.swt.events.PaintListener;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Canvas;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swt.widgets.Listener;
+import org.eclipse.swt.widgets.Shell;
+
+/** A composite for displaying an {@link IImage} (read-only for now) */
+public class ImageComposite extends AbstractCellEditorComposite<IImage> {
+
+ private final Button compositeButton;
+ private final Canvas compositeCanvas;
+ private IImage valueImage;
+
+ protected Button getButton() {
+ return this.compositeButton;
+ }
+
+ public Canvas getCanvas() {
+ return this.compositeCanvas;
+ }
+
+ public ImageComposite(final Composite parent) {
+ super(parent);
+
+ final GridLayout layout = new GridLayout(2, false);
+ layout.marginWidth = 0;
+ layout.marginHeight = 0;
+ layout.horizontalSpacing = 0;
+ setLayout(layout);
+
+ this.compositeCanvas = createCanvas(this);
+ this.compositeButton = createButton(this);
+
+ // disposes the composite when the user clicks
+ final Listener disposeListener = new Listener() {
+ public void handleEvent(final Event event) {
+ if (event.widget instanceof Control) {
+ final Control control = (Control) event.widget;
+ if (control.getShell() == getParent().getShell() && event.widget != getButton() && event.widget != getCanvas()) {
+ ImageComposite.this.dispose();
+ Display.getDefault().removeFilter(SWT.MouseDown, this);
+ }
+ }
+ }
+ };
+ Display.getDefault().addFilter(SWT.MouseDown, disposeListener);
+ }
+
+ protected Canvas createCanvas(final Composite parent) {
+ final Canvas canvas = new Canvas(parent, SWT.NONE);
+ canvas.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+ canvas.addPaintListener(new PaintListener() {
+ public void paintControl(final PaintEvent e) {
+ final Image img = getImage();
+ if (img != null && !img.isDisposed()) {
+ e.gc.drawImage(img, 0, 0);
+ }
+ }
+ });
+ return canvas;
+ }
+
+ protected Button createButton(final Composite parent) {
+ final Button button = new Button(parent, SWT.PUSH);
+ button.setText("+"); //$NON-NLS-1$
+ final GridData data = new GridData(SWT.FILL, SWT.FILL, false, true);
+ button.setLayoutData(data);
+
+ button.addSelectionListener(new SelectionAdapter() {
+ @Override
+ public void widgetSelected(final SelectionEvent e) {
+ openShell();
+ }
+ });
+ return button;
+ }
+
+ protected void openShell() {
+ final Shell shell = new Shell();
+ shell.setText(Messages.ImageComposite_fullImage);
+ shell.setLayout(new GridLayout());
+ final Canvas shellCanvas = createCanvas(shell);
+ final GridData canvasData = new GridData(SWT.FILL, SWT.FILL, true, true);
+ final Image img = getImage();
+ if (img != null && !img.isDisposed()) {
+ canvasData.widthHint = img.getBounds().width;
+ canvasData.heightHint = img.getBounds().height;
+ }
+ shellCanvas.setLayoutData(canvasData);
+ shell.pack();
+ shell.open();
+ }
+
+ protected Image getImage() {
+ return ImageUtils.unwrap(this.valueImage);
+ }
+
+ public IImage getValue() {
+ return this.valueImage;
+ }
+
+ public void setValue(final IImage value) {
+ this.valueImage = value;
+ }
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/widgets/celleditors/composite/ImageCompositeFactory.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/widgets/celleditors/composite/ImageCompositeFactory.java
index a5c4169652a..405312165c0 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/widgets/celleditors/composite/ImageCompositeFactory.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/widgets/celleditors/composite/ImageCompositeFactory.java
@@ -1,28 +1,28 @@
-/*******************************************************************************
- * Copyright (c) 2012 CEA LIST.
- * 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:
- * Nicolas Bros (Mia-Software) - Bug 375388 - Cell editor for IImage
- *******************************************************************************/
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.widgets.celleditors.composite;
-
-import org.eclipse.papyrus.emf.facet.custom.metamodel.custompt.IImage;
-import org.eclipse.papyrus.emf.facet.widgets.celleditors.AbstractCellEditorComposite;
-import org.eclipse.papyrus.emf.facet.widgets.celleditors.ICompositeEditorFactory;
-import org.eclipse.swt.widgets.Composite;
-
-/** Factory for {@link ImageComposite} */
-public class ImageCompositeFactory implements ICompositeEditorFactory<IImage> {
-
- public AbstractCellEditorComposite<IImage> createCompositeEditor(final Composite parent, final int style) {
- return new ImageComposite(parent);
- }
-
- public Class<IImage> getHandledType() {
- return IImage.class;
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2012 CEA LIST.
+ * 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:
+ * Nicolas Bros (Mia-Software) - Bug 375388 - Cell editor for IImage
+ *******************************************************************************/
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.widgets.celleditors.composite;
+
+import org.eclipse.papyrus.emf.facet.custom.metamodel.custompt.IImage;
+import org.eclipse.papyrus.emf.facet.widgets.celleditors.AbstractCellEditorComposite;
+import org.eclipse.papyrus.emf.facet.widgets.celleditors.ICompositeEditorFactory;
+import org.eclipse.swt.widgets.Composite;
+
+/** Factory for {@link ImageComposite} */
+public class ImageCompositeFactory implements ICompositeEditorFactory<IImage> {
+
+ public AbstractCellEditorComposite<IImage> createCompositeEditor(final Composite parent, final int style) {
+ return new ImageComposite(parent);
+ }
+
+ public Class<IImage> getHandledType() {
+ return IImage.class;
+ }
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/wizard/page/ICreateCustomizationWizardPage.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/wizard/page/ICreateCustomizationWizardPage.java
index 1b490d1d46e..03ec2895171 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/wizard/page/ICreateCustomizationWizardPage.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/wizard/page/ICreateCustomizationWizardPage.java
@@ -1,31 +1,31 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.wizard.page;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.jface.wizard.IWizardPage;
-import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.wizard.page.CreateCustomizationWizardPage;
-
-/**
- * Interface to expose the services of {@link CreateCustomizationWizardPage}.
- *
- * @see CreateCustomizationWizardPage
- * @noextend This interface is not intended to be extended by clients.
- * @noimplement This interface is not intended to be implemented by clients.
- */
-public interface ICreateCustomizationWizardPage extends IWizardPage {
-
- /**
- * @return the file where the model is created.
- */
- IFile getModelFile();
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.wizard.page;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.jface.wizard.IWizardPage;
+import org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.util.wizard.page.CreateCustomizationWizardPage;
+
+/**
+ * Interface to expose the services of {@link CreateCustomizationWizardPage}.
+ *
+ * @see CreateCustomizationWizardPage
+ * @noextend This interface is not intended to be extended by clients.
+ * @noimplement This interface is not intended to be implemented by clients.
+ */
+public interface ICreateCustomizationWizardPage extends IWizardPage {
+
+ /**
+ * @return the file where the model is created.
+ */
+ IFile getModelFile();
+}
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/wizard/page/ICustomizationPropertyWizardPage.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/wizard/page/ICustomizationPropertyWizardPage.java
index e6f931d1cc1..4a55299bc81 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/wizard/page/ICustomizationPropertyWizardPage.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui/src/org/eclipse/papyrus/emf/facet/custom/sdk/ui/internal/wizard/page/ICustomizationPropertyWizardPage.java
@@ -1,50 +1,50 @@
-/**
- * Copyright (c) 2012 Mia-Software.
- *
- * 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:
- * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
- */
-package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.wizard.page;
-
-import org.eclipse.jface.wizard.IWizardPage;
-
-/**
- * Interface to expose the services of {@link CustomizationPropertyWizardPage}.
- *
- * @see CustomizationPropertyWizardPage
- * @noextend This interface is not intended to be extended by clients.
- * @noimplement This interface is not intended to be implemented by clients.
- */
-public interface ICustomizationPropertyWizardPage extends IWizardPage {
-
- /**
- * @return the nsURI of the model.
- */
- String getNsUri();
-
- /**
- * Set the nsURI of the model.
- *
- * @param nsUri
- * the new nsURI.
- */
- void setNsUri(String nsUri);
-
- /**
- * @return the prefix of the model.
- */
- String getPrefix();
-
- /**
- * Set the prefix of the model.
- *
- * @param prefix
- * the new prefix.
- */
- void setPrefix(String prefix);
-}
+/**
+ * Copyright (c) 2012 Mia-Software.
+ *
+ * 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:
+ * Alban MĂ©nager (Soft-Maint) - Bug 387470 - [EFacet][Custom] Editors
+ */
+package org.eclipse.papyrus.emf.facet.custom.sdk.ui.internal.wizard.page;
+
+import org.eclipse.jface.wizard.IWizardPage;
+
+/**
+ * Interface to expose the services of {@link CustomizationPropertyWizardPage}.
+ *
+ * @see CustomizationPropertyWizardPage
+ * @noextend This interface is not intended to be extended by clients.
+ * @noimplement This interface is not intended to be implemented by clients.
+ */
+public interface ICustomizationPropertyWizardPage extends IWizardPage {
+
+ /**
+ * @return the nsURI of the model.
+ */
+ String getNsUri();
+
+ /**
+ * Set the nsURI of the model.
+ *
+ * @param nsUri
+ * the new nsURI.
+ */
+ void setNsUri(String nsUri);
+
+ /**
+ * @return the prefix of the model.
+ */
+ String getPrefix();
+
+ /**
+ * Set the prefix of the model.
+ *
+ * @param prefix
+ * the new prefix.
+ */
+ void setPrefix(String prefix);
+}

Back to the top