Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvlorenzo2013-06-18 14:35:57 +0000
committervlorenzo2013-06-18 14:35:57 +0000
commit1fcf526cf256bfbc9aae20224d2b8a291381c49e (patch)
tree03927aa942eae8772e3ca1a349c6b9a57535460a /tests
parenteb2902d61de4d9f491a98d07b9b989673a959738 (diff)
downloadorg.eclipse.papyrus-1fcf526cf256bfbc9aae20224d2b8a291381c49e.tar.gz
org.eclipse.papyrus-1fcf526cf256bfbc9aae20224d2b8a291381c49e.tar.xz
org.eclipse.papyrus-1fcf526cf256bfbc9aae20224d2b8a291381c49e.zip
410812: [Table 2] Several problems with the dialog to Create/Destroy columns
https://bugs.eclipse.org/bugs/show_bug.cgi?id=410812
Diffstat (limited to 'tests')
-rw-r--r--tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/model.profile.di17
-rw-r--r--tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/model.profile.notation174
-rw-r--r--tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/model.profile.uml112
-rw-r--r--tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/modelTest.di23
-rw-r--r--tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/modelTest.notation268
-rw-r--r--tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/modelTest.uml34
-rw-r--r--tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/AllTests.java2
-rw-r--r--tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/UMLRestrictedContentProviderTest.java12
-rw-r--r--tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/UMLRestrictedContentProviderTestCustomProfile.java442
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/src/org/eclipse/papyrus/uml/tools/tests/tests/UMLStereotypePropertyContentProviderTest.java135
10 files changed, 1216 insertions, 3 deletions
diff --git a/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/model.profile.di b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/model.profile.di
new file mode 100644
index 00000000000..bc909c6dda4
--- /dev/null
+++ b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/model.profile.di
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<di:SashWindowsMngr xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi">
+ <pageList>
+ <availablePage>
+ <emfPageIdentifier href="model.profile.notation#_LBlXYNgUEeKydel9b5SKTQ"/>
+ </availablePage>
+ </pageList>
+ <sashModel currentSelection="//@sashModel/@windows.0/@children.0">
+ <windows>
+ <children xsi:type="di:TabFolder">
+ <children>
+ <emfPageIdentifier href="model.profile.notation#_LBlXYNgUEeKydel9b5SKTQ"/>
+ </children>
+ </children>
+ </windows>
+ </sashModel>
+</di:SashWindowsMngr>
diff --git a/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/model.profile.notation b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/model.profile.notation
new file mode 100644
index 00000000000..f91a2ce66ba
--- /dev/null
+++ b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/model.profile.notation
@@ -0,0 +1,174 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML" xmi:id="_LBlXYNgUEeKydel9b5SKTQ" type="PapyrusUMLProfileDiagram" name="NewDiagram" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_QoBbcNgUEeKydel9b5SKTQ" type="1031" fontName="Segoe UI" lineColor="0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_QoJ-UNgUEeKydel9b5SKTQ" source="ShadowFigure">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_QoJ-UdgUEeKydel9b5SKTQ" key="ShadowFigure_Value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_QoKlYNgUEeKydel9b5SKTQ" source="displayNameLabelIcon">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_QoKlYdgUEeKydel9b5SKTQ" key="displayNameLabelIcon_value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_QoKlYtgUEeKydel9b5SKTQ" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_QoKlY9gUEeKydel9b5SKTQ" key="QualifiedNameDepth" value="1000"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_QoQE8NgUEeKydel9b5SKTQ" source="Stereotype_Annotation">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_QoQE8dgUEeKydel9b5SKTQ" key="StereotypeWithQualifiedNameList" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_QoQE8tgUEeKydel9b5SKTQ" key="StereotypeList" value="StandardProfileL2::Metaclass"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_QoQE89gUEeKydel9b5SKTQ" key="Stereotype_Presentation_Kind" value="HorizontalStereo"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_QoQE9NgUEeKydel9b5SKTQ" key="PropStereoDisplay" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_QoQE9dgUEeKydel9b5SKTQ" key="StereotypePropertyLocation" value="Compartment"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_QoMakNgUEeKydel9b5SKTQ" type="1084"/>
+ <element xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QoMakdgUEeKydel9b5SKTQ" x="650" y="146"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_R3AXENgUEeKydel9b5SKTQ" type="1030" fontName="Segoe UI" lineColor="0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_R3A-INgUEeKydel9b5SKTQ" source="ShadowFigure">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_R3A-IdgUEeKydel9b5SKTQ" key="ShadowFigure_Value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_R3BlMNgUEeKydel9b5SKTQ" source="displayNameLabelIcon">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_R3BlMdgUEeKydel9b5SKTQ" key="displayNameLabelIcon_value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_R3BlMtgUEeKydel9b5SKTQ" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_R3BlM9gUEeKydel9b5SKTQ" key="QualifiedNameDepth" value="1000"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_R3BlNNgUEeKydel9b5SKTQ" type="1047"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_R3BlNdgUEeKydel9b5SKTQ" type="1042">
+ <children xmi:type="notation:Shape" xmi:id="_S6NggNgUEeKydel9b5SKTQ" type="1024" fontName="Segoe UI" lineColor="0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_S6OHkNgUEeKydel9b5SKTQ" source="ShadowFigure">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_S6OHkdgUEeKydel9b5SKTQ" key="ShadowFigure_Value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_S6OHktgUEeKydel9b5SKTQ" source="displayNameLabelIcon">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_S6OHk9gUEeKydel9b5SKTQ" key="displayNameLabelIcon_value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_S6OuoNgUEeKydel9b5SKTQ" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_S6OuodgUEeKydel9b5SKTQ" key="QualifiedNameDepth" value="1000"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_S6OuotgUEeKydel9b5SKTQ" type="1050"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_S6Ouo9gUEeKydel9b5SKTQ" type="1051">
+ <children xmi:type="notation:Shape" xmi:id="_U6MbQNgUEeKydel9b5SKTQ" type="1023" fontName="Segoe UI" lineColor="0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_U6MbQtgUEeKydel9b5SKTQ" source="ShadowFigure">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_U6MbQ9gUEeKydel9b5SKTQ" key="ShadowFigure_Value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_U6NCUNgUEeKydel9b5SKTQ" source="displayNameLabelIcon">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_U6NCUdgUEeKydel9b5SKTQ" key="displayNameLabelIcon_value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_U6NCUtgUEeKydel9b5SKTQ" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_U6NCU9gUEeKydel9b5SKTQ" key="QualifiedNameDepth" value="1000"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_U6NCVNgUEeKydel9b5SKTQ" type="1046"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_U6OQcNgUEeKydel9b5SKTQ" type="1052">
+ <children xmi:type="notation:Shape" xmi:id="_WKlFENgUEeKydel9b5SKTQ" type="3002" fontName="Segoe UI" lineColor="0">
+ <element xmi:type="uml:Property" href="model.profile.uml#_WJsUQNgUEeKydel9b5SKTQ"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_WKlFEdgUEeKydel9b5SKTQ"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_U6OQcdgUEeKydel9b5SKTQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_U6OQctgUEeKydel9b5SKTQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_U6OQc9gUEeKydel9b5SKTQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_U6OQdNgUEeKydel9b5SKTQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_U6OQddgUEeKydel9b5SKTQ" visible="false" type="1053">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_U6OQdtgUEeKydel9b5SKTQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_U6OQd9gUEeKydel9b5SKTQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_U6OQeNgUEeKydel9b5SKTQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_U6OQedgUEeKydel9b5SKTQ"/>
+ </children>
+ <element xmi:type="uml:Stereotype" href="model.profile.uml#_U58joNgUEeKydel9b5SKTQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_U6MbQdgUEeKydel9b5SKTQ" x="49" y="38"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_S6OupNgUEeKydel9b5SKTQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_S6OupdgUEeKydel9b5SKTQ"/>
+ </children>
+ <element xmi:type="uml:Profile" href="model.profile.uml#_S6AFINgUEeKydel9b5SKTQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_S6NggdgUEeKydel9b5SKTQ" x="146" y="87" width="270" height="241"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_R3BlNtgUEeKydel9b5SKTQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_R3BlN9gUEeKydel9b5SKTQ"/>
+ </children>
+ <element xmi:type="uml:Profile" href="model.profile.uml#_R2fZsNgUEeKydel9b5SKTQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_R3AXEdgUEeKydel9b5SKTQ" x="130" y="295" width="641" height="466"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_Ztvp0NgUEeKydel9b5SKTQ" type="2007" fontName="Segoe UI" lineColor="0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ZtwQ4NgUEeKydel9b5SKTQ" source="ShadowFigure">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ZtwQ4dgUEeKydel9b5SKTQ" key="ShadowFigure_Value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Ztw38NgUEeKydel9b5SKTQ" source="displayNameLabelIcon">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Ztw38dgUEeKydel9b5SKTQ" key="displayNameLabelIcon_value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Ztw38tgUEeKydel9b5SKTQ" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Ztw389gUEeKydel9b5SKTQ" key="QualifiedNameDepth" value="1000"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Ztw39NgUEeKydel9b5SKTQ" type="5026"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Ztw39dgUEeKydel9b5SKTQ" type="1005">
+ <children xmi:type="notation:Shape" xmi:id="_aXJzMNgUEeKydel9b5SKTQ" type="1024" fontName="Segoe UI" lineColor="0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_aXKaQNgUEeKydel9b5SKTQ" source="ShadowFigure">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_aXKaQdgUEeKydel9b5SKTQ" key="ShadowFigure_Value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_aXKaQtgUEeKydel9b5SKTQ" source="displayNameLabelIcon">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_aXLBUNgUEeKydel9b5SKTQ" key="displayNameLabelIcon_value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_aXLBUdgUEeKydel9b5SKTQ" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_aXLBUtgUEeKydel9b5SKTQ" key="QualifiedNameDepth" value="1000"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_aXLBU9gUEeKydel9b5SKTQ" type="1050"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_aXLBVNgUEeKydel9b5SKTQ" type="1051">
+ <children xmi:type="notation:Shape" xmi:id="_b88FQNgUEeKydel9b5SKTQ" type="1023" fontName="Segoe UI" lineColor="0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_b88sUNgUEeKydel9b5SKTQ" source="ShadowFigure">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_b88sUdgUEeKydel9b5SKTQ" key="ShadowFigure_Value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_b88sUtgUEeKydel9b5SKTQ" source="displayNameLabelIcon">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_b88sU9gUEeKydel9b5SKTQ" key="displayNameLabelIcon_value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_b88sVNgUEeKydel9b5SKTQ" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_b88sVdgUEeKydel9b5SKTQ" key="QualifiedNameDepth" value="1000"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_b89TYNgUEeKydel9b5SKTQ" type="1046"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_b89TYdgUEeKydel9b5SKTQ" type="1052">
+ <children xmi:type="notation:Shape" xmi:id="_dViP4NgUEeKydel9b5SKTQ" type="3002" fontName="Segoe UI" lineColor="0">
+ <element xmi:type="uml:Property" href="model.profile.uml#_dVX30NgUEeKydel9b5SKTQ"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_dViP4dgUEeKydel9b5SKTQ"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_b89TYtgUEeKydel9b5SKTQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_b89TY9gUEeKydel9b5SKTQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_b89TZNgUEeKydel9b5SKTQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_b89TZdgUEeKydel9b5SKTQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_b89TZtgUEeKydel9b5SKTQ" visible="false" type="1053">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_b89TZ9gUEeKydel9b5SKTQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_b89TaNgUEeKydel9b5SKTQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_b89TadgUEeKydel9b5SKTQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_b89TatgUEeKydel9b5SKTQ"/>
+ </children>
+ <element xmi:type="uml:Stereotype" href="model.profile.uml#_b8pKUNgUEeKydel9b5SKTQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_b88FQdgUEeKydel9b5SKTQ" x="55" y="20"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_aXLBVdgUEeKydel9b5SKTQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_aXLBVtgUEeKydel9b5SKTQ"/>
+ </children>
+ <element xmi:type="uml:Profile" href="model.profile.uml#_aW7wwNgUEeKydel9b5SKTQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_aXJzMdgUEeKydel9b5SKTQ" x="150" y="101" width="416" height="283"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Ztw39tgUEeKydel9b5SKTQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Ztw399gUEeKydel9b5SKTQ"/>
+ </children>
+ <element xmi:type="uml:Package" href="model.profile.uml#_ZtcH0NgUEeKydel9b5SKTQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Ztvp0dgUEeKydel9b5SKTQ" x="1110" y="300" width="726" height="471"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_LBlXYdgUEeKydel9b5SKTQ"/>
+ <element xmi:type="uml:Profile" href="model.profile.uml#_LBTDgNgUEeKydel9b5SKTQ"/>
+ <edges xmi:type="notation:Connector" xmi:id="_gUFEoNgUEeKydel9b5SKTQ" type="1013" source="_U6MbQNgUEeKydel9b5SKTQ" target="_QoBbcNgUEeKydel9b5SKTQ" lineColor="0">
+ <styles xmi:type="notation:FontStyle" xmi:id="_gUFEodgUEeKydel9b5SKTQ" fontName="Segoe UI"/>
+ <element xmi:type="uml:Extension" href="model.profile.uml#_gTzX0NgUEeKydel9b5SKTQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_gUFEotgUEeKydel9b5SKTQ" points="[14, -18, -263, 336]$[265, -355, -12, -1]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_gUiXoNgUEeKydel9b5SKTQ" id="(0.45871559633027525,0.18)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_gUiXodgUEeKydel9b5SKTQ" id="(0.12,0.48)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_gzIYINgUEeKydel9b5SKTQ" type="4002" source="_b88FQNgUEeKydel9b5SKTQ" target="_U6MbQNgUEeKydel9b5SKTQ" lineColor="0">
+ <children xmi:type="notation:DecorationNode" xmi:id="_gzI_MNgUEeKydel9b5SKTQ" type="6007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_gzI_MdgUEeKydel9b5SKTQ" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_gzIYIdgUEeKydel9b5SKTQ" fontName="Segoe UI"/>
+ <element xmi:type="uml:Generalization" href="model.profile.uml#_gy4ggNgUEeKydel9b5SKTQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_gzIYItgUEeKydel9b5SKTQ" points="[-54, 1, 903, -24]$[-935, 31, 22, 6]"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_gzY20NgUEeKydel9b5SKTQ" id="(0.7981651376146789,0.6)"/>
+ </edges>
+</notation:Diagram>
diff --git a/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/model.profile.uml b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/model.profile.uml
new file mode 100644
index 00000000000..dc545535d73
--- /dev/null
+++ b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/model.profile.uml
@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<uml:Profile xmi:version="20110701" xmlns:xmi="http://www.omg.org/spec/XMI/20110701" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML" xmi:id="_LBTDgNgUEeKydel9b5SKTQ" name="Profile" metaclassReference="_QnsEQNgUEeKydel9b5SKTQ" metamodelReference="_LBTDgdgUEeKydel9b5SKTQ">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_hg42ANgUEeKydel9b5SKTQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <contents xmi:type="ecore:EPackage" xmi:id="_hiG-ANgUEeKydel9b5SKTQ" name="Profile" nsURI="http:///schemas/Profile/_hg3n4NgUEeKydel9b5SKTQ/0" nsPrefix="Profile">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_hiG-AdgUEeKydel9b5SKTQ" source="http://www.eclipse.org/uml2/4.0.0/UML" references="_R2fZsNgUEeKydel9b5SKTQ"/>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_hjyZANgUEeKydel9b5SKTQ" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_hjyZAdgUEeKydel9b5SKTQ" key="Version" value="0.0.1"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_hjyZAtgUEeKydel9b5SKTQ" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_hjyZA9gUEeKydel9b5SKTQ" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_hjyZBNgUEeKydel9b5SKTQ" key="Date" value="2013-06-18"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_hjyZBdgUEeKydel9b5SKTQ" key="Author" value=""/>
+ </eAnnotations>
+ <eSubpackages xmi:type="ecore:EPackage" xmi:id="_hiG-AtgUEeKydel9b5SKTQ" name="Package1" nsURI="http:///Profile/Package1.ecore" nsPrefix="Profile.Package1">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_hiG-A9gUEeKydel9b5SKTQ" source="http://www.eclipse.org/uml2/4.0.0/UML" references="_ZtcH0NgUEeKydel9b5SKTQ"/>
+ </eSubpackages>
+ </contents>
+ </eAnnotations>
+ <elementImport xmi:type="uml:ElementImport" xmi:id="_QnsEQNgUEeKydel9b5SKTQ" alias="Class">
+ <importedElement xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
+ </elementImport>
+ <packageImport xmi:type="uml:PackageImport" xmi:id="_LBTDgdgUEeKydel9b5SKTQ">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_METAMODELS/UML.metamodel.uml#_0"/>
+ </packageImport>
+ <packageImport xmi:type="uml:PackageImport" xmi:id="_LBTDgtgUEeKydel9b5SKTQ">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Profile" xmi:id="_R2fZsNgUEeKydel9b5SKTQ" name="Profile1">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_hiZ48dgUEeKydel9b5SKTQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <contents xmi:type="ecore:EPackage" xmi:id="_hi_HwNgUEeKydel9b5SKTQ" name="Profile1" nsURI="http://Profile/schemas/Profile1/_hiZ48NgUEeKydel9b5SKTQ/0" nsPrefix="Profile1">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_hi_HwdgUEeKydel9b5SKTQ" source="http://www.eclipse.org/uml2/4.0.0/UML" references="_S6AFINgUEeKydel9b5SKTQ"/>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_hj34kNgUEeKydel9b5SKTQ" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_hj34kdgUEeKydel9b5SKTQ" key="Version" value="0.0.1"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_hj34ktgUEeKydel9b5SKTQ" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_hj34k9gUEeKydel9b5SKTQ" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_hj34lNgUEeKydel9b5SKTQ" key="Date" value="2013-06-18"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_hj34ldgUEeKydel9b5SKTQ" key="Author" value=""/>
+ </eAnnotations>
+ </contents>
+ </eAnnotations>
+ <packagedElement xmi:type="uml:Profile" xmi:id="_S6AFINgUEeKydel9b5SKTQ" name="SubProfile2">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_hjHDkNgUEeKydel9b5SKTQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <contents xmi:type="ecore:EPackage" xmi:id="_hjWUINgUEeKydel9b5SKTQ" name="SubProfile2" nsURI="http://Profile.Profile1/schemas/SubProfile2/_hjF1cNgUEeKydel9b5SKTQ/0" nsPrefix="SubProfile2">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_hkHJINgUEeKydel9b5SKTQ" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_hkHJIdgUEeKydel9b5SKTQ" key="Version" value="0.0.1"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_hkHJItgUEeKydel9b5SKTQ" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_hkHJI9gUEeKydel9b5SKTQ" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_hkHJJNgUEeKydel9b5SKTQ" key="Date" value="2013-06-18"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_hkHJJdgUEeKydel9b5SKTQ" key="Author" value=""/>
+ </eAnnotations>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_hjWUIdgUEeKydel9b5SKTQ" name="Stereotype2">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_hjWUItgUEeKydel9b5SKTQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_U58joNgUEeKydel9b5SKTQ"/>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_hjWUI9gUEeKydel9b5SKTQ" name="prop2" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_hjW7MNgUEeKydel9b5SKTQ" name="base_Class" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ </contents>
+ </eAnnotations>
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_U58joNgUEeKydel9b5SKTQ" name="Stereotype2">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_WJsUQNgUEeKydel9b5SKTQ" name="prop2" visibility="public">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_YxCxANgUEeKydel9b5SKTQ" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_YxQMYNgUEeKydel9b5SKTQ" value="1"/>
+ <defaultValue xmi:type="uml:LiteralString" xmi:id="_YxsRQNgUEeKydel9b5SKTQ">
+ <value xsi:nil="true"/>
+ </defaultValue>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_gTtRMNgUEeKydel9b5SKTQ" name="base_Class" association="_gTzX0NgUEeKydel9b5SKTQ">
+ <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Extension" xmi:id="_gTzX0NgUEeKydel9b5SKTQ" name="E_Stereotype2_Class1" memberEnd="_gTzX0dgUEeKydel9b5SKTQ _gTtRMNgUEeKydel9b5SKTQ">
+ <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_gTzX0dgUEeKydel9b5SKTQ" name="extension_Stereotype2" type="_U58joNgUEeKydel9b5SKTQ" aggregation="composite" association="_gTzX0NgUEeKydel9b5SKTQ"/>
+ </packagedElement>
+ </packagedElement>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Package" xmi:id="_ZtcH0NgUEeKydel9b5SKTQ" name="Package1">
+ <packagedElement xmi:type="uml:Profile" xmi:id="_aW7wwNgUEeKydel9b5SKTQ" name="SubProfile1">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_hjcawdgUEeKydel9b5SKTQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <contents xmi:type="ecore:EPackage" xmi:id="_hjrrUNgUEeKydel9b5SKTQ" name="SubProfile1" nsURI="http://Profile.Package1/schemas/SubProfile1/_hjcawNgUEeKydel9b5SKTQ/0" nsPrefix="SubProfile1">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_hjrrUdgUEeKydel9b5SKTQ" source="http://www.eclipse.org/uml2/4.0.0/UML" references="_S6AFINgUEeKydel9b5SKTQ"/>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_hkeVgNgUEeKydel9b5SKTQ" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_hkeVgdgUEeKydel9b5SKTQ" key="Version" value="0.0.1"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_hkeVgtgUEeKydel9b5SKTQ" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_hkeVg9gUEeKydel9b5SKTQ" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_hkeVhNgUEeKydel9b5SKTQ" key="Date" value="2013-06-18"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_hkeVhdgUEeKydel9b5SKTQ" key="Author" value=""/>
+ </eAnnotations>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_hjrrUtgUEeKydel9b5SKTQ" name="Stereotype1" eSuperTypes="_hjWUIdgUEeKydel9b5SKTQ">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_hjrrU9gUEeKydel9b5SKTQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_b8pKUNgUEeKydel9b5SKTQ"/>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_hjrrVNgUEeKydel9b5SKTQ" name="prop1" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ </contents>
+ </eAnnotations>
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_b8pKUNgUEeKydel9b5SKTQ" name="Stereotype1">
+ <generalization xmi:type="uml:Generalization" xmi:id="_gy4ggNgUEeKydel9b5SKTQ" general="_U58joNgUEeKydel9b5SKTQ"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_dVX30NgUEeKydel9b5SKTQ" name="prop1" visibility="public">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_fg238NgUEeKydel9b5SKTQ" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_fhAB4NgUEeKydel9b5SKTQ" value="1"/>
+ <defaultValue xmi:type="uml:LiteralString" xmi:id="_fhYcYNgUEeKydel9b5SKTQ">
+ <value xsi:nil="true"/>
+ </defaultValue>
+ </ownedAttribute>
+ </packagedElement>
+ </packagedElement>
+ </packagedElement>
+</uml:Profile>
diff --git a/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/modelTest.di b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/modelTest.di
new file mode 100644
index 00000000000..8f933fb5ff4
--- /dev/null
+++ b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/modelTest.di
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<di:SashWindowsMngr xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi">
+ <pageList>
+ <availablePage>
+ <emfPageIdentifier href="modelTest.notation#_mdq5ENgUEeKydel9b5SKTQ"/>
+ </availablePage>
+ <availablePage>
+ <emfPageIdentifier href="modelTest.notation#_y3q7oNgUEeKydel9b5SKTQ"/>
+ </availablePage>
+ </pageList>
+ <sashModel currentSelection="//@sashModel/@windows.0/@children.0">
+ <windows>
+ <children xsi:type="di:TabFolder">
+ <children>
+ <emfPageIdentifier href="modelTest.notation#_mdq5ENgUEeKydel9b5SKTQ"/>
+ </children>
+ <children>
+ <emfPageIdentifier href="modelTest.notation#_y3q7oNgUEeKydel9b5SKTQ"/>
+ </children>
+ </children>
+ </windows>
+ </sashModel>
+</di:SashWindowsMngr>
diff --git a/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/modelTest.notation b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/modelTest.notation
new file mode 100644
index 00000000000..49b1890ef33
--- /dev/null
+++ b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/modelTest.notation
@@ -0,0 +1,268 @@
+<?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:nattable="http://www.eclipse.org/papyrus/nattable/model" xmlns:nattableaxis="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxis" xmlns:nattableaxisconfiguration="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisconfiguration" xmlns:nattableaxisprovider="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisprovider" xmlns:nattableconfiguration="http://www.eclipse.org/papyrus/nattable/model/nattableconfiguration" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML" xsi:schemaLocation="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxis http://www.eclipse.org/papyrus/nattable/model#//nattableaxis http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisconfiguration http://www.eclipse.org/papyrus/nattable/model#//nattableaxisconfiguration http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisprovider http://www.eclipse.org/papyrus/nattable/model#//nattableaxisprovider http://www.eclipse.org/papyrus/nattable/model/nattableconfiguration http://www.eclipse.org/papyrus/nattable/model#//nattableconfiguration">
+ <notation:Diagram xmi:id="_mdq5ENgUEeKydel9b5SKTQ" type="PapyrusUMLClassDiagram" name="NewDiagram" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_p7VSwNgUEeKydel9b5SKTQ" type="2008" fontName="Segoe UI" lineColor="0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_p7V50NgUEeKydel9b5SKTQ" source="ShadowFigure">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_p7V50dgUEeKydel9b5SKTQ" key="ShadowFigure_Value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_p7V50tgUEeKydel9b5SKTQ" source="displayNameLabelIcon">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_p7Wg4NgUEeKydel9b5SKTQ" key="displayNameLabelIcon_value" value="false"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_p7Wg4dgUEeKydel9b5SKTQ" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_p7Wg4tgUEeKydel9b5SKTQ" key="QualifiedNameDepth" value="1000"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_tew9QNgUEeKydel9b5SKTQ" source="Stereotype_Annotation">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_tew9QdgUEeKydel9b5SKTQ" key="StereotypeWithQualifiedNameList" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_texkUNgUEeKydel9b5SKTQ" key="StereotypeList" value="Profile::Package1::SubProfile1::Stereotype1"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_texkUdgUEeKydel9b5SKTQ" key="Stereotype_Presentation_Kind" value="HorizontalStereo"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_texkUtgUEeKydel9b5SKTQ" key="PropStereoDisplay" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_texkU9gUEeKydel9b5SKTQ" key="StereotypePropertyLocation" value="Compartment"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_p7Wg49gUEeKydel9b5SKTQ" type="5029"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_p7Wg5NgUEeKydel9b5SKTQ" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_p7Wg5dgUEeKydel9b5SKTQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_p7Wg5tgUEeKydel9b5SKTQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_p7Wg59gUEeKydel9b5SKTQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_p7Wg6NgUEeKydel9b5SKTQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_p7Wg6dgUEeKydel9b5SKTQ" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_p7Wg6tgUEeKydel9b5SKTQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_p7Wg69gUEeKydel9b5SKTQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_p7Wg7NgUEeKydel9b5SKTQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_p7Wg7dgUEeKydel9b5SKTQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_p7Wg7tgUEeKydel9b5SKTQ" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_p7Wg79gUEeKydel9b5SKTQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_p7Wg8NgUEeKydel9b5SKTQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_p7Wg8dgUEeKydel9b5SKTQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_p7Wg8tgUEeKydel9b5SKTQ"/>
+ </children>
+ <element xmi:type="uml:Class" href="modelTest.uml#_p7Dl8NgUEeKydel9b5SKTQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_p7VSwdgUEeKydel9b5SKTQ" x="704" y="360"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_mdq5EdgUEeKydel9b5SKTQ"/>
+ <element xmi:type="uml:Model" href="modelTest.uml#_mdpD4NgUEeKydel9b5SKTQ"/>
+ </notation:Diagram>
+ <nattable:Table xmi:id="_y3q7oNgUEeKydel9b5SKTQ" name="GenericTable0" currentRowAxisProvider="_y3q7otgUEeKydel9b5SKTQ" currentColumnAxisProvider="_y3q7odgUEeKydel9b5SKTQ">
+ <context xmi:type="uml:Model" href="modelTest.uml#_mdpD4NgUEeKydel9b5SKTQ"/>
+ <tableConfiguration xmi:type="nattableconfiguration:TableConfiguration" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#/"/>
+ <columnAxisProvidersHistory xmi:type="nattableaxisprovider:SlaveObjectAxisProvider" xmi:id="_y3q7odgUEeKydel9b5SKTQ" description="This axis provider provides available columns according to the rows of the table (features of the object displayed on the other axis)" name="UML Feature axis provider">
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQVMNgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Classifier/feature"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQVMdgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Type/package"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQVMtgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//EncapsulatedClassifier/ownedPort"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQVM9gUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement/clientDependency"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQVNNgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//StructuredClassifier/part"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQVNdgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Classifier/substitution"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQVNtgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//BehavioredClassifier/classifierBehavior"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQVN9gUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EAttribute" href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement/visibility"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQVONgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EAttribute" href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement/qualifiedName"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQVOdgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//ParameterableElement/owningTemplateParameter"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQVOtgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Classifier/useCase"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQVO9gUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class/superClass"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8QNgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EAttribute" href="http://www.eclipse.org/uml2/4.0.0/UML#//Classifier/isFinalSpecialization"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8QdgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Classifier/generalization"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8QtgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Namespace/member"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8Q9gUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//RedefinableElement/redefinedElement"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8RNgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement/namespace"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8RdgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EAttribute" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class/isActive"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8RtgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//TemplateableElement/ownedTemplateSignature"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8R9gUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Namespace/ownedMember"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8SNgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EAttribute" href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement/name"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8SdgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Classifier/general"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8StgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Classifier/representation"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8S9gUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Classifier/inheritedMember"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8TNgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EAttribute" href="http://www.eclipse.org/uml2/4.0.0/UML#//RedefinableElement/isLeaf"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8TdgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class/ownedOperation"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8TtgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class/nestedClassifier"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8T9gUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Namespace/importedMember"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8UNgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EAttribute" href="http://www.eclipse.org/uml2/4.0.0/UML#//Classifier/isAbstract"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8UdgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//TemplateableElement/templateBinding"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8UtgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//StructuredClassifier/role"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8U9gUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Element/owner"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8VNgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Classifier/collaborationUse"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8VdgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Classifier/powertypeExtent"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8VtgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//BehavioredClassifier/ownedBehavior"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8V9gUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Namespace/elementImport"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8WNgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Classifier/ownedUseCase"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8WdgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Element/ownedComment"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8WtgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Namespace/ownedRule"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8W9gUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//RedefinableElement/redefinitionContext"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8XNgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement/nameExpression"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8XdgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Namespace/packageImport"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8XtgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Classifier/redefinedClassifier"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8X9gUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class/ownedReception"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8YNgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Classifier/attribute"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8YdgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//ParameterableElement/templateParameter"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8YtgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class/extension"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8Y9gUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//StructuredClassifier/ownedAttribute"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8ZNgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//BehavioredClassifier/interfaceRealization"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8ZdgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//Element/ownedElement"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_zPQ8ZtgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EReference" href="http://www.eclipse.org/uml2/4.0.0/UML#//StructuredClassifier/ownedConnector"/>
+ </axis>
+ <axis xmi:type="nattableaxis:FeatureIdAxis" xmi:id="_zPSKYNgUEeKydel9b5SKTQ" element="property_of_stereotype:/Profile::Profile1::SubProfile2::Stereotype2::prop2">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.1"/>
+ </axis>
+ <axis xmi:type="nattableaxis:FeatureIdAxis" xmi:id="_zPSKYdgUEeKydel9b5SKTQ" element="property_of_stereotype:/Profile::Package1::SubProfile1::Stereotype1::prop1">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.1"/>
+ </axis>
+ </columnAxisProvidersHistory>
+ <rowAxisProvidersHistory xmi:type="nattableaxisprovider:MasterObjectAxisProvider" xmi:id="_y3q7otgUEeKydel9b5SKTQ" description="This axis provider contains the object dropped by the user into the table" name="DroppedElementAxisProvider">
+ <axis xmi:type="nattableaxis:EObjectAxis" xmi:id="_zPPuINgUEeKydel9b5SKTQ">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.uml.nattable.generic.config/configs/generic.nattableconfiguration#//@rowHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="uml:Class" href="modelTest.uml#_p7Dl8NgUEeKydel9b5SKTQ"/>
+ </axis>
+ </rowAxisProvidersHistory>
+ </nattable:Table>
+</xmi:XMI>
diff --git a/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/modelTest.uml b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/modelTest.uml
new file mode 100644
index 00000000000..ec7fcf54009
--- /dev/null
+++ b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/resources/withCustomProfile/modelTest.uml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="20110701" xmlns:xmi="http://www.omg.org/spec/XMI/20110701" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SubProfile1="http://Profile.Package1/schemas/SubProfile1/_hjcawNgUEeKydel9b5SKTQ/0" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML" xsi:schemaLocation="http://Profile.Package1/schemas/SubProfile1/_hjcawNgUEeKydel9b5SKTQ/0 model.profile.uml#_hjrrUNgUEeKydel9b5SKTQ">
+ <uml:Model xmi:id="_mdpD4NgUEeKydel9b5SKTQ" name="Model">
+ <packageImport xmi:type="uml:PackageImport" xmi:id="_mdpD4dgUEeKydel9b5SKTQ">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Class" xmi:id="_p7Dl8NgUEeKydel9b5SKTQ" name="Class1"/>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_sPLksNgUEeKydel9b5SKTQ">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_sP-O4NgUEeKydel9b5SKTQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="model.profile.uml#_hiG-ANgUEeKydel9b5SKTQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="model.profile.uml#_LBTDgNgUEeKydel9b5SKTQ"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_sQa60NgUEeKydel9b5SKTQ">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_sRIsgNgUEeKydel9b5SKTQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="model.profile.uml#_hi_HwNgUEeKydel9b5SKTQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="model.profile.uml#_R2fZsNgUEeKydel9b5SKTQ"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_sRbAYNgUEeKydel9b5SKTQ">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_sSG84NgUEeKydel9b5SKTQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="model.profile.uml#_hjWUINgUEeKydel9b5SKTQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="model.profile.uml#_S6AFINgUEeKydel9b5SKTQ"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_sSZQwNgUEeKydel9b5SKTQ">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_sTEmMNgUEeKydel9b5SKTQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="model.profile.uml#_hjrrUNgUEeKydel9b5SKTQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="model.profile.uml#_aW7wwNgUEeKydel9b5SKTQ"/>
+ </profileApplication>
+ </uml:Model>
+ <SubProfile1:Stereotype1 xmi:id="_tefQcNgUEeKydel9b5SKTQ" base_Class="_p7Dl8NgUEeKydel9b5SKTQ"/>
+</xmi:XMI>
diff --git a/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/AllTests.java b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/AllTests.java
index a3444f3595b..326e82ed37a 100644
--- a/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/AllTests.java
+++ b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/AllTests.java
@@ -17,7 +17,7 @@ import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
@RunWith(Suite.class)
-@SuiteClasses({ UMLRestrictedContentProviderTest.class
+@SuiteClasses({ UMLRestrictedContentProviderTest.class, UMLRestrictedContentProviderTestCustomProfile.class
})
public class AllTests {
diff --git a/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/UMLRestrictedContentProviderTest.java b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/UMLRestrictedContentProviderTest.java
index 4eca9dc6957..7175b8ba2ce 100644
--- a/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/UMLRestrictedContentProviderTest.java
+++ b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/UMLRestrictedContentProviderTest.java
@@ -134,6 +134,7 @@ public class UMLRestrictedContentProviderTest {
public void testEmptyTableWithRestriction() {
NattableModelManager modelManager = new NattableModelManager(emptyTable1);
IRestrictedContentProvider columnContentProvider = modelManager.getColumnAxisManager().createPossibleAxisContentProvider(true);
+ columnContentProvider.setIgnoreInheritedElements(true);
Object[] elements = columnContentProvider.getElements();
Assert.assertEquals(0, elements.length);
}
@@ -146,6 +147,7 @@ public class UMLRestrictedContentProviderTest {
public void testEmptyTableWithoutRestriction() {
NattableModelManager modelManager = new NattableModelManager(emptyTable1);
IRestrictedContentProvider columnContentProvider = modelManager.getColumnAxisManager().createPossibleAxisContentProvider(false);
+ columnContentProvider.setIgnoreInheritedElements(true);
Object[] elements = columnContentProvider.getElements();
Assert.assertEquals(2, elements.length);
List<?> roots = Arrays.asList(elements);
@@ -176,6 +178,7 @@ public class UMLRestrictedContentProviderTest {
public void testNotEmptyTableWithRestriction() {
NattableModelManager modelManager = new NattableModelManager(notEmptyTable1);
IRestrictedContentProvider columnContentProvider = modelManager.getColumnAxisManager().createPossibleAxisContentProvider(true);
+ columnContentProvider.setIgnoreInheritedElements(true);
Object[] elements = columnContentProvider.getElements();
Assert.assertEquals(1, elements.length);
Assert.assertEquals(elements[0], UMLPackage.eINSTANCE);
@@ -188,6 +191,7 @@ public class UMLRestrictedContentProviderTest {
public void testNotEmptyTableWithoutProfileWithoutRestriction() {
NattableModelManager modelManager = new NattableModelManager(notEmptyTable1);
IRestrictedContentProvider columnContentProvider = modelManager.getColumnAxisManager().createPossibleAxisContentProvider(false);
+ columnContentProvider.setIgnoreInheritedElements(true);
Object[] elements = columnContentProvider.getElements();
Assert.assertEquals(2, elements.length);
List<?> roots = Arrays.asList(elements);
@@ -218,6 +222,7 @@ public class UMLRestrictedContentProviderTest {
public void testNotEmptyTableWithProfileWithRestriction() {
NattableModelManager modelManager = new NattableModelManager(notEmptyTable2);
IRestrictedContentProvider columnContentProvider = modelManager.getColumnAxisManager().createPossibleAxisContentProvider(true);
+ columnContentProvider.setIgnoreInheritedElements(true);
Object[] elements = columnContentProvider.getElements();
Assert.assertEquals(2, elements.length);
List<?> roots = Arrays.asList(elements);
@@ -241,4 +246,11 @@ public class UMLRestrictedContentProviderTest {
Assert.assertEquals(1, columnContentProvider.getChildren(sysmlBlockProfile).length);
Assert.assertTrue(columnContentProvider.getChildren(umlPackage).length > 0);
}
+
+
+
+
+
+
+
}
diff --git a/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/UMLRestrictedContentProviderTestCustomProfile.java b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/UMLRestrictedContentProviderTestCustomProfile.java
new file mode 100644
index 00000000000..4f8f993d7a8
--- /dev/null
+++ b/tests/junit/extraplugins/table/org.eclipse.papyrus.uml.nattable.tests/src/org/eclipse/papyrus/uml/nattable/tests/tests/UMLRestrictedContentProviderTestCustomProfile.java
@@ -0,0 +1,442 @@
+/*****************************************************************************
+ * Copyright (c) 2013 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:
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.nattable.tests.tests;
+
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.List;
+
+import org.eclipse.core.runtime.SubProgressMonitor;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
+import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
+import org.eclipse.papyrus.infra.nattable.manager.table.NattableModelManager;
+import org.eclipse.papyrus.infra.nattable.model.nattable.Table;
+import org.eclipse.papyrus.infra.widgets.providers.IRestrictedContentProvider;
+import org.eclipse.papyrus.uml.nattable.tests.Activator;
+import org.eclipse.uml2.uml.Model;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.Profile;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Property;
+import org.eclipse.uml2.uml.Stereotype;
+import org.eclipse.uml2.uml.UMLPackage;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.Test;
+
+
+public class UMLRestrictedContentProviderTestCustomProfile {
+
+ /** the root of the model */
+ private Model modelRoot;
+
+ /** the sub model on which we apply the profile Blocks */
+ private Class stereotypedClass;
+
+ /** the tested table */
+ private Table table;
+
+ /**
+ * the base properties
+ */
+ private Property basePropSte1;
+
+ private Property basePropSte2;
+
+ /**
+ * the packages and the profiles
+ */
+ private Profile rootProfile;
+
+ private Profile profile1;
+
+ private Profile subProfile1;
+
+ private Profile subProfile2;
+
+ private Package package1;
+
+ private Property prop1;
+
+ private Property prop2;
+
+ /**
+ * the stereotypes
+ */
+ private Stereotype stereotype1;
+
+ private Stereotype stereotype2;
+
+ /** the resource set used to load the model */
+ private ResourceSet resourceSet;
+
+ private String resourcePath = "/resources/withCustomProfile/modelTest";
+
+ @Before
+ public void init() {
+ try {
+ resourceSet = new ResourceSetImpl();
+ EMFHelper.loadEMFModel(resourceSet, URI.createPlatformPluginURI(Activator.PLUGIN_ID + resourcePath + ".di", true)); //$NON-NLS-1$
+ Resource umlModel = resourceSet.getResource(URI.createPlatformPluginURI(Activator.PLUGIN_ID + resourcePath + ".uml", true), true); //$NON-NLS-1$
+
+ //we inits the field of this class
+ modelRoot = (Model)umlModel.getContents().get(0);
+ stereotypedClass = (Class)modelRoot.getMember("Class1"); //$NON-NLS-1$
+ Resource notation = resourceSet.getResource(URI.createPlatformPluginURI(Activator.PLUGIN_ID + resourcePath + ".notation", true), true); //$NON-NLS-1$
+ for(final EObject current : notation.getContents()) {
+ if(current instanceof Table) {
+ if(((Table)current).getContext() == modelRoot) {
+ if(((Table)current).getName().equals("GenericTable0")) { //$NON-NLS-1$
+ table = (Table)current;
+ }
+ }
+ }
+ }
+
+ } catch (IOException ex) {
+ Activator.log.error(ex);
+ }
+ Assert.assertNotNull(modelRoot);
+ Assert.assertNotNull(stereotypedClass);
+ Assert.assertNotNull(table);
+
+
+ stereotype1 = stereotypedClass.getAppliedStereotypes().get(0);
+ Assert.assertEquals("Stereotype1", stereotype1.getName());
+ stereotype2 = (Stereotype)stereotype1.getGeneral("Stereotype2");
+ basePropSte2 = (Property)stereotype2.getMember("base_Class");
+
+ prop1 = (Property)stereotype1.getMember("prop1");
+ prop2 = (Property)stereotype2.getMember("prop2");
+
+ subProfile1 = stereotype1.containingProfile();
+ package1 = (Package)subProfile1.eContainer();
+ subProfile2 = stereotype2.containingProfile();
+ profile1 = (Profile)subProfile2.eContainer();
+ rootProfile = (Profile)profile1.eContainer();
+
+
+
+ // Assert.assertNotNull(basePropSte1);
+ Assert.assertNotNull(basePropSte2);
+ Assert.assertNotNull(rootProfile);
+ Assert.assertNotNull(subProfile1);
+ Assert.assertNotNull(subProfile2);
+ Assert.assertNotNull(package1);
+ Assert.assertNotNull(stereotype1);
+ Assert.assertNotNull(stereotype2);
+
+ Assert.assertNotNull(prop1);
+ Assert.assertNotNull(prop2);
+ Assert.assertNotNull(profile1);
+
+ }
+
+ @Test
+ public void testWithRestriction() {
+ NattableModelManager modelManager = new NattableModelManager(table);
+ IRestrictedContentProvider columnContentProvider = modelManager.getColumnAxisManager().createPossibleAxisContentProvider(true);
+ columnContentProvider.setIgnoreInheritedElements(true);
+ Object[] elements = columnContentProvider.getElements();
+ Assert.assertEquals(2, elements.length);
+ List<?> roots = Arrays.asList(elements);
+ Profile rootProfile = null;
+ EPackage umlPackage = null;
+
+ for(final Object current : roots) {
+ if(current == UMLPackage.eINSTANCE) {
+ umlPackage = (EPackage)current;
+ } else if(current == this.rootProfile) {
+ rootProfile = (Profile)current;
+ }
+ }
+
+ Assert.assertNotNull(umlPackage);
+ Assert.assertNotNull(rootProfile);
+
+ //test the children for umlPackage
+ List<?> children = Arrays.asList(columnContentProvider.getChildren(umlPackage));
+ Assert.assertEquals(13, children.size());//1 of them is not displayed in the dialog, because it doesn't have valid feature
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getBehavioredClassifier()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getClass_()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getClassifier()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getElement()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getEncapsulatedClassifier()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getNamedElement()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getNamespace()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getPackageableElement()));//not displayed
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getParameterableElement()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getRedefinableElement()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getStructuredClassifier()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getTemplateableElement()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getType()));
+
+ //test that we don't have the inherited properties
+ children = Arrays.asList(columnContentProvider.getChildren(UMLPackage.eINSTANCE.getClassifier()));
+ Assert.assertFalse(children.contains(UMLPackage.eINSTANCE.getNamedElement_Name()));
+
+ //test the children for the rootProfile
+ children = Arrays.asList(columnContentProvider.getChildren(rootProfile));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(package1));
+
+ children = Arrays.asList(columnContentProvider.getChildren(children.get(0)));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(subProfile1));
+
+ children = Arrays.asList(columnContentProvider.getChildren(children.get(0)));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(stereotype1));
+
+ children = Arrays.asList(columnContentProvider.getChildren(children.get(0)));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(prop1));
+
+ }
+
+
+ @Test
+ public void testWithoutRestriction() {
+ NattableModelManager modelManager = new NattableModelManager(table);
+ IRestrictedContentProvider columnContentProvider = modelManager.getColumnAxisManager().createPossibleAxisContentProvider(false);
+ columnContentProvider.setIgnoreInheritedElements(true);
+ Object[] elements = columnContentProvider.getElements();
+ Assert.assertEquals(2, elements.length);
+ List<?> roots = Arrays.asList(elements);
+ Profile rootProfile = null;
+ EPackage umlPackage = null;
+
+ for(final Object current : roots) {
+ if(current == UMLPackage.eINSTANCE) {
+ umlPackage = (EPackage)current;
+ } else if(current == this.rootProfile) {
+ rootProfile = (Profile)current;
+ }
+ }
+
+ Assert.assertNotNull(umlPackage);
+ Assert.assertNotNull(rootProfile);
+
+ //test the children for umlPackage
+ List<?> children = Arrays.asList(columnContentProvider.getChildren(umlPackage));
+ Assert.assertTrue(children.size() >= 242);//approximatly 242 metaclasses in UML
+
+ //test that we don't have the inherited properties
+ children = Arrays.asList(columnContentProvider.getChildren(UMLPackage.eINSTANCE.getClassifier()));
+ Assert.assertFalse(children.contains(UMLPackage.eINSTANCE.getNamedElement_Name()));
+
+
+ //test the children for the rootProfile
+ children = Arrays.asList(columnContentProvider.getChildren(rootProfile));
+ Assert.assertEquals(2, children.size());
+ Profile profile1 = null;
+ Package package1 = null;
+ for(final Object current : children) {
+ if(current instanceof Profile && ((Profile)current).getName().equals("Profile1")) {
+ profile1 = (Profile)current;
+ } else if(current instanceof Package && ((Package)current).getName().equals("Package1")) {
+ package1 = (Package)current;
+ }
+ }
+
+ Assert.assertNotNull(package1);
+ Assert.assertNotNull(profile1);
+
+ //test the children of package1
+ children = Arrays.asList(columnContentProvider.getChildren(package1));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(subProfile1));
+
+ children = Arrays.asList(columnContentProvider.getChildren(children.get(0)));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(stereotype1));
+
+ children = Arrays.asList(columnContentProvider.getChildren(children.get(0)));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(prop1));
+
+
+
+ //test the children for profile1
+ children = Arrays.asList(columnContentProvider.getChildren(profile1));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(subProfile2));
+
+
+
+ children = Arrays.asList(columnContentProvider.getChildren(children.get(0)));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(stereotype2));
+
+
+
+ children = Arrays.asList(columnContentProvider.getChildren(children.get(0)));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(prop2));
+
+ }
+
+ @Test
+ public void testWithRestrictionWithInheritedProperties() {
+ NattableModelManager modelManager = new NattableModelManager(table);
+ IRestrictedContentProvider columnContentProvider = modelManager.getColumnAxisManager().createPossibleAxisContentProvider(true);
+ columnContentProvider.setIgnoreInheritedElements(false);
+ Object[] elements = columnContentProvider.getElements();
+ Assert.assertEquals(2, elements.length);
+ List<?> roots = Arrays.asList(elements);
+ Profile rootProfile = null;
+ EPackage umlPackage = null;
+
+ for(final Object current : roots) {
+ if(current == UMLPackage.eINSTANCE) {
+ umlPackage = (EPackage)current;
+ } else if(current == this.rootProfile) {
+ rootProfile = (Profile)current;
+ }
+ }
+
+ Assert.assertNotNull(umlPackage);
+ Assert.assertNotNull(rootProfile);
+
+ //test the children for umlPackage
+ List<?> children = Arrays.asList(columnContentProvider.getChildren(umlPackage));
+ Assert.assertEquals(13, children.size());//1 of them is not displayed in the dialog, because it doesn't have valid feature
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getBehavioredClassifier()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getClass_()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getClassifier()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getElement()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getEncapsulatedClassifier()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getNamedElement()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getNamespace()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getPackageableElement()));//not displayed
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getParameterableElement()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getRedefinableElement()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getStructuredClassifier()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getTemplateableElement()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getType()));
+
+ //test that we have the inherited properties
+ children = Arrays.asList(columnContentProvider.getChildren(UMLPackage.eINSTANCE.getClassifier()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getNamedElement_Name()));
+
+
+ //test the children for the rootProfile
+ children = Arrays.asList(columnContentProvider.getChildren(rootProfile));
+ Assert.assertEquals(1, children.size());
+
+ Assert.assertTrue(children.contains(package1));
+
+
+ children = Arrays.asList(columnContentProvider.getChildren(children.get(0)));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(subProfile1));
+
+ children = Arrays.asList(columnContentProvider.getChildren(children.get(0)));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(stereotype1));
+
+ children = Arrays.asList(columnContentProvider.getChildren(children.get(0)));
+ Assert.assertEquals(2, children.size());
+
+ Assert.assertTrue(children.contains(prop1));
+ Assert.assertTrue(children.contains(prop2));
+
+ }
+
+
+ @Test
+ public void testWithoutRestrictionWithInheritedProperties() {
+ NattableModelManager modelManager = new NattableModelManager(table);
+ IRestrictedContentProvider columnContentProvider = modelManager.getColumnAxisManager().createPossibleAxisContentProvider(false);
+ columnContentProvider.setIgnoreInheritedElements(false);
+ Object[] elements = columnContentProvider.getElements();
+ Assert.assertEquals(2, elements.length);
+ List<?> roots = Arrays.asList(elements);
+ Profile rootProfile = null;
+ EPackage umlPackage = null;
+
+ for(final Object current : roots) {
+ if(current == UMLPackage.eINSTANCE) {
+ umlPackage = (EPackage)current;
+ } else if(current == this.rootProfile) {
+ rootProfile = (Profile)current;
+ }
+ }
+
+ Assert.assertNotNull(umlPackage);
+ Assert.assertNotNull(rootProfile);
+
+ //test the children for umlPackage
+ List<?> children = Arrays.asList(columnContentProvider.getChildren(umlPackage));
+ Assert.assertTrue(children.size() >= 242);//approximatly 242 metaclasses in UML
+
+ //test that we have the inherited properties
+ children = Arrays.asList(columnContentProvider.getChildren(UMLPackage.eINSTANCE.getClassifier()));
+ Assert.assertTrue(children.contains(UMLPackage.eINSTANCE.getNamedElement_Name()));
+
+ //test the children for the rootProfile
+ children = Arrays.asList(columnContentProvider.getChildren(rootProfile));
+ Assert.assertEquals(2, children.size());
+ Profile profile1 = null;
+ Package package1 = null;
+ for(final Object current : children) {
+ if(current instanceof Profile && ((Profile)current).getName().equals("Profile1")) {
+ profile1 = (Profile)current;
+ } else if(current instanceof Package && ((Package)current).getName().equals("Package1")) {
+ package1 = (Package)current;
+ }
+ }
+
+ Assert.assertNotNull(package1);
+ Assert.assertNotNull(profile1);
+
+ //test the children of package1
+ children = Arrays.asList(columnContentProvider.getChildren(package1));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(subProfile1));
+
+ children = Arrays.asList(columnContentProvider.getChildren(children.get(0)));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(stereotype1));
+
+ children = Arrays.asList(columnContentProvider.getChildren(children.get(0)));
+ Assert.assertEquals(2, children.size());
+ Assert.assertTrue(children.contains(prop1));
+ Assert.assertTrue(children.contains(prop2));
+
+
+ //test the children for profile1
+ children = Arrays.asList(columnContentProvider.getChildren(profile1));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(subProfile2));
+
+
+ children = Arrays.asList(columnContentProvider.getChildren(children.get(0)));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(stereotype2));
+
+
+ children = Arrays.asList(columnContentProvider.getChildren(children.get(0)));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(prop2));
+
+ }
+}
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/src/org/eclipse/papyrus/uml/tools/tests/tests/UMLStereotypePropertyContentProviderTest.java b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/src/org/eclipse/papyrus/uml/tools/tests/tests/UMLStereotypePropertyContentProviderTest.java
index 3b3ef6b3ec4..97dbf56062f 100644
--- a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/src/org/eclipse/papyrus/uml/tools/tests/tests/UMLStereotypePropertyContentProviderTest.java
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/src/org/eclipse/papyrus/uml/tools/tests/tests/UMLStereotypePropertyContentProviderTest.java
@@ -119,7 +119,9 @@ public class UMLStereotypePropertyContentProviderTest {
*/
@Test
public void testProfileContentWithoutBaseClassPropertyWithoutInheritedProperties() {
- UMLStereotypePropertyContentProvider provider = new UMLStereotypePropertyContentProvider(false);
+ UMLStereotypePropertyContentProvider provider = new UMLStereotypePropertyContentProvider();
+ provider.setIgnoreBaseProperty(true);
+ provider.setIgnoreInheritedElements(true);
provider.setProfiles(Collections.singletonList(rootProfile));
//we test the root
Object[] elements = provider.getElements();
@@ -177,7 +179,9 @@ public class UMLStereotypePropertyContentProviderTest {
*/
@Test
public void testProfileContentWithBaseClassPropertyWithoutInheritedProperties() {
- UMLStereotypePropertyContentProvider provider = new UMLStereotypePropertyContentProvider(true);
+ UMLStereotypePropertyContentProvider provider = new UMLStereotypePropertyContentProvider();
+ provider.setIgnoreBaseProperty(false);
+ provider.setIgnoreInheritedElements(true);
provider.setProfiles(Collections.singletonList(rootProfile));
//we test the root
Object[] elements = provider.getElements();
@@ -227,6 +231,133 @@ public class UMLStereotypePropertyContentProviderTest {
Assert.assertEquals(false, provider.hasChildren(prop2));
}
+
+ /**
+ * We test the children of the rootProfile.
+ * In this test,
+ * <ul>
+ * <li>we don't want the properties base_ExtendedClass</li>
+ * <li>we want the inheritedProperties</li>
+ * </ul>
+ */
+ @Test
+ public void testProfileContentWithoutBaseClassPropertyWithInheritedProperties() {
+ UMLStereotypePropertyContentProvider provider = new UMLStereotypePropertyContentProvider();
+ provider.setIgnoreBaseProperty(true);
+ provider.setIgnoreInheritedElements(false);
+ provider.setProfiles(Collections.singletonList(rootProfile));
+ //we test the root
+ Object[] elements = provider.getElements();
+ Assert.assertEquals(1, elements.length);
+ Assert.assertEquals(elements[0], rootProfile);
+
+ //we test the first level of children
+ Assert.assertEquals(true, provider.hasChildren(rootProfile));
+ List<?> children = Arrays.asList(provider.getChildren(rootProfile));
+
+ Assert.assertEquals(2, children.size());
+ Assert.assertTrue(children.contains(subProfile1));
+ Assert.assertTrue(children.contains(subProfile2));
+
+
+ //we test the children of the first subprofile
+ Assert.assertEquals(true, provider.hasChildren(subProfile1));
+ children = Arrays.asList(provider.getChildren(subProfile1));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(ste1));
+
+ //we test the children of the ste1
+ Assert.assertEquals(true, provider.hasChildren(ste1));
+ children = Arrays.asList(provider.getChildren(ste1));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(prop1));
+
+ //we test the children of the prop1
+ Assert.assertEquals(false, provider.hasChildren(prop1));
+
+
+ //we test the children of the 2nd subprofile
+ Assert.assertEquals(true, provider.hasChildren(subProfile2));
+ children = Arrays.asList(provider.getChildren(subProfile2));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(ste2));
+
+ //we test the children of the ste2
+ Assert.assertEquals(true, provider.hasChildren(ste2));
+ children = Arrays.asList(provider.getChildren(ste2));
+ Assert.assertEquals(2, children.size());
+ Assert.assertTrue(children.contains(prop2));
+ Assert.assertTrue(children.contains(prop1));
+
+ //we test the children of the prop2
+ Assert.assertEquals(false, provider.hasChildren(prop2));
+ }
+
+ /**
+ * We test the children of the rootProfile.
+ * In this test,
+ * <ul>
+ * <li>we want the properties base_ExtendedClass</li>
+ * <li>we want the inheritedProperties</li>
+ * </ul>
+ */
+ @Test
+ public void testProfileContentWithBaseClassPropertyWithInheritedProperties() {
+ UMLStereotypePropertyContentProvider provider = new UMLStereotypePropertyContentProvider();
+ provider.setIgnoreBaseProperty(false);
+ provider.setIgnoreInheritedElements(false);
+ provider.setProfiles(Collections.singletonList(rootProfile));
+ //we test the root
+ Object[] elements = provider.getElements();
+ Assert.assertEquals(1, elements.length);
+ Assert.assertEquals(elements[0], rootProfile);
+
+ //we test the first level of children
+ Assert.assertEquals(true, provider.hasChildren(rootProfile));
+ List<?> children = Arrays.asList(provider.getChildren(rootProfile));
+
+ Assert.assertEquals(2, children.size());
+ Assert.assertTrue(children.contains(subProfile1));
+ Assert.assertTrue(children.contains(subProfile2));
+
+
+ //we test the children of the first subprofile
+ Assert.assertEquals(true, provider.hasChildren(subProfile1));
+ children = Arrays.asList(provider.getChildren(subProfile1));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(ste1));
+
+ //we test the children of the ste1
+ Assert.assertEquals(true, provider.hasChildren(ste1));
+ children = Arrays.asList(provider.getChildren(ste1));
+ Assert.assertEquals(2, children.size());
+ Assert.assertTrue(children.contains(prop1));
+ Assert.assertTrue(children.contains(basePropSte1));
+
+ //we test the children of the prop1
+ Assert.assertEquals(false, provider.hasChildren(prop1));
+
+
+ //we test the children of the 2nd subprofile
+ Assert.assertEquals(true, provider.hasChildren(subProfile2));
+ children = Arrays.asList(provider.getChildren(subProfile2));
+ Assert.assertEquals(1, children.size());
+ Assert.assertTrue(children.contains(ste2));
+
+ //we test the children of the ste2
+ Assert.assertEquals(true, provider.hasChildren(ste2));
+ children = Arrays.asList(provider.getChildren(ste2));
+ Assert.assertEquals(4, children.size());
+ Assert.assertTrue(children.contains(prop2));
+ Assert.assertTrue(children.contains(basePropSte2));
+ Assert.assertTrue(children.contains(basePropSte1));
+ Assert.assertTrue(children.contains(prop1));
+
+ //we test the children of the prop2
+ Assert.assertEquals(false, provider.hasChildren(prop2));
+ }
+
+
/**
*
*/

Back to the top