Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/junit/plugins/uml')
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/.classpath7
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/.project28
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/.settings/org.eclipse.jdt.core.prefs291
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/.settings/org.eclipse.jdt.ui.prefs68
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/META-INF/MANIFEST.MF37
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/about.html28
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/build.properties8
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/org.eclipse.papyrus.uml.nattable.stereotype.display.tests.launch48
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/plugin.properties4
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/pom.xml14
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.di2
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.notation242
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.profile.di2
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.profile.notation248
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.profile.uml139
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.uml40
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/src/org/eclipse/papyrus/uml/nattable/stereotype/display/tests/Activator.java72
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/src/org/eclipse/papyrus/uml/nattable/stereotype/display/tests/tests/AllTests.java26
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/src/org/eclipse/papyrus/uml/nattable/stereotype/display/tests/tests/StereotypeDisplayTableTest.java592
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/src/org/eclipse/papyrus/uml/nattable/stereotype/display/tests/tests/StereotypeDisplayTableTestsUtils.java659
20 files changed, 2555 insertions, 0 deletions
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/.classpath b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/.classpath
new file mode 100644
index 00000000000..e8ea977a694
--- /dev/null
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/.project b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/.project
new file mode 100644
index 00000000000..6bbeff8e27c
--- /dev/null
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.uml.nattable.stereotype.display.tests</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/.settings/org.eclipse.jdt.core.prefs b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000000..f08be2b06c4
--- /dev/null
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,291 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.7
+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/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/.settings/org.eclipse.jdt.ui.prefs b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/.settings/org.eclipse.jdt.ui.prefs
new file mode 100644
index 00000000000..954281dbc31
--- /dev/null
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/.settings/org.eclipse.jdt.ui.prefs
@@ -0,0 +1,68 @@
+cleanup.add_default_serial_version_id=true
+cleanup.add_generated_serial_version_id=false
+cleanup.add_missing_annotations=true
+cleanup.add_missing_deprecated_annotations=true
+cleanup.add_missing_methods=false
+cleanup.add_missing_nls_tags=false
+cleanup.add_missing_override_annotations=true
+cleanup.add_missing_override_annotations_interface_methods=true
+cleanup.add_serial_version_id=false
+cleanup.always_use_blocks=true
+cleanup.always_use_parentheses_in_expressions=false
+cleanup.always_use_this_for_non_static_field_access=false
+cleanup.always_use_this_for_non_static_method_access=false
+cleanup.convert_functional_interfaces=false
+cleanup.convert_to_enhanced_for_loop=false
+cleanup.correct_indentation=false
+cleanup.format_source_code=false
+cleanup.format_source_code_changes_only=false
+cleanup.insert_inferred_type_arguments=false
+cleanup.make_local_variable_final=true
+cleanup.make_parameters_final=false
+cleanup.make_private_fields_final=true
+cleanup.make_type_abstract_if_missing_method=false
+cleanup.make_variable_declarations_final=false
+cleanup.never_use_blocks=false
+cleanup.never_use_parentheses_in_expressions=true
+cleanup.organize_imports=false
+cleanup.qualify_static_field_accesses_with_declaring_class=false
+cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+cleanup.qualify_static_member_accesses_with_declaring_class=true
+cleanup.qualify_static_method_accesses_with_declaring_class=false
+cleanup.remove_private_constructors=true
+cleanup.remove_redundant_type_arguments=true
+cleanup.remove_trailing_whitespaces=true
+cleanup.remove_trailing_whitespaces_all=true
+cleanup.remove_trailing_whitespaces_ignore_empty=false
+cleanup.remove_unnecessary_casts=true
+cleanup.remove_unnecessary_nls_tags=true
+cleanup.remove_unused_imports=true
+cleanup.remove_unused_local_variables=false
+cleanup.remove_unused_private_fields=true
+cleanup.remove_unused_private_members=false
+cleanup.remove_unused_private_methods=true
+cleanup.remove_unused_private_types=true
+cleanup.sort_members=false
+cleanup.sort_members_all=false
+cleanup.use_anonymous_class_creation=false
+cleanup.use_blocks=true
+cleanup.use_blocks_only_for_return_and_throw=false
+cleanup.use_lambda=true
+cleanup.use_parentheses_in_expressions=false
+cleanup.use_this_for_non_static_field_access=false
+cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+cleanup.use_this_for_non_static_method_access=false
+cleanup.use_this_for_non_static_method_access_only_if_necessary=true
+cleanup.use_type_arguments=false
+cleanup_profile=_Papyrus
+cleanup_settings_version=2
+eclipse.preferences.version=1
+formatter_profile=_Papyrus
+formatter_settings_version=12
+org.eclipse.jdt.ui.ignorelowercasenames=true
+org.eclipse.jdt.ui.importorder=java;javax;org;com;
+org.eclipse.jdt.ui.javadoc=true
+org.eclipse.jdt.ui.ondemandthreshold=99
+org.eclipse.jdt.ui.staticondemandthreshold=99
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * Constructor.\n *\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*****************************************************************************\n * Copyright (c) ${year} CEA LIST and others.\n * \n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http\://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors\:\n * CEA LIST - Initial API and implementation\n * \n *****************************************************************************/\n</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/**\n * ${see_to_overridden}\n *\n * ${tags}\n */</template><template autoinsert\="false" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${see_to_target}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/META-INF/MANIFEST.MF b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/META-INF/MANIFEST.MF
new file mode 100644
index 00000000000..f50e9a576b5
--- /dev/null
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/META-INF/MANIFEST.MF
@@ -0,0 +1,37 @@
+Manifest-Version: 1.0
+Require-Bundle: org.junit;bundle-version="4.11.0",
+ org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.papyrus.junit.utils;bundle-version="1.1.0",
+ org.eclipse.papyrus.uml.nattable.clazz.config.tests;bundle-version="1.1.0",
+ org.eclipse.papyrus.editor.integration.tests;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.core.log;bundle-version="1.1.0",
+ org.eclipse.papyrus.junit.framework;bundle-version="1.1.0",
+ org.eclipse.uml2.uml,
+ org.eclipse.gmf.runtime.notation,
+ org.eclipse.papyrus.infra.core;bundle-version="1.1.0",
+ org.eclipse.gef,
+ org.eclipse.emf.transaction,
+ org.eclipse.papyrus.infra.gmfdiag.common;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.gmfdiag.commands;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.nattable.common;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.nattable;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.nattable.model;bundle-version="1.1.0",
+ org.eclipse.nebula.widgets.nattable.core;bundle-version="1.2.0",
+ org.eclipse.papyrus.uml.diagram.clazz;bundle-version="1.1.0",
+ org.eclipse.core.expressions,
+ org.eclipse.papyrus.uml.diagram.common;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.emf;bundle-version="1.1.0",
+ org.eclipse.papyrus.uml.tools.utils;bundle-version="1.1.0"
+Export-Package: org.eclipse.papyrus.uml.nattable.stereotype.display.tests.tests
+Bundle-Vendor: %Bundle-Vendor
+Bundle-ActivationPolicy: lazy
+Bundle-Version: 1.1.0.qualifier
+Bundle-Name: %Bundle-Name
+Bundle-Localization: plugin
+Bundle-ManifestVersion: 2
+Bundle-Activator: org.eclipse.papyrus.uml.nattable.stereotype.display.tests.Activator
+Bundle-Description: %Bundle-Description
+Bundle-SymbolicName: org.eclipse.papyrus.uml.nattable.stereotype.display.tests
+Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/about.html b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/about.html
new file mode 100644
index 00000000000..d35d5aed64c
--- /dev/null
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/about.html
@@ -0,0 +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>June 5, 2007</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>
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/build.properties b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/build.properties
new file mode 100644
index 00000000000..4cb3ab7b83e
--- /dev/null
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/build.properties
@@ -0,0 +1,8 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ about.html,\
+ plugin.properties,\
+ resources/
+src.includes = about.html
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/org.eclipse.papyrus.uml.nattable.stereotype.display.tests.launch b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/org.eclipse.papyrus.uml.nattable.stereotype.display.tests.launch
new file mode 100644
index 00000000000..9a31882c379
--- /dev/null
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/org.eclipse.papyrus.uml.nattable.stereotype.display.tests.launch
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
+<booleanAttribute key="append.args" value="true"/>
+<booleanAttribute key="askclear" value="false"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="true"/>
+<booleanAttribute key="clearws" value="true"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<listAttribute key="com.mountainminds.eclemma.core.SCOPE_IDS">
+<listEntry value="=org.eclipse.papyrus.uml.diagram.clazz/custom-src"/>
+<listEntry value="=org.eclipse.papyrus.uml.diagram.clazz/src"/>
+<listEntry value="=org.eclipse.papyrus.uml.diagram.common/src"/>
+<listEntry value="=org.eclipse.papyrus.infra.gmfdiag.common/src"/>
+</listAttribute>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
+<booleanAttribute key="default" value="true"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/src/org/eclipse/papyrus/uml/nattable/stereotype/display/tests/tests/AllTests.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
+<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.papyrus.uml.nattable.stereotype.display.tests.tests.AllTests"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.papyrus.uml.nattable.stereotype.display.tests"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dosgi.requiredJavaVersion=1.5 -Xms256m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=256m&#13;&#10;-Doomph.setup.skip=true"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="org.eclipse.platform.ide"/>
+<booleanAttribute key="run_in_ui_thread" value="true"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useCustomFeatures" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="true"/>
+</launchConfiguration>
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/plugin.properties b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/plugin.properties
new file mode 100644
index 00000000000..52ac0bdabb2
--- /dev/null
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/plugin.properties
@@ -0,0 +1,4 @@
+#Properties file for org.eclipse.papyrus.uml.nattable.stereotype.display.tests
+Bundle-Vendor = Eclipse Modeling Project
+Bundle-Name = Papyrus Stereotype Display Table Tests
+Bundle-Description = This plugin provides Tests for the plugin org.eclipse.papyrus.uml.nattable.stereotype.display. \ No newline at end of file
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/pom.xml b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/pom.xml
new file mode 100644
index 00000000000..a00f75cc055
--- /dev/null
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/pom.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>org.eclipse.papyrus.tests.releng</artifactId>
+ <groupId>org.eclipse.papyrus</groupId>
+ <version>1.1.0-SNAPSHOT</version>
+ <relativePath>../../../../../../releng/main-tests</relativePath>
+ </parent>
+ <artifactId>org.eclipse.papyrus.uml.nattable.stereotype.display.tests</artifactId>
+ <groupId>org.eclipse.papyrus</groupId>
+ <version>1.1.0-SNAPSHOT</version>
+ <packaging>eclipse-test-plugin</packaging>
+</project> \ No newline at end of file
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.di b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.di
new file mode 100644
index 00000000000..bf9abab340f
--- /dev/null
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.di
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.notation b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.notation
new file mode 100644
index 00000000000..120e3f3350f
--- /dev/null
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.notation
@@ -0,0 +1,242 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI 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:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/papyrus/infra/viewpoints/policy/style" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML">
+ <notation:Diagram xmi:id="_QlB6EBTYEeWErrR82X_MsA" type="PapyrusUMLClassDiagram" name="ClassDiagram" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_dnrtsBT8EeWXqszVEIDE8w" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_dnxNQBT8EeWXqszVEIDE8w" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_dnxNQRT8EeWXqszVEIDE8w" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_dnxNQhT8EeWXqszVEIDE8w" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_dn2FwBT8EeWXqszVEIDE8w" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_dn2FwRT8EeWXqszVEIDE8w"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_dn2FwhT8EeWXqszVEIDE8w"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_dn2FwxT8EeWXqszVEIDE8w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_dn2FxBT8EeWXqszVEIDE8w"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_dn2FxRT8EeWXqszVEIDE8w" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_dn2FxhT8EeWXqszVEIDE8w"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_dn2FxxT8EeWXqszVEIDE8w"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_dn2FyBT8EeWXqszVEIDE8w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_dn2FyRT8EeWXqszVEIDE8w"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_dn2FyhT8EeWXqszVEIDE8w" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_dn2FyxT8EeWXqszVEIDE8w"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_dn2FzBT8EeWXqszVEIDE8w"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_dn2FzRT8EeWXqszVEIDE8w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_dn2FzhT8EeWXqszVEIDE8w"/>
+ </children>
+ <element xmi:type="uml:Class" href="StereotypeDisplayTableTests.uml#_OAA1QBT8EeWXqszVEIDE8w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_dnrtsRT8EeWXqszVEIDE8w" x="15" y="12"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_d2LcsBT8EeWXqszVEIDE8w" type="2004">
+ <children xmi:type="notation:DecorationNode" xmi:id="_d2LcshT8EeWXqszVEIDE8w" type="5011"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_d2MDwBT8EeWXqszVEIDE8w" type="8507">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_d2MDwRT8EeWXqszVEIDE8w" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_d2MDwhT8EeWXqszVEIDE8w" type="7006">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_d2MDwxT8EeWXqszVEIDE8w"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_d2MDxBT8EeWXqszVEIDE8w"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_d2MDxRT8EeWXqszVEIDE8w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_d2MDxhT8EeWXqszVEIDE8w"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_d2MDxxT8EeWXqszVEIDE8w" type="7007">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_d2MDyBT8EeWXqszVEIDE8w"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_d2MDyRT8EeWXqszVEIDE8w"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_d2MDyhT8EeWXqszVEIDE8w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_d2MDyxT8EeWXqszVEIDE8w"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_d2MDzBT8EeWXqszVEIDE8w" type="7008">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_d2MDzRT8EeWXqszVEIDE8w"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_d2MDzhT8EeWXqszVEIDE8w"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_d2MDzxT8EeWXqszVEIDE8w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_d2MD0BT8EeWXqszVEIDE8w"/>
+ </children>
+ <element xmi:type="uml:Interface" href="StereotypeDisplayTableTests.uml#_PKcoEBT8EeWXqszVEIDE8w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_d2LcsRT8EeWXqszVEIDE8w" x="274" y="14"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_PRnSwBmsEeWgmdhAsAEHhg" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_PRnSwRmsEeWgmdhAsAEHhg" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_PRnSwxmsEeWgmdhAsAEHhg" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="StereotypeDisplayTableTests.uml#_OAA1QBT8EeWXqszVEIDE8w"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_PRnSwhmsEeWgmdhAsAEHhg" x="215" y="12"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_QHl4gBmsEeWgmdhAsAEHhg" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_QHl4gRmsEeWgmdhAsAEHhg" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_QHl4gxmsEeWgmdhAsAEHhg" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Interface" href="StereotypeDisplayTableTests.uml#_PKcoEBT8EeWXqszVEIDE8w"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QHl4ghmsEeWgmdhAsAEHhg" x="328" y="12"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_0BsnAxm6EeW_MawPXbgphw" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_0BsnBBm6EeW_MawPXbgphw" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_0BsnBhm6EeW_MawPXbgphw" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Association" href="StereotypeDisplayTableTests.uml#_MFVboBm6EeW_MawPXbgphw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0BsnBRm6EeW_MawPXbgphw" x="215" y="-88"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_OMAXwBm7EeW_MawPXbgphw" type="2096">
+ <children xmi:type="notation:DecorationNode" xmi:id="_OMAXwhm7EeW_MawPXbgphw" type="5153">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_OMAXwxm7EeW_MawPXbgphw" x="25" y="3"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_OMAXxBm7EeW_MawPXbgphw" type="5154">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_OMAXxRm7EeW_MawPXbgphw" x="25" y="-10"/>
+ </children>
+ <element xmi:type="uml:TimeObservation" href="StereotypeDisplayTableTests.uml#_NwoqYBm7EeW_MawPXbgphw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_OMAXwRm7EeW_MawPXbgphw" x="53" y="149" width="109" height="87"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_PzTFuxm7EeW_MawPXbgphw" visible="false" type="StereotypeComment">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_RlElUBm7EeW_MawPXbgphw" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_RlElURm7EeW_MawPXbgphw" key="visible" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_PzTFvBm7EeW_MawPXbgphw" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_PzTFvhm7EeW_MawPXbgphw" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:TimeObservation" href="StereotypeDisplayTableTests.uml#_NwoqYBm7EeW_MawPXbgphw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_PzTFvRm7EeW_MawPXbgphw" x="253" y="149"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_QlB6ERTYEeWErrR82X_MsA" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_QlB6EhTYEeWErrR82X_MsA"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_QlB6ExTYEeWErrR82X_MsA">
+ <owner xmi:type="uml:Model" href="StereotypeDisplayTableTests.uml#_QlAr8BTYEeWErrR82X_MsA"/>
+ </styles>
+ <element xmi:type="uml:Model" href="StereotypeDisplayTableTests.uml#_QlAr8BTYEeWErrR82X_MsA"/>
+ <edges xmi:type="notation:Connector" xmi:id="_PRnSxBmsEeWgmdhAsAEHhg" type="StereotypeCommentLink" source="_dnrtsBT8EeWXqszVEIDE8w" target="_PRnSwBmsEeWgmdhAsAEHhg">
+ <styles xmi:type="notation:FontStyle" xmi:id="_PRnSxRmsEeWgmdhAsAEHhg"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_PRnSyRmsEeWgmdhAsAEHhg" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="StereotypeDisplayTableTests.uml#_OAA1QBT8EeWXqszVEIDE8w"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_PRnSxhmsEeWgmdhAsAEHhg" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_PRnSxxmsEeWgmdhAsAEHhg"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_PRnSyBmsEeWgmdhAsAEHhg"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_QHl4hBmsEeWgmdhAsAEHhg" type="StereotypeCommentLink" source="_d2LcsBT8EeWXqszVEIDE8w" target="_QHl4gBmsEeWgmdhAsAEHhg">
+ <styles xmi:type="notation:FontStyle" xmi:id="_QHl4hRmsEeWgmdhAsAEHhg"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_QHl4iRmsEeWgmdhAsAEHhg" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Interface" href="StereotypeDisplayTableTests.uml#_PKcoEBT8EeWXqszVEIDE8w"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_QHl4hhmsEeWgmdhAsAEHhg" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_QHl4hxmsEeWgmdhAsAEHhg"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_QHl4iBmsEeWgmdhAsAEHhg"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_MGAKABm6EeW_MawPXbgphw" type="4001" source="_dnrtsBT8EeWXqszVEIDE8w" target="_d2LcsBT8EeWXqszVEIDE8w">
+ <children xmi:type="notation:DecorationNode" xmi:id="_MGAKAxm6EeW_MawPXbgphw" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_MGAKBBm6EeW_MawPXbgphw" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_MGAKBRm6EeW_MawPXbgphw" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_MGAKBhm6EeW_MawPXbgphw" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_MGAKBxm6EeW_MawPXbgphw" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_MGAKCBm6EeW_MawPXbgphw" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_MGAKCRm6EeW_MawPXbgphw" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_MGAKChm6EeW_MawPXbgphw" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_MGAKCxm6EeW_MawPXbgphw" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_MGAKDBm6EeW_MawPXbgphw" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_MGAKDRm6EeW_MawPXbgphw" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_MGAKDhm6EeW_MawPXbgphw" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_MGAKARm6EeW_MawPXbgphw"/>
+ <element xmi:type="uml:Association" href="StereotypeDisplayTableTests.uml#_MFVboBm6EeW_MawPXbgphw"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_MGAKAhm6EeW_MawPXbgphw" points="[50, 3, -209, -6]$[209, 16, -50, 7]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_MHJZgBm6EeW_MawPXbgphw" id="(1.0,0.46153846153846156)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_MHJZgRm6EeW_MawPXbgphw" id="(0.0,0.5294117647058824)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_0BsnBxm6EeW_MawPXbgphw" type="StereotypeCommentLink" source="_MGAKABm6EeW_MawPXbgphw" target="_0BsnAxm6EeW_MawPXbgphw">
+ <styles xmi:type="notation:FontStyle" xmi:id="_0BsnCBm6EeW_MawPXbgphw"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_0BsnDBm6EeW_MawPXbgphw" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Association" href="StereotypeDisplayTableTests.uml#_MFVboBm6EeW_MawPXbgphw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0BsnCRm6EeW_MawPXbgphw" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_0BsnChm6EeW_MawPXbgphw"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_0BsnCxm6EeW_MawPXbgphw"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_PzTFvxm7EeW_MawPXbgphw" type="StereotypeCommentLink" source="_OMAXwBm7EeW_MawPXbgphw" target="_PzTFuxm7EeW_MawPXbgphw">
+ <styles xmi:type="notation:FontStyle" xmi:id="_PzTFwBm7EeW_MawPXbgphw"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_PzTFxBm7EeW_MawPXbgphw" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:TimeObservation" href="StereotypeDisplayTableTests.uml#_NwoqYBm7EeW_MawPXbgphw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_PzTFwRm7EeW_MawPXbgphw" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_PzTFwhm7EeW_MawPXbgphw"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_PzTFwxm7EeW_MawPXbgphw"/>
+ </edges>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_8huuYBm6EeW_MawPXbgphw" type="PapyrusUMLComponentDiagram" name="ComponentDiagram" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_IUaSQBm7EeW_MawPXbgphw" type="2002">
+ <children xmi:type="notation:DecorationNode" xmi:id="_IUaSQhm7EeW_MawPXbgphw" type="5004"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_IUaSQxm7EeW_MawPXbgphw" type="6030">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_IUaSRBm7EeW_MawPXbgphw" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_IUaSRRm7EeW_MawPXbgphw" type="7001">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_IUaSRhm7EeW_MawPXbgphw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_IUaSRxm7EeW_MawPXbgphw"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_IVRN4Bm7EeW_MawPXbgphw" type="compartment_shape_display">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_IVRN4Rm7EeW_MawPXbgphw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_IVRN4hm7EeW_MawPXbgphw"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_I2RCIBm7EeW_MawPXbgphw" type="3069">
+ <children xmi:type="notation:DecorationNode" xmi:id="_I2RCIhm7EeW_MawPXbgphw" type="5006">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_I2RCIxm7EeW_MawPXbgphw" y="5"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_I2RCJBm7EeW_MawPXbgphw" type="5007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_I2RCJRm7EeW_MawPXbgphw" x="25" y="-10"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_5whbgBo9EeWMBcTRjjIlFA" type="StereotypeLabel">
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_5whbgRo9EeWMBcTRjjIlFA" name="stereotype" stringValue="RootElement::Body::Human"/>
+ <element xmi:type="uml:Stereotype" href="StereotypeDisplayTableTests.profile.uml#_D31B8BmqEeWgmdhAsAEHhg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_5whbgho9EeWMBcTRjjIlFA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Kq5ogxm7EeW_MawPXbgphw" visible="false" type="StereotypeBrace">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_U3W1cBm7EeW_MawPXbgphw" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_U3W1cRm7EeW_MawPXbgphw" key="visible" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Kq5ohBm7EeW_MawPXbgphw" showTitle="true"/>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_Kq5ohRm7EeW_MawPXbgphw" name="stereotype" stringValue="RootElement::Body::Human"/>
+ <element xmi:type="uml:Stereotype" href="StereotypeDisplayTableTests.profile.uml#_D31B8BmqEeWgmdhAsAEHhg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Kq5ohhm7EeW_MawPXbgphw"/>
+ </children>
+ <element xmi:type="uml:Port" href="StereotypeDisplayTableTests.uml#_I1mTwBm7EeW_MawPXbgphw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_I2RCIRm7EeW_MawPXbgphw" x="306" y="79"/>
+ </children>
+ <element xmi:type="uml:Component" href="StereotypeDisplayTableTests.uml#_IUULoBm7EeW_MawPXbgphw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_IUaSQRm7EeW_MawPXbgphw" x="167" y="84" width="154" height="113"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_Kq5okxm7EeW_MawPXbgphw" visible="false" type="StereotypeComment">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_WWuWcBm7EeW_MawPXbgphw" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_WWuWcRm7EeW_MawPXbgphw" key="visible" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Kq5olBm7EeW_MawPXbgphw" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_Kq5olhm7EeW_MawPXbgphw" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Port" href="StereotypeDisplayTableTests.uml#_I1mTwBm7EeW_MawPXbgphw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Kq5olRm7EeW_MawPXbgphw" x="506" y="79"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_8huuYRm6EeW_MawPXbgphw" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_8huuYhm6EeW_MawPXbgphw"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_8huuYxm6EeW_MawPXbgphw">
+ <owner xmi:type="uml:Model" href="StereotypeDisplayTableTests.uml#_QlAr8BTYEeWErrR82X_MsA"/>
+ </styles>
+ <element xmi:type="uml:Model" href="StereotypeDisplayTableTests.uml#_QlAr8BTYEeWErrR82X_MsA"/>
+ <edges xmi:type="notation:Connector" xmi:id="_Kq5olxm7EeW_MawPXbgphw" type="StereotypeCommentLink" source="_I2RCIBm7EeW_MawPXbgphw" target="_Kq5okxm7EeW_MawPXbgphw">
+ <styles xmi:type="notation:FontStyle" xmi:id="_Kq5omBm7EeW_MawPXbgphw"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_Kq5onBm7EeW_MawPXbgphw" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Port" href="StereotypeDisplayTableTests.uml#_I1mTwBm7EeW_MawPXbgphw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Kq5omRm7EeW_MawPXbgphw" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Kq5omhm7EeW_MawPXbgphw"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Kq5omxm7EeW_MawPXbgphw"/>
+ </edges>
+ </notation:Diagram>
+</xmi:XMI>
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.profile.di b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.profile.di
new file mode 100644
index 00000000000..bf9abab340f
--- /dev/null
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.profile.di
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.profile.notation b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.profile.notation
new file mode 100644
index 00000000000..52a3b60d82e
--- /dev/null
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.profile.notation
@@ -0,0 +1,248 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/papyrus/infra/viewpoints/policy/style" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="_CpuQEBmqEeWgmdhAsAEHhg" type="PapyrusUMLProfileDiagram" name="Profile Diagram" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_INbeUBmsEeWgmdhAsAEHhg" type="1031">
+ <children xmi:type="notation:DecorationNode" xmi:id="_INbeUhmsEeWgmdhAsAEHhg" type="1084"/>
+ <element xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_INbeUxmsEeWgmdhAsAEHhg" x="292" y="19"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_INbeWhmsEeWgmdhAsAEHhg" type="1031">
+ <children xmi:type="notation:DecorationNode" xmi:id="_INbeXBmsEeWgmdhAsAEHhg" type="1084"/>
+ <element xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Interface"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_INbeXRmsEeWgmdhAsAEHhg" x="549" y="19"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_IO3BsBmsEeWgmdhAsAEHhg" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_IO3BsRmsEeWgmdhAsAEHhg" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_IO3BsxmsEeWgmdhAsAEHhg" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_IO3BshmsEeWgmdhAsAEHhg" x="1013" y="32"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_IQMecxmsEeWgmdhAsAEHhg" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_IQMedBmsEeWgmdhAsAEHhg" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_IQMedhmsEeWgmdhAsAEHhg" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Interface"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_IQMedRmsEeWgmdhAsAEHhg" x="1013" y="112"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_SzCyIBmsEeWgmdhAsAEHhg" type="2007">
+ <children xmi:type="notation:DecorationNode" xmi:id="_SzCyIhmsEeWgmdhAsAEHhg" type="5026"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_SzCyIxmsEeWgmdhAsAEHhg" type="1005">
+ <children xmi:type="notation:Shape" xmi:id="_HQKPsBmqEeWgmdhAsAEHhg" type="1026">
+ <children xmi:type="notation:DecorationNode" xmi:id="_HQKPshmqEeWgmdhAsAEHhg" type="1034"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_HQKPsxmqEeWgmdhAsAEHhg" type="1071">
+ <children xmi:type="notation:Shape" xmi:id="_H64nsBmqEeWgmdhAsAEHhg" type="3002">
+ <element xmi:type="uml:Property" href="StereotypeDisplayTableTests.profile.uml#_D31B8RmqEeWgmdhAsAEHhg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_H64nsRmqEeWgmdhAsAEHhg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_H7E08BmqEeWgmdhAsAEHhg" type="3002">
+ <element xmi:type="uml:Property" href="StereotypeDisplayTableTests.profile.uml#_D31B8hmqEeWgmdhAsAEHhg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_H7E08RmqEeWgmdhAsAEHhg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_H7K7kBmqEeWgmdhAsAEHhg" type="3002">
+ <element xmi:type="uml:Property" href="StereotypeDisplayTableTests.profile.uml#_D31B8xmqEeWgmdhAsAEHhg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_H7K7kRmqEeWgmdhAsAEHhg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_H7RCMBmqEeWgmdhAsAEHhg" type="3002">
+ <element xmi:type="uml:Property" href="StereotypeDisplayTableTests.profile.uml#_D31B9BmqEeWgmdhAsAEHhg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_H7RCMRmqEeWgmdhAsAEHhg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_H7XI0BmqEeWgmdhAsAEHhg" type="3002">
+ <element xmi:type="uml:Property" href="StereotypeDisplayTableTests.profile.uml#_D31B9RmqEeWgmdhAsAEHhg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_H7XI0RmqEeWgmdhAsAEHhg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_disdoBmqEeWgmdhAsAEHhg" type="3002">
+ <element xmi:type="uml:Property" href="StereotypeDisplayTableTests.profile.uml#_digQYBmqEeWgmdhAsAEHhg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_disdoRmqEeWgmdhAsAEHhg"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_HQKPtBmqEeWgmdhAsAEHhg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_HQKPtRmqEeWgmdhAsAEHhg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_HQKPthmqEeWgmdhAsAEHhg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_HQKPtxmqEeWgmdhAsAEHhg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_HQKPuBmqEeWgmdhAsAEHhg" type="1019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_HQKPuRmqEeWgmdhAsAEHhg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_HQKPuhmqEeWgmdhAsAEHhg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_HQKPuxmqEeWgmdhAsAEHhg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_HQKPvBmqEeWgmdhAsAEHhg"/>
+ </children>
+ <element xmi:type="uml:Stereotype" href="StereotypeDisplayTableTests.profile.uml#_D31B8BmqEeWgmdhAsAEHhg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_HQKPsRmqEeWgmdhAsAEHhg" x="14"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_R6qqkBmqEeWgmdhAsAEHhg" type="1026">
+ <children xmi:type="notation:DecorationNode" xmi:id="_R6qqkhmqEeWgmdhAsAEHhg" type="1034"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_R6qqkxmqEeWgmdhAsAEHhg" type="1071">
+ <children xmi:type="notation:Shape" xmi:id="_cIkpABmqEeWgmdhAsAEHhg" type="3002">
+ <element xmi:type="uml:Property" href="StereotypeDisplayTableTests.profile.uml#_cIYbwBmqEeWgmdhAsAEHhg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_cIkpARmqEeWgmdhAsAEHhg"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_c4WgIBmqEeWgmdhAsAEHhg" type="3002">
+ <element xmi:type="uml:Property" href="StereotypeDisplayTableTests.profile.uml#_c4KS4BmqEeWgmdhAsAEHhg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_c4WgIRmqEeWgmdhAsAEHhg"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_R6qqlBmqEeWgmdhAsAEHhg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_R6qqlRmqEeWgmdhAsAEHhg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_R6qqlhmqEeWgmdhAsAEHhg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_R6qqlxmqEeWgmdhAsAEHhg"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_R6qqmBmqEeWgmdhAsAEHhg" type="1019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_R6qqmRmqEeWgmdhAsAEHhg"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_R6qqmhmqEeWgmdhAsAEHhg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_R6qqmxmqEeWgmdhAsAEHhg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_R6qqnBmqEeWgmdhAsAEHhg"/>
+ </children>
+ <element xmi:type="uml:Stereotype" href="StereotypeDisplayTableTests.profile.uml#_R6kj8BmqEeWgmdhAsAEHhg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_R6qqkRmqEeWgmdhAsAEHhg" x="692" y="31"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_SzCyJBmsEeWgmdhAsAEHhg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_SzCyJRmsEeWgmdhAsAEHhg"/>
+ </children>
+ <element xmi:type="uml:Package" href="StereotypeDisplayTableTests.profile.uml#_Sy8rgBmsEeWgmdhAsAEHhg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_SzCyIRmsEeWgmdhAsAEHhg" x="24" y="173" width="904" height="217"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_Z1BewBm6EeW_MawPXbgphw" type="1031">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Z1Bewhm6EeW_MawPXbgphw" type="1084"/>
+ <element xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Port"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Z1Bewxm6EeW_MawPXbgphw" x="45" y="18"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_Z1mGgxm6EeW_MawPXbgphw" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Z1mGhBm6EeW_MawPXbgphw" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_Z1mGhhm6EeW_MawPXbgphw" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Port"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Z1mGhRm6EeW_MawPXbgphw" x="243" y="26"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_bViPQBm6EeW_MawPXbgphw" type="1031">
+ <children xmi:type="notation:DecorationNode" xmi:id="_bViPQhm6EeW_MawPXbgphw" type="1084"/>
+ <element xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Association"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bViPQxm6EeW_MawPXbgphw" x="785" y="21"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_bWAwYBm6EeW_MawPXbgphw" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_bWAwYRm6EeW_MawPXbgphw" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bWAwYxm6EeW_MawPXbgphw" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Association"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bWAwYhm6EeW_MawPXbgphw" x="957" y="28"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_p76p0Rm6EeW_MawPXbgphw" type="1031">
+ <children xmi:type="notation:DecorationNode" xmi:id="_p76p0xm6EeW_MawPXbgphw" type="1084"/>
+ <element xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#TimeObservation"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_p76p1Bm6EeW_MawPXbgphw" x="987" y="19"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_p8TEUxm6EeW_MawPXbgphw" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_p8TEVBm6EeW_MawPXbgphw" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_p8TEVhm6EeW_MawPXbgphw" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#TimeObservation"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_p8TEVRm6EeW_MawPXbgphw" x="1170" y="23"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_CpuQERmqEeWgmdhAsAEHhg" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_CpuQEhmqEeWgmdhAsAEHhg"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_CpuQExmqEeWgmdhAsAEHhg">
+ <owner xmi:type="uml:Profile" href="StereotypeDisplayTableTests.profile.uml#_CpoJcBmqEeWgmdhAsAEHhg"/>
+ </styles>
+ <element xmi:type="uml:Profile" href="StereotypeDisplayTableTests.profile.uml#_CpoJcBmqEeWgmdhAsAEHhg"/>
+ <edges xmi:type="notation:Connector" xmi:id="_IO3BtBmsEeWgmdhAsAEHhg" type="StereotypeCommentLink" source="_INbeUBmsEeWgmdhAsAEHhg" target="_IO3BsBmsEeWgmdhAsAEHhg">
+ <styles xmi:type="notation:FontStyle" xmi:id="_IO3BtRmsEeWgmdhAsAEHhg"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_IO9IUBmsEeWgmdhAsAEHhg" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_IO3BthmsEeWgmdhAsAEHhg" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_IO3BtxmsEeWgmdhAsAEHhg"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_IO3BuBmsEeWgmdhAsAEHhg"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_IQMedxmsEeWgmdhAsAEHhg" type="StereotypeCommentLink" source="_INbeWhmsEeWgmdhAsAEHhg" target="_IQMecxmsEeWgmdhAsAEHhg">
+ <styles xmi:type="notation:FontStyle" xmi:id="_IQMeeBmsEeWgmdhAsAEHhg"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_IQMefBmsEeWgmdhAsAEHhg" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Interface"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_IQMeeRmsEeWgmdhAsAEHhg" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_IQMeehmsEeWgmdhAsAEHhg"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_IQMeexmsEeWgmdhAsAEHhg"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_JLm90BmsEeWgmdhAsAEHhg" type="1013" source="_HQKPsBmqEeWgmdhAsAEHhg" target="_INbeUBmsEeWgmdhAsAEHhg">
+ <styles xmi:type="notation:FontStyle" xmi:id="_JLm90RmsEeWgmdhAsAEHhg"/>
+ <element xmi:type="uml:Extension" href="StereotypeDisplayTableTests.profile.uml#_JKp7kBmsEeWgmdhAsAEHhg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_JLm90hmsEeWgmdhAsAEHhg" points="[42, -31, -137, 86]$[129, -117, -50, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_JMqGsBmsEeWgmdhAsAEHhg" id="(0.9947089947089947,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_JMqGsRmsEeWgmdhAsAEHhg" id="(0.0,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_JrXb8BmsEeWgmdhAsAEHhg" type="1013" source="_R6qqkBmqEeWgmdhAsAEHhg" target="_INbeUBmsEeWgmdhAsAEHhg">
+ <styles xmi:type="notation:FontStyle" xmi:id="_JrXb8RmsEeWgmdhAsAEHhg"/>
+ <element xmi:type="uml:Extension" href="StereotypeDisplayTableTests.profile.uml#_JrFIEBmsEeWgmdhAsAEHhg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_JrXb8hmsEeWgmdhAsAEHhg" points="[-87, -36, 316, 134]$[-353, -161, 50, 9]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Jrpv0BmsEeWgmdhAsAEHhg" id="(0.0,0.11764705882352941)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Jrpv0RmsEeWgmdhAsAEHhg" id="(1.0,0.96)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_KAiasBmsEeWgmdhAsAEHhg" type="1013" source="_R6qqkBmqEeWgmdhAsAEHhg" target="_INbeWhmsEeWgmdhAsAEHhg">
+ <styles xmi:type="notation:FontStyle" xmi:id="_KAiasRmsEeWgmdhAsAEHhg"/>
+ <element xmi:type="uml:Extension" href="StereotypeDisplayTableTests.profile.uml#_KAKAMBmsEeWgmdhAsAEHhg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_KAiashmsEeWgmdhAsAEHhg" points="[-78, -59, 136, 111]$[-264, -179, -50, -9]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_KAun8BmsEeWgmdhAsAEHhg" id="(0.19540229885057472,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_KAun8RmsEeWgmdhAsAEHhg" id="(1.0,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_KaSXcBmsEeWgmdhAsAEHhg" type="1013" source="_HQKPsBmqEeWgmdhAsAEHhg" target="_INbeWhmsEeWgmdhAsAEHhg">
+ <styles xmi:type="notation:FontStyle" xmi:id="_KaSXcRmsEeWgmdhAsAEHhg"/>
+ <element xmi:type="uml:Extension" href="StereotypeDisplayTableTests.profile.uml#_KZ588BmsEeWgmdhAsAEHhg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_KaSXchmsEeWgmdhAsAEHhg" points="[32, -11, -326, 117]$[353, -103, -5, 25]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Kaqx8BmsEeWgmdhAsAEHhg" id="(1.0,0.2185792349726776)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Kaqx8RmsEeWgmdhAsAEHhg" id="(0.0,0.98)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_Z1mGhxm6EeW_MawPXbgphw" type="StereotypeCommentLink" source="_Z1BewBm6EeW_MawPXbgphw" target="_Z1mGgxm6EeW_MawPXbgphw">
+ <styles xmi:type="notation:FontStyle" xmi:id="_Z1mGiBm6EeW_MawPXbgphw"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_Z1mGjBm6EeW_MawPXbgphw" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Port"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Z1mGiRm6EeW_MawPXbgphw" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Z1mGihm6EeW_MawPXbgphw"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Z1mGixm6EeW_MawPXbgphw"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_bWAwZBm6EeW_MawPXbgphw" type="StereotypeCommentLink" source="_bViPQBm6EeW_MawPXbgphw" target="_bWAwYBm6EeW_MawPXbgphw">
+ <styles xmi:type="notation:FontStyle" xmi:id="_bWAwZRm6EeW_MawPXbgphw"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bWAwaRm6EeW_MawPXbgphw" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Association"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_bWAwZhm6EeW_MawPXbgphw" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bWAwZxm6EeW_MawPXbgphw"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bWAwaBm6EeW_MawPXbgphw"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_c2nngBm6EeW_MawPXbgphw" type="1013" source="_HQKPsBmqEeWgmdhAsAEHhg" target="_Z1BewBm6EeW_MawPXbgphw">
+ <styles xmi:type="notation:FontStyle" xmi:id="_c2nngRm6EeW_MawPXbgphw"/>
+ <element xmi:type="uml:Extension" href="StereotypeDisplayTableTests.profile.uml#_c2JGYBm6EeW_MawPXbgphw"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_c2nnghm6EeW_MawPXbgphw" points="[7, -9, 2, 155]$[7, -139, 2, 25]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_c3YcgBm6EeW_MawPXbgphw" id="(0.24867724867724866,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_c3YcgRm6EeW_MawPXbgphw" id="(0.51,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_drQwgBm6EeW_MawPXbgphw" type="1013" source="_R6qqkBmqEeWgmdhAsAEHhg" target="_bViPQBm6EeW_MawPXbgphw">
+ <styles xmi:type="notation:FontStyle" xmi:id="_drQwgRm6EeW_MawPXbgphw"/>
+ <element xmi:type="uml:Extension" href="StereotypeDisplayTableTests.profile.uml#_dq4WABm6EeW_MawPXbgphw"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_drQwghm6EeW_MawPXbgphw" points="[9, -7, -9, 183]$[9, -165, -9, 25]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_dr7e4Bm6EeW_MawPXbgphw" id="(0.6551724137931034,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_dr7e4Rm6EeW_MawPXbgphw" id="(0.5,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_p8TEVxm6EeW_MawPXbgphw" type="StereotypeCommentLink" source="_p76p0Rm6EeW_MawPXbgphw" target="_p8TEUxm6EeW_MawPXbgphw">
+ <styles xmi:type="notation:FontStyle" xmi:id="_p8TEWBm6EeW_MawPXbgphw"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_p8TEXBm6EeW_MawPXbgphw" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#TimeObservation"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_p8TEWRm6EeW_MawPXbgphw" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_p8TEWhm6EeW_MawPXbgphw"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_p8TEWxm6EeW_MawPXbgphw"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_rU5O8Bm6EeW_MawPXbgphw" type="1013" source="_R6qqkBmqEeWgmdhAsAEHhg" target="_p76p0Rm6EeW_MawPXbgphw">
+ <styles xmi:type="notation:FontStyle" xmi:id="_rU5O8Rm6EeW_MawPXbgphw"/>
+ <element xmi:type="uml:Extension" href="StereotypeDisplayTableTests.profile.uml#_rUg0cBm6EeW_MawPXbgphw"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_rU5O8hm6EeW_MawPXbgphw" points="[14, -17, -156, 185]$[194, -206, 24, -4]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_rV2RMBm6EeW_MawPXbgphw" id="(0.9712643678160919,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_rV2RMRm6EeW_MawPXbgphw" id="(0.51,1.0)"/>
+ </edges>
+</notation:Diagram>
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.profile.uml b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.profile.uml
new file mode 100644
index 00000000000..99f427220ae
--- /dev/null
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.profile.uml
@@ -0,0 +1,139 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<uml:Profile xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="_CpoJcBmqEeWgmdhAsAEHhg" name="RootElement" metaclassReference="_Z07YIBm6EeW_MawPXbgphw _bVcIoBm6EeW_MawPXbgphw _p76p0Bm6EeW_MawPXbgphw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_F1VQcBmqEeWgmdhAsAEHhg" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <contents xmi:type="ecore:EPackage" xmi:id="_uiB5UBm6EeW_MawPXbgphw" name="RootElement" nsURI="http:///schemas/RootElement/_uh7ysBm6EeW_MawPXbgphw/0" nsPrefix="RootElement">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_uiB5dRm6EeW_MawPXbgphw" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_uiB5dhm6EeW_MawPXbgphw" key="Version" value="1.0.0"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_uiB5dxm6EeW_MawPXbgphw" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_uiB5eBm6EeW_MawPXbgphw" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_uiB5eRm6EeW_MawPXbgphw" key="Date" value="2015-06-23"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_uiB5ehm6EeW_MawPXbgphw" key="Author" value=""/>
+ </eAnnotations>
+ <eSubpackages xmi:type="ecore:EPackage" xmi:id="_uiB5URm6EeW_MawPXbgphw" name="Body" nsURI="http:///RootElement/Body.ecore" nsPrefix="RootElement.Body">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_uiB5Uhm6EeW_MawPXbgphw" source="http://www.eclipse.org/uml2/4.0.0/UML" references="_Sy8rgBmsEeWgmdhAsAEHhg"/>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_uiB5Uxm6EeW_MawPXbgphw" name="Human">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_uiB5VBm6EeW_MawPXbgphw" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_D31B8BmqEeWgmdhAsAEHhg"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_uiB5VRm6EeW_MawPXbgphw" name="firstName" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_uiB5Vxm6EeW_MawPXbgphw" name="lastName" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_uiB5WRm6EeW_MawPXbgphw" name="address" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_uiB5Wxm6EeW_MawPXbgphw" name="phone" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_uiB5XRm6EeW_MawPXbgphw" name="mail" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_uiB5Xxm6EeW_MawPXbgphw" name="gender" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_uiB5YRm6EeW_MawPXbgphw" name="base_Class" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_uiB5Yxm6EeW_MawPXbgphw" name="base_Interface" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Interface"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_uiB5ZRm6EeW_MawPXbgphw" name="base_Port" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Port"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_uiB5Zxm6EeW_MawPXbgphw" name="Animal">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_uiB5aBm6EeW_MawPXbgphw" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_R6kj8BmqEeWgmdhAsAEHhg"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_uiB5aRm6EeW_MawPXbgphw" name="type" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_uiB5axm6EeW_MawPXbgphw" name="gender" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_uiB5bRm6EeW_MawPXbgphw" name="base_Class" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_uiB5bxm6EeW_MawPXbgphw" name="base_Interface" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Interface"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_uiB5cRm6EeW_MawPXbgphw" name="base_Association" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Association"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_uiB5cxm6EeW_MawPXbgphw" name="base_TimeObservation" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//TimeObservation"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ </eSubpackages>
+ </contents>
+ </eAnnotations>
+ <elementImport xmi:type="uml:ElementImport" xmi:id="_IM22kBmsEeWgmdhAsAEHhg" alias="Class">
+ <importedElement xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
+ </elementImport>
+ <elementImport xmi:type="uml:ElementImport" xmi:id="_IM22kRmsEeWgmdhAsAEHhg" alias="Interface">
+ <importedElement xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Interface"/>
+ </elementImport>
+ <elementImport xmi:type="uml:ElementImport" xmi:id="_Z07YIBm6EeW_MawPXbgphw" alias="Port">
+ <importedElement xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Port"/>
+ </elementImport>
+ <elementImport xmi:type="uml:ElementImport" xmi:id="_bVcIoBm6EeW_MawPXbgphw" alias="Association">
+ <importedElement xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Association"/>
+ </elementImport>
+ <elementImport xmi:type="uml:ElementImport" xmi:id="_p76p0Bm6EeW_MawPXbgphw" alias="TimeObservation">
+ <importedElement xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#TimeObservation"/>
+ </elementImport>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Sy8rgBmsEeWgmdhAsAEHhg" name="Body">
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_D31B8BmqEeWgmdhAsAEHhg" name="Human">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_D31B8RmqEeWgmdhAsAEHhg" name="firstName"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_D31B8hmqEeWgmdhAsAEHhg" name="lastName"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_D31B8xmqEeWgmdhAsAEHhg" name="address"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_D31B9BmqEeWgmdhAsAEHhg" name="phone"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_D31B9RmqEeWgmdhAsAEHhg" name="mail"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_digQYBmqEeWgmdhAsAEHhg" name="gender"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_JLIcsRmsEeWgmdhAsAEHhg" name="base_Class" association="_JKp7kBmsEeWgmdhAsAEHhg">
+ <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_KZ588hmsEeWgmdhAsAEHhg" name="base_Interface" association="_KZ588BmsEeWgmdhAsAEHhg">
+ <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Interface"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_c2PNABm6EeW_MawPXbgphw" name="base_Port" association="_c2JGYBm6EeW_MawPXbgphw">
+ <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Port"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_R6kj8BmqEeWgmdhAsAEHhg" name="Animal">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_cIYbwBmqEeWgmdhAsAEHhg" name="type"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_c4KS4BmqEeWgmdhAsAEHhg" name="gender"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_JrFIEhmsEeWgmdhAsAEHhg" name="base_Class" association="_JrFIEBmsEeWgmdhAsAEHhg">
+ <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_KAKAMhmsEeWgmdhAsAEHhg" name="base_Interface" association="_KAKAMBmsEeWgmdhAsAEHhg">
+ <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Interface"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_dq4WAhm6EeW_MawPXbgphw" name="base_Association" association="_dq4WABm6EeW_MawPXbgphw">
+ <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Association"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_rUg0chm6EeW_MawPXbgphw" name="base_TimeObservation" association="_rUg0cBm6EeW_MawPXbgphw">
+ <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#TimeObservation"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Extension" xmi:id="_c2JGYBm6EeW_MawPXbgphw" name="E_Human_Port1" memberEnd="_c2JGYRm6EeW_MawPXbgphw _c2PNABm6EeW_MawPXbgphw">
+ <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_c2JGYRm6EeW_MawPXbgphw" name="extension_Human" type="_D31B8BmqEeWgmdhAsAEHhg" aggregation="composite" association="_c2JGYBm6EeW_MawPXbgphw"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Extension" xmi:id="_dq4WABm6EeW_MawPXbgphw" name="E_Animal_Association1" memberEnd="_dq4WARm6EeW_MawPXbgphw _dq4WAhm6EeW_MawPXbgphw">
+ <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_dq4WARm6EeW_MawPXbgphw" name="extension_Animal" type="_R6kj8BmqEeWgmdhAsAEHhg" aggregation="composite" association="_dq4WABm6EeW_MawPXbgphw"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Extension" xmi:id="_rUg0cBm6EeW_MawPXbgphw" name="E_Animal_TimeObservation1" memberEnd="_rUg0cRm6EeW_MawPXbgphw _rUg0chm6EeW_MawPXbgphw">
+ <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_rUg0cRm6EeW_MawPXbgphw" name="extension_Animal" type="_R6kj8BmqEeWgmdhAsAEHhg" aggregation="composite" association="_rUg0cBm6EeW_MawPXbgphw"/>
+ </packagedElement>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Extension" xmi:id="_JKp7kBmsEeWgmdhAsAEHhg" name="E_Human_Class1" memberEnd="_JLIcsBmsEeWgmdhAsAEHhg _JLIcsRmsEeWgmdhAsAEHhg">
+ <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_JLIcsBmsEeWgmdhAsAEHhg" name="extension_Human" type="_D31B8BmqEeWgmdhAsAEHhg" aggregation="composite" association="_JKp7kBmsEeWgmdhAsAEHhg"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Extension" xmi:id="_JrFIEBmsEeWgmdhAsAEHhg" name="E_Animal_Class1" memberEnd="_JrFIERmsEeWgmdhAsAEHhg _JrFIEhmsEeWgmdhAsAEHhg">
+ <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_JrFIERmsEeWgmdhAsAEHhg" name="extension_Animal" type="_R6kj8BmqEeWgmdhAsAEHhg" aggregation="composite" association="_JrFIEBmsEeWgmdhAsAEHhg"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Extension" xmi:id="_KAKAMBmsEeWgmdhAsAEHhg" name="E_Animal_Interface1" memberEnd="_KAKAMRmsEeWgmdhAsAEHhg _KAKAMhmsEeWgmdhAsAEHhg">
+ <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_KAKAMRmsEeWgmdhAsAEHhg" name="extension_Animal" type="_R6kj8BmqEeWgmdhAsAEHhg" aggregation="composite" association="_KAKAMBmsEeWgmdhAsAEHhg"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Extension" xmi:id="_KZ588BmsEeWgmdhAsAEHhg" name="E_Human_Interface1" memberEnd="_KZ588RmsEeWgmdhAsAEHhg _KZ588hmsEeWgmdhAsAEHhg">
+ <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_KZ588RmsEeWgmdhAsAEHhg" name="extension_Human" type="_D31B8BmqEeWgmdhAsAEHhg" aggregation="composite" association="_KZ588BmsEeWgmdhAsAEHhg"/>
+ </packagedElement>
+</uml:Profile>
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.uml b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.uml
new file mode 100644
index 00000000000..0ca289d5c9c
--- /dev/null
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/resources/StereotypeDisplayTableTests.uml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:RootElement.Body="http:///RootElement/Body.ecore" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http:///RootElement/Body.ecore StereotypeDisplayTableTests.profile.uml#_uiB5URm6EeW_MawPXbgphw">
+ <uml:Model xmi:id="_QlAr8BTYEeWErrR82X_MsA" name="RootElement">
+ <packagedElement xmi:type="uml:Class" xmi:id="_OAA1QBT8EeWXqszVEIDE8w" name="Class1">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_MFnvghm6EeW_MawPXbgphw" name="interface1" type="_PKcoEBT8EeWXqszVEIDE8w" association="_MFVboBm6EeW_MawPXbgphw"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Interface" xmi:id="_PKcoEBT8EeWXqszVEIDE8w" name="Interface1">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_MFnvgxm6EeW_MawPXbgphw" name="class1" type="_OAA1QBT8EeWXqszVEIDE8w" association="_MFVboBm6EeW_MawPXbgphw"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_MFVboBm6EeW_MawPXbgphw" name="Association1" memberEnd="_MFnvghm6EeW_MawPXbgphw _MFnvgxm6EeW_MawPXbgphw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MFnvgBm6EeW_MawPXbgphw" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_MFnvgRm6EeW_MawPXbgphw" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Component" xmi:id="_IUULoBm7EeW_MawPXbgphw" name="Component1">
+ <ownedAttribute xmi:type="uml:Port" xmi:id="_I1mTwBm7EeW_MawPXbgphw" name="Port1" aggregation="composite"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:TimeObservation" xmi:id="_NwoqYBm7EeW_MawPXbgphw" name="TimeObservation1"/>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_xabCwBm6EeW_MawPXbgphw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_xabCwhm6EeW_MawPXbgphw" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_xabCwxm6EeW_MawPXbgphw" key="Version" value="1.0.0"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_xabCxBm6EeW_MawPXbgphw" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_xabCxRm6EeW_MawPXbgphw" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_xabCxhm6EeW_MawPXbgphw" key="Date" value="2015-06-23"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_xabCxxm6EeW_MawPXbgphw" key="Author" value=""/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_xabCwRm6EeW_MawPXbgphw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="StereotypeDisplayTableTests.profile.uml#_uiB5UBm6EeW_MawPXbgphw"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="StereotypeDisplayTableTests.profile.uml#_CpoJcBmqEeWgmdhAsAEHhg"/>
+ </profileApplication>
+ </uml:Model>
+ <RootElement.Body:Human xmi:id="_3Wv_oBmsEeWgmdhAsAEHhg" base_Class="_OAA1QBT8EeWXqszVEIDE8w"/>
+ <RootElement.Body:Animal xmi:id="__yVr4BmsEeWgmdhAsAEHhg" base_Interface="_PKcoEBT8EeWXqszVEIDE8w"/>
+ <RootElement.Body:Human xmi:id="_ywcagBm6EeW_MawPXbgphw" base_Class="_OAA1QBT8EeWXqszVEIDE8w"/>
+ <RootElement.Body:Animal xmi:id="_zaHpoBm6EeW_MawPXbgphw" base_Interface="_PKcoEBT8EeWXqszVEIDE8w"/>
+ <RootElement.Body:Animal xmi:id="_0BmgYBm6EeW_MawPXbgphw" base_Association="_MFVboBm6EeW_MawPXbgphw"/>
+ <RootElement.Body:Human xmi:id="_Kqzh4Bm7EeW_MawPXbgphw" base_Port="_I1mTwBm7EeW_MawPXbgphw"/>
+ <RootElement.Body:Animal xmi:id="_PzG4cBm7EeW_MawPXbgphw" base_TimeObservation="_NwoqYBm7EeW_MawPXbgphw"/>
+</xmi:XMI>
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/src/org/eclipse/papyrus/uml/nattable/stereotype/display/tests/Activator.java b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/src/org/eclipse/papyrus/uml/nattable/stereotype/display/tests/Activator.java
new file mode 100644
index 00000000000..7154f386480
--- /dev/null
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/src/org/eclipse/papyrus/uml/nattable/stereotype/display/tests/Activator.java
@@ -0,0 +1,72 @@
+/*****************************************************************************
+ * Copyright (c) 2015 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 FAUVERGUE (ALL4TEC) nicolas.fauvergue@all4tec.net - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.nattable.stereotype.display.tests;
+
+import org.eclipse.papyrus.infra.core.log.LogHelper;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ /** The plug-in ID. */
+ public static final String PLUGIN_ID = "org.eclipse.papyrus.uml.nattable.stereotype.display.tests"; //$NON-NLS-1$
+
+ /** The shared instance. */
+ private static Activator plugin;
+
+ /** The log helper. */
+ public static LogHelper log;
+
+ /**
+ * The constructor.
+ */
+ public Activator() {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ @Override
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ log = new LogHelper(this);
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ @Override
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance.
+ *
+ * @return the shared instance.
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+}
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/src/org/eclipse/papyrus/uml/nattable/stereotype/display/tests/tests/AllTests.java b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/src/org/eclipse/papyrus/uml/nattable/stereotype/display/tests/tests/AllTests.java
new file mode 100644
index 00000000000..be48e78c391
--- /dev/null
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/src/org/eclipse/papyrus/uml/nattable/stereotype/display/tests/tests/AllTests.java
@@ -0,0 +1,26 @@
+/*****************************************************************************
+ * Copyright (c) 2015 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 FAUVERGUE (ALL4TEC) nicolas.fauvergue@all4tec.net - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.nattable.stereotype.display.tests.tests;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+import org.junit.runners.Suite.SuiteClasses;
+
+@RunWith(Suite.class)
+@SuiteClasses({
+ StereotypeDisplayTableTest.class
+})
+public class AllTests {
+ // JUnit 4 test suite
+}
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/src/org/eclipse/papyrus/uml/nattable/stereotype/display/tests/tests/StereotypeDisplayTableTest.java b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/src/org/eclipse/papyrus/uml/nattable/stereotype/display/tests/tests/StereotypeDisplayTableTest.java
new file mode 100644
index 00000000000..5e04ca5e24e
--- /dev/null
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/src/org/eclipse/papyrus/uml/nattable/stereotype/display/tests/tests/StereotypeDisplayTableTest.java
@@ -0,0 +1,592 @@
+/*****************************************************************************
+ * Copyright (c) 2015 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 FAUVERGUE (ALL4TEC) nicolas.fauvergue@all4tec.net - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.nattable.stereotype.display.tests.tests;
+
+import java.util.List;
+
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.papyrus.infra.core.resource.ModelSet;
+import org.eclipse.papyrus.infra.core.sasheditor.contentprovider.IPageManager;
+import org.eclipse.papyrus.infra.core.services.ServicesRegistry;
+import org.eclipse.papyrus.infra.core.utils.ServiceUtils;
+import org.eclipse.papyrus.infra.emf.utils.ServiceUtilsForEObject;
+import org.eclipse.papyrus.infra.nattable.common.editor.NatTableEditor;
+import org.eclipse.papyrus.infra.nattable.common.modelresource.PapyrusNattableModel;
+import org.eclipse.papyrus.infra.nattable.manager.table.INattableModelManager;
+import org.eclipse.papyrus.infra.nattable.manager.table.ITreeNattableModelManager;
+import org.eclipse.papyrus.infra.nattable.model.nattable.Table;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattableconfiguration.TableConfiguration;
+import org.eclipse.papyrus.infra.nattable.tree.CollapseAndExpandActionsEnum;
+import org.eclipse.papyrus.infra.nattable.utils.TableHelper;
+import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest;
+import org.eclipse.papyrus.junit.utils.DiagramUtils;
+import org.eclipse.papyrus.junit.utils.rules.PapyrusEditorFixture;
+import org.eclipse.papyrus.junit.utils.rules.PluginResource;
+import org.eclipse.papyrus.uml.diagram.common.stereotype.display.helper.StereotypeDisplayUtil;
+import org.eclipse.papyrus.uml.nattable.stereotype.display.tests.Activator;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.uml2.uml.Model;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.Rule;
+import org.junit.Test;
+
+/**
+ * This class allows to manage the tests of stereotype display table (creation, display and modification).
+ */
+@PluginResource("resources/StereotypeDisplayTableTests.di")
+public class StereotypeDisplayTableTest extends AbstractPapyrusTest {
+
+ /**
+ * The class diagram name.
+ */
+ private static final String CLASS_DIAGRAM_NAME = "ClassDiagram";
+
+ /**
+ * The component diagram name.
+ */
+ private static final String COMPONENT_DIAGRAM_NAME = "ComponentDiagram";
+
+ /**
+ * The class name.
+ */
+ private static final String CLASS1_NAME = "Class1";
+
+ /**
+ * The interface name.
+ */
+ private static final String INTERFACE1_NAME = "Interface1";
+
+ /**
+ * The component name.
+ */
+ private static final String COMPONENT1_NAME = "Component1";
+
+ /**
+ * The port name.
+ */
+ private static final String PORT1_NAME = "Port1";
+
+ /**
+ * The association name.
+ */
+ private static final String ASSOCIATION1_NAME = "Association1";
+
+ /**
+ * The time observation name.
+ */
+ private static final String TIME_OBSERVATION1_NAME = "TimeObservation1";
+
+ /**
+ * The URI of the table configuration.
+ */
+ private static final String TABLE_CONFIRURATION = "platform:/plugin/org.eclipse.papyrus.uml.nattable.stereotype.display/config/stereotype.nattableconfiguration";
+
+ /**
+ * The number of column in the stereotype display table.
+ */
+ private static final int COLUMN_NUMBER = 5;
+
+ /**
+ * The number of rows for the object with the 'human' stereotype applied.
+ */
+ private static final int NUMBER_ROWS_HUMAN_STEREOTYPE = 12;
+
+ /**
+ * The number of rows for the object with the 'animal' stereotype applied.
+ */
+ private static final int NUMBER_ROWS_ANIMAL_STEREOTYPE = 8;
+
+
+ /**
+ * The papyrus editor fixture.
+ */
+ @Rule
+ public final PapyrusEditorFixture editorFixture = new PapyrusEditorFixture();
+
+ /**
+ * The class existing in the model.
+ */
+ private org.eclipse.uml2.uml.Class class1 = null;
+
+ /**
+ * The interface existing in the model.
+ */
+ private org.eclipse.uml2.uml.Interface interface1 = null;
+
+ /**
+ * The port existing in the model.
+ */
+ private org.eclipse.uml2.uml.Port port1 = null;
+
+ /**
+ * The association existing in the model.
+ */
+ private org.eclipse.uml2.uml.Association association1 = null;
+
+ /**
+ * The time observation existing in the model.
+ */
+ private org.eclipse.uml2.uml.TimeObservation timeObservation1 = null;
+
+ /**
+ * The singleton instance.
+ */
+ private StereotypeDisplayUtil helper = StereotypeDisplayUtil.getInstance();
+
+
+ /**
+ * Constructor.
+ */
+ public StereotypeDisplayTableTest() {
+ super();
+ }
+
+ @Before
+ public void manageDiagram() {
+ // get all semantic element that will handled
+ final Model model = (Model) editorFixture.getModel();
+ Assert.assertNotNull("RootModel is null", model);
+
+ // Get the class and the interface in the model
+ class1 = (org.eclipse.uml2.uml.Class) model.getPackagedElement(CLASS1_NAME);
+ StringBuilder error = new StringBuilder(CLASS1_NAME);
+ error.append(" doesn't exist");
+ Assert.assertNotNull(error.toString(), class1);
+ interface1 = (org.eclipse.uml2.uml.Interface) model.getPackagedElement(INTERFACE1_NAME);
+ error = new StringBuilder(INTERFACE1_NAME);
+ error.append(" doesn't exist");
+ Assert.assertNotNull(error.toString(), interface1);
+ org.eclipse.uml2.uml.Component component1 = (org.eclipse.uml2.uml.Component) model.getPackagedElement(COMPONENT1_NAME);
+ error = new StringBuilder(COMPONENT1_NAME);
+ error.append(" doesn't exist");
+ Assert.assertNotNull(error.toString(), component1);
+ port1 = (org.eclipse.uml2.uml.Port) component1.getOwnedPort(PORT1_NAME, null);
+ error = new StringBuilder(PORT1_NAME);
+ error.append(" doesn't exist");
+ Assert.assertNotNull(error.toString(), port1);
+ association1 = (org.eclipse.uml2.uml.Association) model.getPackagedElement(ASSOCIATION1_NAME);
+ error = new StringBuilder(ASSOCIATION1_NAME);
+ error.append(" doesn't exist");
+ Assert.assertNotNull(error.toString(), association1);
+ timeObservation1 = (org.eclipse.uml2.uml.TimeObservation) model.getPackagedElement(TIME_OBSERVATION1_NAME);
+ error = new StringBuilder(TIME_OBSERVATION1_NAME);
+ error.append(" doesn't exist");
+ Assert.assertNotNull(error.toString(), timeObservation1);
+ }
+
+ /**
+ * This allow to test the stereotype display for the class object.
+ *
+ * @throws Exception
+ * The exception
+ */
+ @Test
+ public void testCreateStereotypedClassTable() throws Exception {
+ // Open the diagram
+ final Diagram mainDiagram = DiagramUtils.getNotationDiagram(editorFixture.getModelSet(), CLASS_DIAGRAM_NAME);
+ editorFixture.getPageManager().openPage(mainDiagram);
+ Assert.assertEquals("Current opened diagram is not the expected one", CLASS_DIAGRAM_NAME, mainDiagram.getName());
+
+ // Get the class view
+ final View class1View = DiagramUtils.findShape(mainDiagram, CLASS1_NAME);
+ Assert.assertNotNull("Class view not present", class1View);
+
+ // Select the class in the diagram
+ final EditPart classEP = editorFixture.findEditPart(class1);
+ editorFixture.select(classEP);
+
+ final ISelection selection = editorFixture.getActiveDiagramEditor().getSite().getSelectionProvider().getSelection();
+ final Object editorSelection = ((IStructuredSelection) selection).getFirstElement();
+
+ final StringBuilder error = new StringBuilder("The object selected is not the ");
+ error.append(CLASS1_NAME);
+ Assert.assertEquals(error.toString(), classEP, editorSelection);
+
+ // Create the table
+ final ITreeNattableModelManager manager = createTable(class1View);
+
+ // Check the columns
+ final List<?> columnElements = manager.getColumnElementsList();
+ Assert.assertEquals("The number of columns is not correct", COLUMN_NUMBER, columnElements.size());
+ StereotypeDisplayTableTestsUtils.checkColumns(columnElements);
+
+ // Check the rows elements
+ final List<?> rowElements = manager.getRowElementsList();
+ Assert.assertEquals("The number of rows is not correct", NUMBER_ROWS_HUMAN_STEREOTYPE, rowElements.size());
+ StereotypeDisplayTableTestsUtils.checkClassRows(rowElements, 0, NUMBER_ROWS_HUMAN_STEREOTYPE);
+
+ // Check the initial data in the table
+ StereotypeDisplayTableTestsUtils.checkInitialTableData(manager, 0, NUMBER_ROWS_HUMAN_STEREOTYPE);
+
+ // Try to modify some values and check its result
+ StereotypeDisplayTableTestsUtils.modifyHumanStereotypedValues(helper, manager, class1View, class1, 0);
+
+ // Reselect the main diagram page
+ editorFixture.getPageManager().selectPage(mainDiagram);
+ editorFixture.deselect(classEP);
+ editorFixture.flushDisplayEvents();
+ }
+
+ /**
+ * This allow to test the stereotype display for the interface object.
+ *
+ * @throws Exception
+ * The exception
+ */
+ @Test
+ public void testCreateStereotypedInterfaceTable() throws Exception {
+ // Open the diagram
+ final Diagram mainDiagram = DiagramUtils.getNotationDiagram(editorFixture.getModelSet(), CLASS_DIAGRAM_NAME);
+ editorFixture.getPageManager().openPage(mainDiagram);
+ Assert.assertEquals("Current opened diagram is not the expected one", CLASS_DIAGRAM_NAME, mainDiagram.getName());
+
+ // Get the interface view
+ final View interface1View = DiagramUtils.findShape(mainDiagram, INTERFACE1_NAME);
+ Assert.assertNotNull("Interface view not present", interface1View);
+
+ // Select the class in the diagram
+ final EditPart interfaceEP = editorFixture.findEditPart(interface1);
+ editorFixture.select(interfaceEP);
+
+ final ISelection selection = editorFixture.getActiveDiagramEditor().getSite().getSelectionProvider().getSelection();
+ final Object editorSelection = ((IStructuredSelection) selection).getFirstElement();
+
+ final StringBuilder error = new StringBuilder("The object selected is not the ");
+ error.append(INTERFACE1_NAME);
+ Assert.assertEquals(error.toString(), interfaceEP, editorSelection);
+
+ // Create the table
+ final ITreeNattableModelManager manager = createTable(interface1View);
+
+ // Check the columns
+ final List<?> columnElements = manager.getColumnElementsList();
+ Assert.assertEquals("The number of columns is not correct", COLUMN_NUMBER, columnElements.size());
+ StereotypeDisplayTableTestsUtils.checkColumns(columnElements);
+
+ // Check the rows elements
+ final List<?> rowElements = manager.getRowElementsList();
+ Assert.assertEquals("The number of rows is not correct", NUMBER_ROWS_ANIMAL_STEREOTYPE, rowElements.size());
+ StereotypeDisplayTableTestsUtils.checkInterfaceRows(rowElements, 0, NUMBER_ROWS_ANIMAL_STEREOTYPE);
+
+ // Check the initial data in the table
+ StereotypeDisplayTableTestsUtils.checkInitialTableData(manager, 0, NUMBER_ROWS_ANIMAL_STEREOTYPE);
+
+ // Try to modify some values and check its result
+ StereotypeDisplayTableTestsUtils.modifyAnimalStereotypedValues(helper, manager, interface1View, interface1, 0);
+
+ // Reselect the main diagram page
+ editorFixture.getPageManager().selectPage(mainDiagram);
+ editorFixture.deselect(interfaceEP);
+ editorFixture.flushDisplayEvents();
+ }
+
+ /**
+ * This allow to test the stereotype display for the multiple object.
+ *
+ * @throws Exception
+ * The exception
+ */
+ @Test
+ public void testCreateStereotypedClassAndInterfaceTable() throws Exception {
+ // Open the diagram
+ final Diagram mainDiagram = DiagramUtils.getNotationDiagram(editorFixture.getModelSet(), CLASS_DIAGRAM_NAME);
+ editorFixture.getPageManager().openPage(mainDiagram);
+ Assert.assertEquals("Current opened diagram is not the expected one", CLASS_DIAGRAM_NAME, mainDiagram.getName());
+
+ // Get the interface view
+ final View class1View = DiagramUtils.findShape(mainDiagram, CLASS1_NAME);
+ Assert.assertNotNull("Class view not present", class1View);
+ final View interface1View = DiagramUtils.findShape(mainDiagram, INTERFACE1_NAME);
+ Assert.assertNotNull("Interface view not present", interface1View);
+
+ // Select the class in the diagram
+ final EditPart classEP = editorFixture.findEditPart(class1);
+ editorFixture.select(classEP);
+ final EditPart interfaceEP = editorFixture.findEditPart(interface1);
+ editorFixture.select(interfaceEP);
+
+ // Create the table
+ final ITreeNattableModelManager manager = createTable(class1View);
+
+ // Check the columns
+ final List<?> columnElements = manager.getColumnElementsList();
+ Assert.assertEquals("The number of columns is not correct", COLUMN_NUMBER, columnElements.size());
+ StereotypeDisplayTableTestsUtils.checkColumns(columnElements);
+
+ // Check the rows elements
+ final List<?> rowElements = manager.getRowElementsList();
+ Assert.assertEquals("The number of rows is not correct", NUMBER_ROWS_HUMAN_STEREOTYPE + NUMBER_ROWS_ANIMAL_STEREOTYPE, rowElements.size());
+ StereotypeDisplayTableTestsUtils.checkClassRows(rowElements, 0, NUMBER_ROWS_HUMAN_STEREOTYPE);
+ StereotypeDisplayTableTestsUtils.checkInterfaceRows(rowElements, NUMBER_ROWS_HUMAN_STEREOTYPE, NUMBER_ROWS_ANIMAL_STEREOTYPE);
+
+ // Check the initial data in the table
+ StereotypeDisplayTableTestsUtils.checkInitialTableData(manager, 0, NUMBER_ROWS_HUMAN_STEREOTYPE);
+ StereotypeDisplayTableTestsUtils.checkInitialTableData(manager, NUMBER_ROWS_HUMAN_STEREOTYPE, NUMBER_ROWS_ANIMAL_STEREOTYPE);
+
+ // Try to modify some values and check its result
+ StereotypeDisplayTableTestsUtils.modifyHumanStereotypedValues(helper, manager, class1View, class1, 0);
+ StereotypeDisplayTableTestsUtils.modifyAnimalStereotypedValues(helper, manager, interface1View, interface1, NUMBER_ROWS_HUMAN_STEREOTYPE);
+
+ // Reselect the main diagram page
+ editorFixture.getPageManager().selectPage(mainDiagram);
+ editorFixture.deselect(classEP);
+ editorFixture.deselect(interfaceEP);
+ editorFixture.flushDisplayEvents();
+ }
+
+ /**
+ * This allow to test the stereotype display for the interface object.
+ *
+ * @throws Exception
+ * The exception
+ */
+ @Test
+ public void testCreateStereotypedPortTable() throws Exception {
+ // Open the diagram
+ final Diagram mainDiagram = DiagramUtils.getNotationDiagram(editorFixture.getModelSet(), COMPONENT_DIAGRAM_NAME);
+ editorFixture.getPageManager().openPage(mainDiagram);
+ Assert.assertEquals("Current opened diagram is not the expected one", COMPONENT_DIAGRAM_NAME, mainDiagram.getName());
+
+ // Get the interface view
+ final View component1View = DiagramUtils.findShape(mainDiagram, COMPONENT1_NAME);
+ Assert.assertNotNull("Component view not present", component1View);
+ final View port1View = DiagramUtils.findShape(component1View, PORT1_NAME);
+ Assert.assertNotNull("Port view not present", port1View);
+
+ // Select the class in the diagram
+ final EditPart portEP = editorFixture.findEditPart(port1);
+ editorFixture.select(portEP);
+
+ final ISelection selection = editorFixture.getActiveDiagramEditor().getSite().getSelectionProvider().getSelection();
+ final Object editorSelection = ((IStructuredSelection) selection).getFirstElement();
+ final StringBuilder error = new StringBuilder("The object selected is not the ");
+ error.append(PORT1_NAME);
+ Assert.assertEquals(error.toString(), portEP, editorSelection);
+
+ // Create the table
+ final ITreeNattableModelManager manager = createTable(port1View);
+
+ // Check the columns
+ final List<?> columnElements = manager.getColumnElementsList();
+ Assert.assertEquals("The number of columns is not correct", COLUMN_NUMBER, columnElements.size());
+ StereotypeDisplayTableTestsUtils.checkColumns(columnElements);
+
+ // Check the rows elements
+ final List<?> rowElements = manager.getRowElementsList();
+ Assert.assertEquals("The number of rows is not correct", NUMBER_ROWS_HUMAN_STEREOTYPE, rowElements.size());
+ StereotypeDisplayTableTestsUtils.checkPortRows(rowElements, 0, NUMBER_ROWS_HUMAN_STEREOTYPE);
+
+ // Check the initial data in the table
+ StereotypeDisplayTableTestsUtils.checkInitialTableData(manager, 0, NUMBER_ROWS_HUMAN_STEREOTYPE, false, false, true);
+
+ // Try to modify some values and check its result
+ StereotypeDisplayTableTestsUtils.modifyHumanStereotypedValues(helper, manager, port1View, port1, 0);
+
+ // Reselect the main diagram page
+ editorFixture.getPageManager().selectPage(mainDiagram);
+ editorFixture.deselect(portEP);
+ editorFixture.flushDisplayEvents();
+ }
+
+ /**
+ * This allow to test the stereotype display for the association object.
+ *
+ * @throws Exception
+ * The exception
+ */
+ @Test
+ public void testCreateStereotypedAssociationTable() throws Exception {
+ // Open the diagram
+ final Diagram mainDiagram = DiagramUtils.getNotationDiagram(editorFixture.getModelSet(), CLASS_DIAGRAM_NAME);
+ editorFixture.getPageManager().openPage(mainDiagram);
+ Assert.assertEquals("Current opened diagram is not the expected one", CLASS_DIAGRAM_NAME, mainDiagram.getName());
+
+ // Get the interface view
+ final View associationView = DiagramUtils.findEdge(mainDiagram, ASSOCIATION1_NAME);
+ Assert.assertNotNull("Association view not present", associationView);
+
+ // Select the class in the diagram
+ final EditPart associationEP = editorFixture.findEditPart(association1);
+ editorFixture.select(associationEP);
+
+ final ISelection selection = editorFixture.getActiveDiagramEditor().getSite().getSelectionProvider().getSelection();
+ final Object editorSelection = ((IStructuredSelection) selection).getFirstElement();
+ final StringBuilder error = new StringBuilder("The object selected is not the ");
+ error.append(ASSOCIATION1_NAME);
+ Assert.assertEquals(error.toString(), associationEP, editorSelection);
+
+ // Create the table
+ final ITreeNattableModelManager manager = createTable(associationView);
+
+ // Check the columns
+ final List<?> columnElements = manager.getColumnElementsList();
+ Assert.assertEquals("The number of columns is not correct", COLUMN_NUMBER, columnElements.size());
+ StereotypeDisplayTableTestsUtils.checkColumns(columnElements);
+
+ // Check the rows elements
+ final List<?> rowElements = manager.getRowElementsList();
+ Assert.assertEquals("The number of rows is not correct", NUMBER_ROWS_ANIMAL_STEREOTYPE, rowElements.size());
+ StereotypeDisplayTableTestsUtils.checkAssociationRows(rowElements, 0, NUMBER_ROWS_ANIMAL_STEREOTYPE);
+
+ // Check the initial data in the table
+ StereotypeDisplayTableTestsUtils.checkInitialTableData(manager, 0, NUMBER_ROWS_ANIMAL_STEREOTYPE, true, false, true);
+
+ // Try to modify some values and check its result
+ StereotypeDisplayTableTestsUtils.modifyAnimalStereotypedValues(helper, manager, associationView, association1, 0);
+
+ // Reselect the main diagram page
+ editorFixture.getPageManager().selectPage(mainDiagram);
+ editorFixture.deselect(associationEP);
+ editorFixture.flushDisplayEvents();
+ }
+
+ /**
+ * This allow to test the stereotype display for the time observation object.
+ *
+ * @throws Exception
+ * The exception
+ */
+ @Test
+ public void testCreateStereotypedTimeObservationTable() throws Exception {
+ // Open the diagram
+ final Diagram mainDiagram = DiagramUtils.getNotationDiagram(editorFixture.getModelSet(), CLASS_DIAGRAM_NAME);
+ editorFixture.getPageManager().openPage(mainDiagram);
+ Assert.assertEquals("Current opened diagram is not the expected one", CLASS_DIAGRAM_NAME, mainDiagram.getName());
+
+ // Get the interface view
+ final View timeObservationView = DiagramUtils.findShape(mainDiagram, TIME_OBSERVATION1_NAME);
+ Assert.assertNotNull("Time Observation view not present", timeObservationView);
+
+ // Select the class in the diagram
+ final EditPart timeObservationEP = editorFixture.findEditPart(timeObservation1);
+ editorFixture.select(timeObservationEP);
+
+ final ISelection selection = editorFixture.getActiveDiagramEditor().getSite().getSelectionProvider().getSelection();
+ final Object editorSelection = ((IStructuredSelection) selection).getFirstElement();
+ final StringBuilder error = new StringBuilder("The object selected is not the ");
+ error.append(TIME_OBSERVATION1_NAME);
+ Assert.assertEquals(error.toString(), timeObservationEP, editorSelection);
+
+ // Create the table
+ final ITreeNattableModelManager manager = createTable(timeObservationView);
+
+ // Check the columns
+ final List<?> columnElements = manager.getColumnElementsList();
+ Assert.assertEquals("The number of columns is not correct", COLUMN_NUMBER, columnElements.size());
+ StereotypeDisplayTableTestsUtils.checkColumns(columnElements);
+
+ // Check the rows elements
+ final List<?> rowElements = manager.getRowElementsList();
+ Assert.assertEquals("The number of rows is not correct", NUMBER_ROWS_ANIMAL_STEREOTYPE, rowElements.size());
+ StereotypeDisplayTableTestsUtils.checkTimeObservationRows(rowElements, 0, NUMBER_ROWS_ANIMAL_STEREOTYPE);
+
+ // Check the initial data in the table
+ StereotypeDisplayTableTestsUtils.checkInitialTableData(manager, 0, NUMBER_ROWS_ANIMAL_STEREOTYPE);
+
+ // Try to modify some values and check its result
+ StereotypeDisplayTableTestsUtils.modifyAnimalStereotypedValues(helper, manager, timeObservationView, association1, 0);
+
+ // Reselect the main diagram page
+ editorFixture.getPageManager().selectPage(mainDiagram);
+ editorFixture.deselect(timeObservationEP);
+ editorFixture.flushDisplayEvents();
+ }
+
+ /**
+ * This allow to create the table and the nattable manager.
+ *
+ * @param context The context of the table.
+ * @return The created nattable manager.
+ * @throws Exception The exception.
+ */
+ public ITreeNattableModelManager createTable(final View context) throws Exception{
+ ITreeNattableModelManager manager = null;
+
+ // Create the table from the selected class in the diagram
+ createEditorTable(context);
+ editorFixture.flushDisplayEvents();
+
+ // The new editor is the table
+ final IEditorPart timeObservationTableEditor = editorFixture.getEditor().getActiveEditor();
+ Assert.assertTrue(timeObservationTableEditor instanceof NatTableEditor);
+ manager = (ITreeNattableModelManager) timeObservationTableEditor.getAdapter(INattableModelManager.class);
+
+ // expand the table
+ manager.doCollapseExpandAction(CollapseAndExpandActionsEnum.EXPAND_ALL, null);
+ editorFixture.flushDisplayEvents();
+
+ return manager;
+ }
+
+ /**
+ * Create a model identifying the editor. This model will be saved with the sash.
+ *
+ * @param view
+ * The view context of the table.
+ * @throws Exception
+ * The exception.
+ */
+ protected void createEditorTable(final View view) throws Exception {
+ final ServicesRegistry serviceRegistry = ServiceUtilsForEObject.getInstance().getServiceRegistry(view);
+ final ModelSet modelSet = ServiceUtils.getInstance().getModelSet(serviceRegistry);
+ final TableConfiguration configuration = getDefaultTableEditorConfiguration(modelSet);
+ Assert.assertNotNull(configuration);
+
+ final TransactionalEditingDomain domain = ServiceUtils.getInstance().getTransactionalEditingDomain(serviceRegistry);
+ domain.getCommandStack().execute(new RecordingCommand(domain) {
+ @Override
+ protected void doExecute() {
+ Table editorModel;
+ try {
+ editorModel = TableHelper.createTable(configuration, view, configuration.getName(), description);
+ // Save the model in the associated resource
+ final PapyrusNattableModel model = (PapyrusNattableModel) modelSet.getModelChecked(PapyrusNattableModel.MODEL_ID);
+ model.addPapyrusTable(editorModel);
+
+ // Get the manager allowing to add/open new editor.
+ final IPageManager pageMngr = ServiceUtils.getInstance().getIPageManager(serviceRegistry);
+ pageMngr.openPage(editorModel);
+ } catch (Exception e) {
+ Activator.log.error(e);
+ }
+ }
+ });
+ }
+
+ /**
+ * Get the configuration to use for the new table
+ *
+ * @param resourceSet
+ * The resource set.
+ * @return The configuration to use for the new table
+ */
+ protected TableConfiguration getDefaultTableEditorConfiguration(final ResourceSet resourceSet) {
+ final Resource resource = resourceSet.getResource(URI.createURI(TABLE_CONFIRURATION), true);
+ TableConfiguration tableConfiguration = null;
+ if (resource.getContents().get(0) instanceof TableConfiguration) {
+ tableConfiguration = (TableConfiguration) resource.getContents().get(0);
+ }
+ return tableConfiguration;
+ }
+}
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/src/org/eclipse/papyrus/uml/nattable/stereotype/display/tests/tests/StereotypeDisplayTableTestsUtils.java b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/src/org/eclipse/papyrus/uml/nattable/stereotype/display/tests/tests/StereotypeDisplayTableTestsUtils.java
new file mode 100644
index 00000000000..1b9147c8e12
--- /dev/null
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotype.display.tests/src/org/eclipse/papyrus/uml/nattable/stereotype/display/tests/tests/StereotypeDisplayTableTestsUtils.java
@@ -0,0 +1,659 @@
+/*****************************************************************************
+ * Copyright (c) 2015 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 FAUVERGUE (ALL4TEC) nicolas.fauvergue@all4tec.net - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.nattable.stereotype.display.tests.tests;
+
+import java.util.List;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.notation.DecorationNode;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.nattable.manager.table.ITreeNattableModelManager;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxis.EOperationAxis;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxis.EStructuralFeatureAxis;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxis.IAxis;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxisconfiguration.TreeFillingConfiguration;
+import org.eclipse.papyrus.uml.diagram.common.stereotype.display.helper.StereotypeDisplayUtil;
+import org.eclipse.papyrus.uml.tools.utils.StereotypeUtil;
+import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.Property;
+import org.eclipse.uml2.uml.Stereotype;
+import org.eclipse.uml2.uml.UMLPackage;
+import org.junit.Assert;
+
+/**
+ * This class allows to define the methods to check the table data.
+ */
+public class StereotypeDisplayTableTestsUtils {
+
+ /**
+ * The class name.
+ */
+ private static final String CLASS1_NAME = "Class1";
+
+ /**
+ * The interface name.
+ */
+ private static final String INTERFACE1_NAME = "Interface1";
+
+ /**
+ * The port name.
+ */
+ private static final String PORT1_NAME = "Port1";
+
+ /**
+ * The association name.
+ */
+ private static final String ASSOCIATION1_NAME = "Association1";
+
+ /**
+ * The time observation name.
+ */
+ private static final String TIME_OBSERVATION1_NAME = "TimeObservation1";
+
+ /**
+ * The human stereotype name.
+ */
+ private static final String HUMAN_STEREOTYPE = "Human";
+
+ /**
+ * The animal stereotype name.
+ */
+ private static final String ANIMAL_STEREOTYPE = "Animal";
+
+ /**
+ * The non available value.
+ */
+ private static final String NA = "N/A";
+
+ /**
+ * Check the columns.
+ *
+ * @param columnElements
+ * The column elements.
+ * @throws Exception
+ * The exception.
+ */
+ public static void checkColumns(final List<?> columnElements) throws Exception {
+ int indexColumn = 0;
+ final IAxis firstColumn = (IAxis) columnElements.get(indexColumn);
+ final Object firstColumnRepresentedElement = firstColumn.getElement();
+ Assert.assertEquals("stereotype_display_properties:/nameDepth", firstColumnRepresentedElement);
+ indexColumn++;
+
+ final IAxis secondColumn = (IAxis) columnElements.get(indexColumn);
+ final Object secondColumnRepresentedElement = secondColumn.getElement();
+ Assert.assertEquals("stereotype_display_properties:/isDisplayed", secondColumnRepresentedElement);
+ indexColumn++;
+
+ final IAxis thirdColumn = (IAxis) columnElements.get(indexColumn);
+ final Object thirdColumnRepresentedElement = thirdColumn.getElement();
+ Assert.assertEquals("stereotype_display_properties:/isDisplayedInBraces", thirdColumnRepresentedElement);
+ indexColumn++;
+
+ final IAxis fourthColumn = (IAxis) columnElements.get(indexColumn);
+ final Object fourthColumnRepresentedElement = fourthColumn.getElement();
+ Assert.assertEquals("stereotype_display_properties:/isDisplayedInComment", fourthColumnRepresentedElement);
+ indexColumn++;
+
+ final IAxis fifthColumn = (IAxis) columnElements.get(indexColumn);
+ final Object fifthColumnRepresentedElement = fifthColumn.getElement();
+ Assert.assertEquals("stereotype_display_properties:/isDisplayedInCompartment", fifthColumnRepresentedElement);
+ }
+
+ /**
+ * Check the rows concerning the Class object.
+ *
+ * @param rowElements
+ * The row elements.
+ * @param firstPosition
+ * The position of the first object to inspect.
+ * @param rowsNumberToCheck
+ * The rows number to check.
+ * @throws Exception
+ * The exception.
+ */
+ public static void checkClassRows(final List<?> rowElements, final int firstPosition, final int rowsNumberToCheck) throws Exception {
+ // Check the generic rows
+ checkGenericRows(rowElements, firstPosition, rowsNumberToCheck, HUMAN_STEREOTYPE);
+
+ // Check the specific row
+ int indexRow = firstPosition + 2;
+ final IAxis thirdRow = (IAxis) rowElements.get(indexRow);
+ final Object thirdRowRepresentedElement = thirdRow.getElement();
+ Assert.assertEquals(UMLPackage.eINSTANCE.getClass_(), ((EObject) thirdRowRepresentedElement).eClass());
+ Assert.assertEquals(CLASS1_NAME, ((org.eclipse.uml2.uml.Class) thirdRowRepresentedElement).getName());
+ }
+
+ /**
+ * Check the rows for the interface object.
+ *
+ * @param rowElements
+ * The rows elements.
+ * @param firstPosition
+ * The position of the first object to inspect.
+ * @param rowsNumberToCheck
+ * The rows number to check.
+ * @throws Exception
+ * The exception.
+ */
+ public static void checkInterfaceRows(final List<?> rowElements, final int firstPosition, final int rowsNumberToCheck) throws Exception {
+ // Check the generic rows
+ checkGenericRows(rowElements, firstPosition, rowsNumberToCheck, ANIMAL_STEREOTYPE);
+
+ // Check the specific row
+ int indexRow = firstPosition + 2;
+ final IAxis thirdRow = (IAxis) rowElements.get(indexRow);
+ final Object thirdRowRepresentedElement = thirdRow.getElement();
+ Assert.assertEquals(UMLPackage.eINSTANCE.getInterface(), ((EObject) thirdRowRepresentedElement).eClass());
+ Assert.assertEquals(INTERFACE1_NAME, ((org.eclipse.uml2.uml.Interface) thirdRowRepresentedElement).getName());
+ }
+
+ /**
+ * Check the rows concerning the Class object.
+ *
+ * @param rowElements
+ * The row elements.
+ * @param firstPosition
+ * The position of the first object to inspect.
+ * @param rowsNumberToCheck
+ * The rows number to check.
+ * @throws Exception
+ * The exception.
+ */
+ public static void checkPortRows(final List<?> rowElements, final int firstPosition, final int rowsNumberToCheck) throws Exception {
+ // Check the generic rows
+ checkGenericRows(rowElements, firstPosition, rowsNumberToCheck, HUMAN_STEREOTYPE);
+
+ // Check the specific row
+ int indexRow = firstPosition + 2;
+ final IAxis thirdRow = (IAxis) rowElements.get(indexRow);
+ final Object thirdRowRepresentedElement = thirdRow.getElement();
+ Assert.assertEquals(UMLPackage.eINSTANCE.getPort(), ((EObject) thirdRowRepresentedElement).eClass());
+ Assert.assertEquals(PORT1_NAME, ((org.eclipse.uml2.uml.Port) thirdRowRepresentedElement).getName());
+ }
+
+ /**
+ * Check the rows concerning the Class object.
+ *
+ * @param rowElements
+ * The row elements.
+ * @param firstPosition
+ * The position of the first object to inspect.
+ * @param rowsNumberToCheck
+ * The rows number to check.
+ * @throws Exception
+ * The exception.
+ */
+ public static void checkAssociationRows(final List<?> rowElements, final int firstPosition, final int rowsNumberToCheck) throws Exception {
+ // Check the generic rows
+ checkGenericRows(rowElements, firstPosition, rowsNumberToCheck, ANIMAL_STEREOTYPE);
+
+ // Check the specific row
+ int indexRow = firstPosition + 2;
+ final IAxis thirdRow = (IAxis) rowElements.get(indexRow);
+ final Object thirdRowRepresentedElement = thirdRow.getElement();
+ Assert.assertEquals(UMLPackage.eINSTANCE.getAssociation(), ((EObject) thirdRowRepresentedElement).eClass());
+ Assert.assertEquals(ASSOCIATION1_NAME, ((org.eclipse.uml2.uml.Association) thirdRowRepresentedElement).getName());
+ }
+
+ /**
+ * Check the rows concerning the Class object.
+ *
+ * @param rowElements
+ * The row elements.
+ * @param firstPosition
+ * The position of the first object to inspect.
+ * @param rowsNumberToCheck
+ * The rows number to check.
+ * @throws Exception
+ * The exception.
+ */
+ public static void checkTimeObservationRows(final List<?> rowElements, final int firstPosition, final int rowsNumberToCheck) throws Exception {
+ // Check the generic rows
+ checkGenericRows(rowElements, firstPosition, rowsNumberToCheck, ANIMAL_STEREOTYPE);
+
+ // Check the specific row
+ int indexRow = firstPosition + 2;
+ final IAxis thirdRow = (IAxis) rowElements.get(indexRow);
+ final Object thirdRowRepresentedElement = thirdRow.getElement();
+ Assert.assertEquals(UMLPackage.eINSTANCE.getTimeObservation(), ((EObject) thirdRowRepresentedElement).eClass());
+ Assert.assertEquals(TIME_OBSERVATION1_NAME, ((org.eclipse.uml2.uml.TimeObservation) thirdRowRepresentedElement).getName());
+ }
+
+ /**
+ * Check the generic rows for the stereotype display table.
+ *
+ * @param rowElements
+ * The row elements.
+ * @param firstPosition
+ * The position of the first object to inspect.
+ * @param rowsNumberToCheck
+ * The rows number to check.
+ * @param stereotypeNameApplied
+ * The name of the stereotype applied.
+ * @throws Exception
+ * The exception.
+ */
+ private static void checkGenericRows(final List<?> rowElements, final int firstPosition, final int rowsNumberToCheck, final String stereotypeNameApplied) throws Exception {
+ int indexRow = firstPosition;
+ final IAxis firstRow = (IAxis) rowElements.get(indexRow);
+ final Object firstRowRepresentedElement = firstRow.getElement();
+ Assert.assertTrue("The first row is not a view", firstRowRepresentedElement instanceof View);
+ indexRow++;
+
+ final IAxis secondRow = (IAxis) rowElements.get(indexRow);
+ final Object secondRowRepresentedElement = secondRow.getElement();
+ Assert.assertTrue(secondRowRepresentedElement instanceof TreeFillingConfiguration);
+ final IAxis secondAxis = ((TreeFillingConfiguration) secondRowRepresentedElement).getAxisUsedAsAxisProvider();
+ Assert.assertTrue(secondAxis instanceof EStructuralFeatureAxis);
+ Assert.assertEquals(NotationPackage.eINSTANCE.getView_Element(), secondAxis.getElement());
+ indexRow++;
+
+ // The third row is specific, don't check it here
+ indexRow++;
+
+ final IAxis fourthRow = (IAxis) rowElements.get(indexRow);
+ final Object fourthRowRepresentedElement = fourthRow.getElement();
+ Assert.assertTrue(fourthRowRepresentedElement instanceof TreeFillingConfiguration);
+ final IAxis fourthAxis = ((TreeFillingConfiguration) fourthRowRepresentedElement).getAxisUsedAsAxisProvider();
+ Assert.assertTrue(fourthAxis instanceof EOperationAxis);
+ Assert.assertEquals(UMLPackage.eINSTANCE.getElement__GetAppliedStereotypes(), fourthAxis.getElement());
+ indexRow++;
+
+ final IAxis fifthRow = (IAxis) rowElements.get(indexRow);
+ final Object fifthRowRepresentedElement = fifthRow.getElement();
+ Assert.assertEquals(UMLPackage.eINSTANCE.getStereotype(), ((EObject) fifthRowRepresentedElement).eClass());
+ Assert.assertEquals(stereotypeNameApplied, ((org.eclipse.uml2.uml.Stereotype) fifthRowRepresentedElement).getName());
+ indexRow++;
+
+ final IAxis sixthRow = (IAxis) rowElements.get(indexRow);
+ final Object sixthRowRepresentedElement = sixthRow.getElement();
+ Assert.assertTrue(sixthRowRepresentedElement instanceof TreeFillingConfiguration);
+ final IAxis sixthAxis = ((TreeFillingConfiguration) sixthRowRepresentedElement).getAxisUsedAsAxisProvider();
+ Assert.assertTrue(sixthAxis instanceof EOperationAxis);
+ Assert.assertEquals(UMLPackage.eINSTANCE.getClassifier__GetAllAttributes(), sixthAxis.getElement());
+ indexRow++;
+
+ for (; indexRow < firstPosition + rowsNumberToCheck; indexRow++) {
+ final IAxis lastRow = (IAxis) rowElements.get(indexRow);
+ final Object lastRowRepresentedElement = lastRow.getElement();
+ final StringBuilder errorMessage = new StringBuilder("The object at row ");
+ errorMessage.append(indexRow);
+ errorMessage.append(" is not a property");
+ Assert.assertEquals(errorMessage.toString(), UMLPackage.eINSTANCE.getProperty(), ((EObject) lastRowRepresentedElement).eClass());
+ }
+ }
+
+ /**
+ * Check the initial data in the table.
+ *
+ * @param manager
+ * The tree table model manager.
+ * @param firstPosition
+ * The first position which one to check.
+ * @param rowsNumberToCheck
+ * The number of rows to check.
+ * @throws Exception
+ * The exception.
+ */
+ public static void checkInitialTableData(final ITreeNattableModelManager manager, final int firstPosition, final int rowsNumberToCheck) throws Exception {
+ checkInitialTableData(manager, firstPosition, rowsNumberToCheck, false, false, false);
+ }
+
+ /**
+ * Check the initial data in the table.
+ *
+ * @param manager
+ * The tree table model manager.
+ * @param firstPosition
+ * The first position which one to check.
+ * @param rowsNumberToCheck
+ * The number of rows to check.
+ * @param isBracesNA
+ * Boolean to determinate if the column 'In Braces' fill be filled by 'N/A' value.
+ * @param isCommentNA
+ * Boolean to determinate if the column 'In Comment' fill be filled by 'N/A' value.
+ * @param isCompartmentNA
+ * Boolean to determinate if the column 'In Compartment' fill be filled by 'N/A' value.
+ * @throws Exception
+ * The exception.
+ */
+ public static void checkInitialTableData(final ITreeNattableModelManager manager, final int firstPosition, final int rowsNumberToCheck, final boolean isBracesNA, final boolean isCommentNA, final boolean isCompartmentNA) throws Exception {
+ // Check name depth
+ int columnIndex = 0;
+ for (int rowIndex = firstPosition; rowIndex < firstPosition + rowsNumberToCheck; rowIndex++) {
+ final Object depthValue = manager.getDataValue(columnIndex, rowIndex);
+ // The depth value is initialized only for the Stereotype object
+ if ((firstPosition + 4) == rowIndex) {
+ final StringBuilder errorMessage = new StringBuilder("The initial value of depth will be 'none' for row ");
+ errorMessage.append(rowIndex);
+ Assert.assertEquals(errorMessage.toString() + rowIndex, "none", depthValue);
+ } else {
+ final StringBuilder errorMessage = new StringBuilder("The depth value won't be initialized for row ");
+ errorMessage.append(rowIndex);
+ Assert.assertTrue(errorMessage.toString(), depthValue instanceof String);
+ Assert.assertTrue(errorMessage.toString(), ((String) depthValue).isEmpty());
+ }
+ }
+
+ // Check Visible
+ columnIndex++;
+ for (int rowIndex = firstPosition; rowIndex < firstPosition + rowsNumberToCheck; rowIndex++) {
+ final Object visibleValue = manager.getDataValue(columnIndex, rowIndex);
+ if ((firstPosition + 4) == rowIndex) {
+ final StringBuilder errorMessage = new StringBuilder("The visible display value will be true by intiialisation for row ");
+ errorMessage.append(rowIndex);
+ Assert.assertEquals(errorMessage.toString(), true, visibleValue);
+ } else {
+ final StringBuilder errorMessage = new StringBuilder("The visible display value won't be initialized for row ");
+ errorMessage.append(rowIndex);
+ Assert.assertTrue(errorMessage.toString(), visibleValue instanceof String);
+ Assert.assertTrue(errorMessage.toString(), ((String) visibleValue).isEmpty());
+ }
+ }
+
+ // Check Braces
+ checkInitialBracesColumn(manager, firstPosition, rowsNumberToCheck, isBracesNA);
+
+ // Check Comment
+ checkInitialCommentColumn(manager, firstPosition, rowsNumberToCheck, isCommentNA);
+
+ // Check Compartment
+ checkInitialCompartmentColumn(manager, firstPosition, rowsNumberToCheck, isCompartmentNA);
+ }
+
+ /**
+ * Check the initial data in the 'In Braces' column.
+ *
+ * @param manager
+ * The tree table model manager.
+ * @param firstPosition
+ * The first position which one to check.
+ * @param rowsNumberToCheck
+ * The number of rows to check.
+ * @param isBracesNA
+ * Boolean to determinate if the column 'In Braces' fill be filled by 'N/A' value.
+ * @throws Exception
+ * The exception.
+ */
+ private static void checkInitialBracesColumn(final ITreeNattableModelManager manager, final int firstPosition, final int rowsNumberToCheck, final boolean isBracesNA) throws Exception {
+ // Check Braces
+ int columnIndex = 2;
+ for (int rowIndex = firstPosition; rowIndex < firstPosition + rowsNumberToCheck; rowIndex++) {
+ final Object braceValue = manager.getDataValue(columnIndex, rowIndex);
+ if ((firstPosition + 4) == rowIndex || (firstPosition + 6) <= rowIndex) {
+ Object valueToCheck = true;
+ if (isBracesNA){
+ valueToCheck = NA;
+ }else if ((firstPosition + 4) == rowIndex) {
+ valueToCheck = false;
+ }
+
+ final StringBuilder errorMessage = new StringBuilder("The braces display value will be initiazed by '");
+ errorMessage.append(valueToCheck);
+ errorMessage.append("' value for row ");
+ errorMessage.append(rowIndex);
+ Assert.assertEquals(errorMessage.toString(), valueToCheck, braceValue);
+ } else {
+ final StringBuilder errorMessage = new StringBuilder("The braces display value won't be initialized for row ");
+ errorMessage.append(rowIndex);
+ Assert.assertTrue(errorMessage.toString(), braceValue instanceof String);
+ Assert.assertTrue(errorMessage.toString(), ((String) braceValue).isEmpty());
+ }
+ }
+ }
+
+ /**
+ * Check the initial data in the 'In Comment' column.
+ *
+ * @param manager
+ * The tree table model manager.
+ * @param firstPosition
+ * The first position which one to check.
+ * @param rowsNumberToCheck
+ * The number of rows to check.
+ * @param isCommentNA
+ * Boolean to determinate if the column 'In Comment' fill be filled by 'N/A' value.
+ * @throws Exception
+ * The exception.
+ */
+ private static void checkInitialCommentColumn(final ITreeNattableModelManager manager, final int firstPosition, final int rowsNumberToCheck, final boolean isCommentNA) throws Exception {
+ // Check Comment
+ int columnIndex = 3;
+ for (int rowIndex = firstPosition; rowIndex < firstPosition + rowsNumberToCheck; rowIndex++) {
+ final Object commentValue = manager.getDataValue(columnIndex, rowIndex);
+ if ((firstPosition + 4) == rowIndex || (firstPosition + 6) <= rowIndex) {
+ Object valueToCheck = true;
+ if (isCommentNA){
+ valueToCheck = NA;
+ }else if ((firstPosition + 4) == rowIndex) {
+ valueToCheck = false;
+ }
+
+ final StringBuilder errorMessage = new StringBuilder("The comment display value will be initiazed by '");
+ errorMessage.append(valueToCheck);
+ errorMessage.append("' value for row ");
+ errorMessage.append(rowIndex);
+ Assert.assertEquals(errorMessage.toString(), valueToCheck, commentValue);
+ } else {
+ final StringBuilder errorMessage = new StringBuilder("The comment display value won't be initialized for row ");
+ errorMessage.append(rowIndex);
+ Assert.assertTrue(errorMessage.toString(), commentValue instanceof String);
+ Assert.assertTrue(errorMessage.toString(), ((String) commentValue).isEmpty());
+ }
+ }
+ }
+
+ /**
+ * Check the initial data in the 'In Compartment' column.
+ *
+ * @param manager
+ * The tree table model manager.
+ * @param firstPosition
+ * The first position which one to check.
+ * @param rowsNumberToCheck
+ * The number of rows to check.
+ * @param isCompartmentNA
+ * Boolean to determinate if the column 'In Compartment' fill be filled by 'N/A' value.
+ * @throws Exception
+ * The exception.
+ */
+ private static void checkInitialCompartmentColumn(final ITreeNattableModelManager manager, final int firstPosition, final int rowsNumberToCheck, final boolean isCompartmentNA) throws Exception {
+ // Check Compartment
+ int columnIndex = 4;
+ for (int rowIndex = firstPosition; rowIndex < firstPosition + rowsNumberToCheck; rowIndex++) {
+ final Object compartmentValue = manager.getDataValue(columnIndex, rowIndex);
+ if ((firstPosition + 4) == rowIndex || (firstPosition + 6) <= rowIndex) {
+ Object valueToCheck = true;
+ if (isCompartmentNA){
+ valueToCheck = NA;
+ }else if ((firstPosition + 4) == rowIndex) {
+ valueToCheck = false;
+ }
+
+ final StringBuilder errorMessage = new StringBuilder("The compartment display value will be initiazed by '");
+ errorMessage.append(valueToCheck);
+ errorMessage.append("' value for row ");
+ errorMessage.append(rowIndex);
+ Assert.assertEquals(errorMessage.toString(), valueToCheck, compartmentValue);
+ } else {
+ final StringBuilder errorMessage = new StringBuilder("The compartment display value won't be initialized for row ");
+ errorMessage.append(rowIndex);
+ Assert.assertTrue(errorMessage.toString(), compartmentValue instanceof String);
+ Assert.assertTrue(errorMessage.toString(), ((String) compartmentValue).isEmpty());
+ }
+ }
+ }
+
+
+ /**
+ * Try to modify some values in the human stereotyped object table value.
+ *
+ * @param helper
+ * The Stereotype display helper.
+ * @param manager
+ * The tree nattable model manager.
+ * @param class1View
+ * The view of the class1.
+ * @param firstPosition
+ * The first row position.
+ * @throws Exception
+ * The exception.
+ */
+ public static void modifyHumanStereotypedValues(final StereotypeDisplayUtil helper, final ITreeNattableModelManager manager, final View class1View, final Element class1, final int firstPosition) throws Exception {
+ final Stereotype humanStereotype = class1.getAppliedStereotype("RootElement::Body::Human");
+ final View label = helper.getStereotypeLabel(class1View, humanStereotype);
+ Assert.assertTrue("Label have to be a decoration node", label instanceof DecorationNode);
+
+ // Modify the depth value
+ Assert.assertEquals("The initial depth is not correct", "Human", helper.getStereotypeName((DecorationNode) label));
+ manager.setDataValue(0, firstPosition + 4, "-1");
+ Assert.assertEquals("The depth was not modified", "Body::Human", helper.getStereotypeName((DecorationNode) label));
+ manager.setDataValue(0, firstPosition + 4, "full");
+ Assert.assertEquals("The depth was not modified", "RootElement::Body::Human", helper.getStereotypeName((DecorationNode) label));
+
+ // Modify the visible value
+ Assert.assertEquals("The initial 'Visible' value is not correct", true, label.isVisible());
+ manager.setDataValue(1, firstPosition + 4, false);
+ Assert.assertEquals("The 'Visible' value was not modified", false, label.isVisible());
+
+ modifyBooleanValues(helper, manager, class1View, humanStereotype, firstPosition);
+ }
+
+ /**
+ * Try to modify some values in the animal stereotyped object table value.
+ *
+ * @param helper
+ * The Stereotype display helper.
+ * @param manager
+ * The tree nattable model manager.
+ * @param interface1View
+ * The view of the interface1.
+ * @param firstPosition
+ * The first row position.
+ * @throws Exception
+ * The exception.
+ */
+ public static void modifyAnimalStereotypedValues(final StereotypeDisplayUtil helper, final ITreeNattableModelManager manager, final View interface1View, final Element interface1, final int firstPosition) throws Exception {
+ final Stereotype animalStereotype = interface1.getAppliedStereotype("RootElement::Body::Animal");
+ final View label = helper.getStereotypeLabel(interface1View, animalStereotype);
+ Assert.assertTrue("Label have to be a decoration node", label instanceof DecorationNode);
+
+ // Modify the depth value
+ Assert.assertEquals("The initial depth is not correct", "Animal", helper.getStereotypeName((DecorationNode) label));
+ manager.setDataValue(0, firstPosition + 4, "-1");
+ Assert.assertEquals("The depth was not modified", "Body::Animal", helper.getStereotypeName((DecorationNode) label));
+ manager.setDataValue(0, firstPosition + 4, "full");
+ Assert.assertEquals("The depth was not modified", "RootElement::Body::Animal", helper.getStereotypeName((DecorationNode) label));
+
+ // Modify the visible value
+ Assert.assertEquals("The initial 'Visible' value is not correct", true, label.isVisible());
+ manager.setDataValue(1, firstPosition + 4, false);
+ Assert.assertEquals("The 'Visible' value was not modified", false, label.isVisible());
+
+ modifyBooleanValues(helper, manager, interface1View, animalStereotype, firstPosition);
+ }
+
+ /**
+ * Check the boolean values ('In Braces', 'In comment' and 'In Compartment') in the table.
+ *
+ * @param helper
+ * The Stereotype display helper.
+ * @param manager
+ * The tree nattable model manager.
+ * @param view
+ * The view.
+ * @param stereotype
+ * The applied stereotype.
+ * @param firstPosition
+ * The first row position.
+ */
+ private static void modifyBooleanValues(final StereotypeDisplayUtil helper, final ITreeNattableModelManager manager, final View view, final Stereotype stereotype, final int firstPosition) {
+ // Modify the in braces values
+ final Object braceValue = manager.getDataValue(2, firstPosition + 4);
+ if(!braceValue.equals(NA)){
+ final View brace = helper.getStereotypeBraceCompartment(view, stereotype);
+ Assert.assertEquals("The initial 'In Braces' value is not correct", false, brace.isVisible());
+ manager.setDataValue(2, firstPosition + 4, true);
+ Assert.assertEquals("The 'In Braces' value was not modified", true, brace.isVisible());
+ int rowPosition = 6;
+ for (Property property : stereotype.getAllAttributes()) {
+ if (StereotypeUtil.isValidStereotypeProperty(property)) {
+ StringBuilder errorMessage = new StringBuilder("The initial 'In Braces' value is not correct for property '");
+ errorMessage.append(property.getName());
+ errorMessage.append("'");
+ View braceProperty = helper.getStereotypePropertyInBrace(view, stereotype, property);
+ Assert.assertEquals(errorMessage.toString(), true, braceProperty.isVisible());
+ manager.setDataValue(2, firstPosition + rowPosition, false);
+ errorMessage = new StringBuilder("The 'In Braces' value was not modified on property '");
+ errorMessage.append(property.getName());
+ errorMessage.append("'");
+ Assert.assertEquals(errorMessage.toString(), false, braceProperty.isVisible());
+ rowPosition++;
+ }
+ }
+ }
+
+ // Modify the in comment values
+ final Object commentValue = manager.getDataValue(3, firstPosition + 4);
+ if(!commentValue.equals(NA)){
+ final View comment = helper.getStereotypeComment(view);
+ Assert.assertEquals("The initial 'In Comment' value is not correct", false, comment.isVisible());
+ manager.setDataValue(3, firstPosition + 4, true);
+ Assert.assertEquals("The 'In Comment' value was not modified", true, comment.isVisible());
+ int rowPosition = 6;
+ for (Property property : stereotype.getAllAttributes()) {
+ if (StereotypeUtil.isValidStereotypeProperty(property)) {
+ StringBuilder errorMessage = new StringBuilder("The initial 'In Comment' value is not correct for property '");
+ errorMessage.append(property.getName());
+ errorMessage.append("'");
+ View commentProperty = helper.getStereotypePropertyInComment(view, stereotype, property);
+ Assert.assertEquals(errorMessage.toString(), true, commentProperty.isVisible());
+ manager.setDataValue(3, firstPosition + rowPosition, false);
+ errorMessage = new StringBuilder("The 'In Comment' value was not modified on property '");
+ errorMessage.append(property.getName());
+ errorMessage.append("'");
+ Assert.assertEquals(errorMessage.toString(), false, commentProperty.isVisible());
+ rowPosition++;
+ }
+ }
+ }
+
+ // Modify the in compartment values
+ final Object compartmentValue = manager.getDataValue(4, firstPosition + 4);
+ if(!compartmentValue.equals(NA)){
+ final View compartment = helper.getStereotypeCompartment(view, stereotype);
+ Assert.assertEquals("The initial 'In Compartment' value is not correct", false, compartment.isVisible());
+ manager.setDataValue(4, firstPosition + 4, true);
+ Assert.assertEquals("The 'In Compartment' value was not modified", true, compartment.isVisible());
+ int rowPosition = 6;
+ for (Property property : stereotype.getAllAttributes()) {
+ if (StereotypeUtil.isValidStereotypeProperty(property)) {
+ StringBuilder errorMessage = new StringBuilder("The initial 'In Comment' value is not correct for property '");
+ errorMessage.append(property.getName());
+ errorMessage.append("'");
+ View compartmentProperty = helper.getStereotypePropertyInCompartment(view, stereotype, property);
+ Assert.assertEquals(errorMessage.toString(), true, compartmentProperty.isVisible());
+ manager.setDataValue(4, firstPosition + rowPosition, false);
+ errorMessage = new StringBuilder("The 'In Compartment' value was not modified on property '");
+ errorMessage.append(property.getName());
+ errorMessage.append("'");
+ Assert.assertEquals(errorMessage.toString(), false, compartmentProperty.isVisible());
+ rowPosition++;
+ }
+ }
+ }
+ }
+}

Back to the top