Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2013-08-05 07:13:58 -0400
committerCamille Letavernier2013-08-05 07:13:58 -0400
commit05c214647a3544fc83ebb6f21f435bc6e36056aa (patch)
tree28b21996577cb15016a6e1a8d758d61928521932 /tests/junit/plugins
parent4df5094dd6e2126b2a0f866f16aae06a417a28b3 (diff)
downloadorg.eclipse.papyrus-05c214647a3544fc83ebb6f21f435bc6e36056aa.tar.gz
org.eclipse.papyrus-05c214647a3544fc83ebb6f21f435bc6e36056aa.tar.xz
org.eclipse.papyrus-05c214647a3544fc83ebb6f21f435bc6e36056aa.zip
408491: Papyrus shall enable to easily switch between local and
registered profiles. https://bugs.eclipse.org/bugs/show_bug.cgi?id=408491 Add test for this feature. It currently fails (Profiles are properly switched, but not Stereotype Applications)
Diffstat (limited to 'tests/junit/plugins')
-rw-r--r--tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/PapyrusProjectUtils.java15
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/build.properties5
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/model.di17
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/model.notation143
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/model.uml17
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p1/profile1.profile.di17
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p1/profile1.profile.notation137
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p1/profile1.profile.uml65
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p2/profile2.profile.di17
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p2/profile2.profile.notation137
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p2/profile2.profile.uml65
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/src/org/eclipse/papyrus/uml/tools/tests/tests/DependencyManagementTest.java87
12 files changed, 721 insertions, 1 deletions
diff --git a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/PapyrusProjectUtils.java b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/PapyrusProjectUtils.java
index f8d330afe37..10bdf5ad0e7 100644
--- a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/PapyrusProjectUtils.java
+++ b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/PapyrusProjectUtils.java
@@ -18,6 +18,7 @@ import java.io.InputStream;
import java.net.URL;
import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.NullProgressMonitor;
@@ -58,10 +59,24 @@ public class PapyrusProjectUtils {
public static IFile copyIFile(String sourcePath, Bundle sourceBundle, IProject targetProject, String targetFileName) throws CoreException, IOException {
final IFile createdFile = targetProject.getFile(targetFileName);
+ if(createdFile.getParent() instanceof IFolder) {
+ createRecursiveFolder((IFolder)createdFile.getParent());
+ }
URL bundleResource = sourceBundle.getResource(sourcePath);
Assert.assertNotNull("Cannot find bundle resource: " + sourcePath, bundleResource);
InputStream bundleResourceStream = bundleResource.openStream();
createdFile.create(bundleResourceStream, true, new NullProgressMonitor());
return createdFile;
}
+
+ public static void createRecursiveFolder(IFolder folderToCreate) throws CoreException {
+ if(folderToCreate.exists()) {
+ return;
+ }
+
+ if(folderToCreate.getParent() instanceof IFolder) {
+ createRecursiveFolder((IFolder)folderToCreate.getParent());
+ }
+ folderToCreate.create(true, true, new NullProgressMonitor());
+ }
}
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/build.properties b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/build.properties
index 41eb6ade2b4..130df98d220 100644
--- a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/build.properties
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/build.properties
@@ -1,4 +1,7 @@
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
- .
+ .,\
+ resources/,\
+ about.html
+src.includes = about.html
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/model.di b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/model.di
new file mode 100644
index 00000000000..0892c56fb4c
--- /dev/null
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/model.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.notation#_kicukPtrEeKiosy8GwIZjA"/>
+ </availablePage>
+ </pageList>
+ <sashModel currentSelection="//@sashModel/@windows.0/@children.0">
+ <windows>
+ <children xsi:type="di:TabFolder">
+ <children>
+ <emfPageIdentifier href="model.notation#_kicukPtrEeKiosy8GwIZjA"/>
+ </children>
+ </children>
+ </windows>
+ </sashModel>
+</di:SashWindowsMngr>
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/model.notation b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/model.notation
new file mode 100644
index 00000000000..f60acc0b045
--- /dev/null
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/model.notation
@@ -0,0 +1,143 @@
+<?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="_kicukPtrEeKiosy8GwIZjA" type="PapyrusUMLClassDiagram" name="NewDiagram" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_wgz-APtrEeKiosy8GwIZjA" type="2008">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_y0OyIPtrEeKiosy8GwIZjA" source="Stereotype_Annotation">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_vfQ3s_2rEeKYpIVCYltNyg" key="StereotypeWithQualifiedNameList" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_vfQ3tP2rEeKYpIVCYltNyg" key="StereotypeList" value="Profile::Stereotype1"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_vfQ3tf2rEeKYpIVCYltNyg" key="Stereotype_Presentation_Kind" value="HorizontalStereo"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_vfQ3tv2rEeKYpIVCYltNyg" key="PropStereoDisplay" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_vfQ3t_2rEeKYpIVCYltNyg" key="StereotypePropertyLocation" value="Compartment"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_wgz-AvtrEeKiosy8GwIZjA" type="5029"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_wgz-A_trEeKiosy8GwIZjA" type="7017">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_wg0lEPtrEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_wg0lEftrEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_wgz-BPtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_wgz-BftrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_wgz-BvtrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_wgz-B_trEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_wgz-CPtrEeKiosy8GwIZjA" type="7018">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_wg0lEvtrEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_wg0lE_trEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_wgz-CftrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_wgz-CvtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_wgz-C_trEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_wgz-DPtrEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_wgz-DftrEeKiosy8GwIZjA" type="7019">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_wg0lFPtrEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_wg0lFftrEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_wgz-DvtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_wgz-D_trEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_wgz-EPtrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_wgz-EftrEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_wg9vAPtrEeKiosy8GwIZjA" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_wg9vA_trEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_wg9vBPtrEeKiosy8GwIZjA" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_wg9vAftrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_wg9vAvtrEeKiosy8GwIZjA"/>
+ </children>
+ <element xmi:type="uml:Class" href="model.uml#_wgyI0PtrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_wgz-AftrEeKiosy8GwIZjA" x="380" y="466"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_wn2aIPtrEeKiosy8GwIZjA" type="2008">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_zvPo4PtrEeKiosy8GwIZjA" source="Stereotype_Annotation">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="__QB6ZP2uEeKYpIVCYltNyg" key="StereotypeWithQualifiedNameList" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="__QB6Zf2uEeKYpIVCYltNyg" key="StereotypeList" value="Profile::Stereotype2"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="__QB6Zv2uEeKYpIVCYltNyg" key="Stereotype_Presentation_Kind" value="HorizontalStereo"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="__QB6Z_2uEeKYpIVCYltNyg" key="PropStereoDisplay" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="__QLEUP2uEeKYpIVCYltNyg" key="StereotypePropertyLocation" value="Compartment"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_wn2aIvtrEeKiosy8GwIZjA" type="5029"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_wn3BMPtrEeKiosy8GwIZjA" type="7017">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_wn3BP_trEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_wn3BQPtrEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_wn3BMftrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_wn3BMvtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_wn3BM_trEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_wn3BNPtrEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_wn3BNftrEeKiosy8GwIZjA" type="7018">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_wn3oQPtrEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_wn3oQftrEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_wn3BNvtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_wn3BN_trEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_wn3BOPtrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_wn3BOftrEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_wn3BOvtrEeKiosy8GwIZjA" type="7019">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_wn3oQvtrEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_wn3oQ_trEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_wn3BO_trEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_wn3BPPtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_wn3BPftrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_wn3BPvtrEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_woAyMPtrEeKiosy8GwIZjA" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_woAyM_trEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_woAyNPtrEeKiosy8GwIZjA" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_woAyMftrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_woAyMvtrEeKiosy8GwIZjA"/>
+ </children>
+ <element xmi:type="uml:Class" href="model.uml#_wn1zEPtrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_wn2aIftrEeKiosy8GwIZjA" x="645" y="270"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_w5otsPtrEeKiosy8GwIZjA" type="2008">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_zPw3kPtrEeKiosy8GwIZjA" source="Stereotype_Annotation">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ALPlcP2vEeKYpIVCYltNyg" key="StereotypeWithQualifiedNameList" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ALPlcf2vEeKYpIVCYltNyg" key="StereotypeList" value="Profile::Stereotype3"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ALPlcv2vEeKYpIVCYltNyg" key="Stereotype_Presentation_Kind" value="HorizontalStereo"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ALPlc_2vEeKYpIVCYltNyg" key="PropStereoDisplay" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ALPldP2vEeKYpIVCYltNyg" key="StereotypePropertyLocation" value="Compartment"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_w5otsvtrEeKiosy8GwIZjA" type="5029"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_w5ots_trEeKiosy8GwIZjA" type="7017">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_w5pUwPtrEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_w5pUwftrEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_w5ottPtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_w5ottftrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_w5ottvtrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_w5ott_trEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_w5otuPtrEeKiosy8GwIZjA" type="7018">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_w5pUwvtrEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_w5pUw_trEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_w5otuftrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_w5otuvtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_w5otu_trEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_w5otvPtrEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_w5otvftrEeKiosy8GwIZjA" type="7019">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_w5pUxPtrEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_w5pUxftrEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_w5otvvtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_w5otv_trEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_w5otwPtrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_w5otwftrEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_w5yesPtrEeKiosy8GwIZjA" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_w5yes_trEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_w5yetPtrEeKiosy8GwIZjA" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_w5yesftrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_w5yesvtrEeKiosy8GwIZjA"/>
+ </children>
+ <element xmi:type="uml:Class" href="model.uml#_w5nfkPtrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_w5otsftrEeKiosy8GwIZjA" x="965" y="490" width="121" height="96"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_kicukftrEeKiosy8GwIZjA"/>
+ <element xmi:type="uml:Model" href="model.uml#_kh5U8PtrEeKiosy8GwIZjA"/>
+</notation:Diagram>
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/model.uml b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/model.uml
new file mode 100644
index 00000000000..a1662c8daf3
--- /dev/null
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/model.uml
@@ -0,0 +1,17 @@
+<?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:Profile="http:///schemas/Profile/_szf-wPtrEeKiosy8GwIZjA/0" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML" xsi:schemaLocation="http:///schemas/Profile/_szf-wPtrEeKiosy8GwIZjA/0 p1/profile1.profile.uml#_s0UeIPtrEeKiosy8GwIZjA">
+ <uml:Model xmi:id="_kh5U8PtrEeKiosy8GwIZjA" name="model">
+ <packagedElement xmi:type="uml:Class" xmi:id="_wgyI0PtrEeKiosy8GwIZjA" name="Class1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_wn1zEPtrEeKiosy8GwIZjA" name="Class2"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_w5nfkPtrEeKiosy8GwIZjA" name="Class3"/>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_wP_TwPtrEeKiosy8GwIZjA">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_wQuTkPtrEeKiosy8GwIZjA" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="p1/profile1.profile.uml#_s0UeIPtrEeKiosy8GwIZjA"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="p1/profile1.profile.uml#_oA-q8PtrEeKiosy8GwIZjA"/>
+ </profileApplication>
+ </uml:Model>
+ <Profile:Stereotype1 xmi:id="_vfHtwP2rEeKYpIVCYltNyg" base_Class="_wgyI0PtrEeKiosy8GwIZjA"/>
+ <Profile:Stereotype2 xmi:id="__QB6YP2uEeKYpIVCYltNyg" base_Class="_wn1zEPtrEeKiosy8GwIZjA"/>
+ <Profile:Stereotype3 xmi:id="_ALF0cP2vEeKYpIVCYltNyg" base_Class="_w5nfkPtrEeKiosy8GwIZjA"/>
+</xmi:XMI>
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p1/profile1.profile.di b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p1/profile1.profile.di
new file mode 100644
index 00000000000..42480728a9f
--- /dev/null
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p1/profile1.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="profile1.profile.notation#_oA_5EPtrEeKiosy8GwIZjA"/>
+ </availablePage>
+ </pageList>
+ <sashModel currentSelection="//@sashModel/@windows.0/@children.0">
+ <windows>
+ <children xsi:type="di:TabFolder">
+ <children>
+ <emfPageIdentifier href="profile1.profile.notation#_oA_5EPtrEeKiosy8GwIZjA"/>
+ </children>
+ </children>
+ </windows>
+ </sashModel>
+</di:SashWindowsMngr>
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p1/profile1.profile.notation b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p1/profile1.profile.notation
new file mode 100644
index 00000000000..6c47b646fde
--- /dev/null
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p1/profile1.profile.notation
@@ -0,0 +1,137 @@
+<?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:l2="http://www.eclipse.org/uml2/4.0.0/UML/Profile/L2" 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="_oA_5EPtrEeKiosy8GwIZjA" type="PapyrusUMLProfileDiagram" name="NewDiagram" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_ozgUEPtrEeKiosy8GwIZjA" type="1026">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ozg7IPtrEeKiosy8GwIZjA" type="1034"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ozg7IftrEeKiosy8GwIZjA" type="1071">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ozlzoPtrEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ozmasPtrEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ozg7IvtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ozg7I_trEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ozg7JPtrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ozg7JftrEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ozg7JvtrEeKiosy8GwIZjA" visible="false" type="1019">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_oznBwPtrEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_oznBwftrEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ozg7J_trEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ozg7KPtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ozg7KftrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ozg7KvtrEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_oz1EMPtrEeKiosy8GwIZjA" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_oz1EM_trEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_oz1ENPtrEeKiosy8GwIZjA" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_oz1EMftrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_oz1EMvtrEeKiosy8GwIZjA"/>
+ </children>
+ <element xmi:type="uml:Stereotype" href="profile1.profile.uml#_ozdQwPtrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ozgUEftrEeKiosy8GwIZjA" x="415" y="510"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_o4IVYPtrEeKiosy8GwIZjA" type="1026">
+ <children xmi:type="notation:DecorationNode" xmi:id="_o4IVYvtrEeKiosy8GwIZjA" type="1034"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_o4IVY_trEeKiosy8GwIZjA" type="1071">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_o4I8cPtrEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_o4I8cftrEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_o4IVZPtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_o4IVZftrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_o4IVZvtrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_o4IVZ_trEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_o4IVaPtrEeKiosy8GwIZjA" visible="false" type="1019">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_o4I8cvtrEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_o4I8c_trEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_o4IVaftrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_o4IVavtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_o4IVa_trEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_o4IVbPtrEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_o4PDEPtrEeKiosy8GwIZjA" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_o4PDE_trEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_o4PDFPtrEeKiosy8GwIZjA" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_o4PDEftrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_o4PDEvtrEeKiosy8GwIZjA"/>
+ </children>
+ <element xmi:type="uml:Stereotype" href="profile1.profile.uml#_o4HuUPtrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_o4IVYftrEeKiosy8GwIZjA" x="785" y="510"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_o9XasPtrEeKiosy8GwIZjA" type="1026">
+ <children xmi:type="notation:DecorationNode" xmi:id="_o9XasvtrEeKiosy8GwIZjA" type="1034"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_o9Xas_trEeKiosy8GwIZjA" type="1071">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_o9YBwPtrEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_o9YBwftrEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_o9XatPtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_o9XatftrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_o9XatvtrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_o9Xat_trEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_o9XauPtrEeKiosy8GwIZjA" visible="false" type="1019">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_o9YBwvtrEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_o9YBw_trEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_o9XauftrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_o9XauvtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_o9Xau_trEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_o9XavPtrEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_o9eIYPtrEeKiosy8GwIZjA" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_o9eIY_trEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_o9eIZPtrEeKiosy8GwIZjA" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_o9eIYftrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_o9eIYvtrEeKiosy8GwIZjA"/>
+ </children>
+ <element xmi:type="uml:Stereotype" href="profile1.profile.uml#_o9WMkPtrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_o9XasftrEeKiosy8GwIZjA" x="1110" y="506"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_qrPRwPtrEeKiosy8GwIZjA" type="1031">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_qrQf4PtrEeKiosy8GwIZjA" source="Stereotype_Annotation">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qrQf4ftrEeKiosy8GwIZjA" key="StereotypeWithQualifiedNameList" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qrQf4vtrEeKiosy8GwIZjA" key="StereotypeList" value="StandardProfileL2::Metaclass"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qrQf4_trEeKiosy8GwIZjA" key="Stereotype_Presentation_Kind" value="HorizontalStereo"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qrQf5PtrEeKiosy8GwIZjA" key="PropStereoDisplay" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qrQf5ftrEeKiosy8GwIZjA" key="StereotypePropertyLocation" value="Compartment"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_qrPRwvtrEeKiosy8GwIZjA" type="1084"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_qruZ8PtrEeKiosy8GwIZjA" visible="false" type="AppliedStereotypeCompartement">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_qruZ8ftrEeKiosy8GwIZjA" showTitle="true"/>
+ <element xmi:type="l2:Metaclass" href="pathmap://UML_METAMODELS/UML.metamodel.uml#_Sh6H8KtKEeGF4uwJob34Mw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_qruZ8vtrEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_qrvBAPtrEeKiosy8GwIZjA" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_qrvBA_trEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qrvBBPtrEeKiosy8GwIZjA" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_qrvBAftrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_qrvBAvtrEeKiosy8GwIZjA"/>
+ </children>
+ <element xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_qrPRw_trEeKiosy8GwIZjA" x="785" y="125"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_oA_5EftrEeKiosy8GwIZjA"/>
+ <element xmi:type="uml:Profile" href="profile1.profile.uml#_oA-q8PtrEeKiosy8GwIZjA"/>
+ <edges xmi:type="notation:Connector" xmi:id="_rNDlYPtrEeKiosy8GwIZjA" type="1013" source="_ozgUEPtrEeKiosy8GwIZjA" target="_qrPRwPtrEeKiosy8GwIZjA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_rNDlYftrEeKiosy8GwIZjA"/>
+ <element xmi:type="uml:Extension" href="profile1.profile.uml#_rMhZ4ftrEeKiosy8GwIZjA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_rNDlYvtrEeKiosy8GwIZjA" points="[-6, -59, 27, 266]$[-32, -332, 1, -7]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_rNK6IPtrEeKiosy8GwIZjA" id="(0.76,0.59)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_rNK6IftrEeKiosy8GwIZjA" id="(0.54,0.14)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_rWLsMPtrEeKiosy8GwIZjA" type="1013" source="_o4IVYPtrEeKiosy8GwIZjA" target="_qrPRwPtrEeKiosy8GwIZjA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_rWLsMftrEeKiosy8GwIZjA"/>
+ <element xmi:type="uml:Extension" href="profile1.profile.uml#_rWKeEftrEeKiosy8GwIZjA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_rWLsMvtrEeKiosy8GwIZjA" points="[-50, -25, 359, 171]$[-459, -203, -50, -7]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_rjcsI_trEeKiosy8GwIZjA" type="1013" source="_o9XasPtrEeKiosy8GwIZjA" target="_qrPRwPtrEeKiosy8GwIZjA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_rjcsJPtrEeKiosy8GwIZjA"/>
+ <element xmi:type="uml:Extension" href="profile1.profile.uml#_rjcsIftrEeKiosy8GwIZjA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_rjcsJftrEeKiosy8GwIZjA" points="[-90, -50, 691, 391]$[-778, -416, 3, 25]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_rjmdIPtrEeKiosy8GwIZjA" id="(0.9,0.7)"/>
+ </edges>
+</notation:Diagram>
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p1/profile1.profile.uml b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p1/profile1.profile.uml
new file mode 100644
index 00000000000..51c736c4529
--- /dev/null
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p1/profile1.profile.uml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<uml:Profile xmi:version="20110701" xmlns:xmi="http://www.omg.org/spec/XMI/20110701" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML" xmi:id="_oA-q8PtrEeKiosy8GwIZjA" name="Profile" metaclassReference="_qrODoPtrEeKiosy8GwIZjA" metamodelReference="_oA-q8ftrEeKiosy8GwIZjA">
+ <eAnnotations xmi:id="_s0T3EPtrEeKiosy8GwIZjA" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <contents xmi:type="ecore:EPackage" xmi:id="_s0UeIPtrEeKiosy8GwIZjA" name="Profile" nsURI="http:///schemas/Profile/_szf-wPtrEeKiosy8GwIZjA/0" nsPrefix="Profile">
+ <eAnnotations xmi:id="_s0WTUvtrEeKiosy8GwIZjA" source="PapyrusVersion">
+ <details xmi:id="_s0WTU_trEeKiosy8GwIZjA" key="Version" value="0.0.1"/>
+ <details xmi:id="_s0WTVPtrEeKiosy8GwIZjA" key="Comment" value=""/>
+ <details xmi:id="_s0WTVftrEeKiosy8GwIZjA" key="Copyright" value=""/>
+ <details xmi:id="_s0WTVvtrEeKiosy8GwIZjA" key="Date" value="2013-08-02"/>
+ <details xmi:id="_s0WTV_trEeKiosy8GwIZjA" key="Author" value=""/>
+ </eAnnotations>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_s0UeIftrEeKiosy8GwIZjA" name="Stereotype1">
+ <eAnnotations xmi:id="_s0UeIvtrEeKiosy8GwIZjA" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_ozdQwPtrEeKiosy8GwIZjA"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_s0UeI_trEeKiosy8GwIZjA" 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>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_s0UeJftrEeKiosy8GwIZjA" name="Stereotype2">
+ <eAnnotations xmi:id="_s0UeJvtrEeKiosy8GwIZjA" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_o4HuUPtrEeKiosy8GwIZjA"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_s0UeJ_trEeKiosy8GwIZjA" 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>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_s0UeKftrEeKiosy8GwIZjA" name="Stereotype3">
+ <eAnnotations xmi:id="_s0UeKvtrEeKiosy8GwIZjA" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_o9WMkPtrEeKiosy8GwIZjA"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_s0UeK_trEeKiosy8GwIZjA" 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>
+ <elementImport xmi:id="_qrODoPtrEeKiosy8GwIZjA" alias="Class">
+ <importedElement xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
+ </elementImport>
+ <packageImport xmi:id="_oA-q8ftrEeKiosy8GwIZjA">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_METAMODELS/UML.metamodel.uml#_0"/>
+ </packageImport>
+ <packageImport xmi:id="_oA-q8vtrEeKiosy8GwIZjA">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_ozdQwPtrEeKiosy8GwIZjA" name="Stereotype1">
+ <ownedAttribute xmi:id="_rMhZ4PtrEeKiosy8GwIZjA" name="base_Class" association="_rMhZ4ftrEeKiosy8GwIZjA">
+ <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_o4HuUPtrEeKiosy8GwIZjA" name="Stereotype2">
+ <ownedAttribute xmi:id="_rWKeEPtrEeKiosy8GwIZjA" name="base_Class" association="_rWKeEftrEeKiosy8GwIZjA">
+ <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_o9WMkPtrEeKiosy8GwIZjA" name="Stereotype3">
+ <ownedAttribute xmi:id="_rjcsIPtrEeKiosy8GwIZjA" name="base_Class" association="_rjcsIftrEeKiosy8GwIZjA">
+ <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Extension" xmi:id="_rMhZ4ftrEeKiosy8GwIZjA" name="E_Stereotype1_Class1" memberEnd="_rMhZ4vtrEeKiosy8GwIZjA _rMhZ4PtrEeKiosy8GwIZjA">
+ <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_rMhZ4vtrEeKiosy8GwIZjA" name="extension_Stereotype1" type="_ozdQwPtrEeKiosy8GwIZjA" aggregation="composite" association="_rMhZ4ftrEeKiosy8GwIZjA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Extension" xmi:id="_rWKeEftrEeKiosy8GwIZjA" name="E_Stereotype2_Class1" memberEnd="_rWKeEvtrEeKiosy8GwIZjA _rWKeEPtrEeKiosy8GwIZjA">
+ <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_rWKeEvtrEeKiosy8GwIZjA" name="extension_Stereotype2" type="_o4HuUPtrEeKiosy8GwIZjA" aggregation="composite" association="_rWKeEftrEeKiosy8GwIZjA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Extension" xmi:id="_rjcsIftrEeKiosy8GwIZjA" name="E_Stereotype3_Class1" memberEnd="_rjcsIvtrEeKiosy8GwIZjA _rjcsIPtrEeKiosy8GwIZjA">
+ <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_rjcsIvtrEeKiosy8GwIZjA" name="extension_Stereotype3" type="_o9WMkPtrEeKiosy8GwIZjA" aggregation="composite" association="_rjcsIftrEeKiosy8GwIZjA"/>
+ </packagedElement>
+</uml:Profile>
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p2/profile2.profile.di b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p2/profile2.profile.di
new file mode 100644
index 00000000000..5e4c3d37c66
--- /dev/null
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p2/profile2.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="profile2.profile.notation#_oA_5EPtrEeKiosy8GwIZjA"/>
+ </availablePage>
+ </pageList>
+ <sashModel currentSelection="//@sashModel/@windows.0/@children.0">
+ <windows>
+ <children xsi:type="di:TabFolder">
+ <children>
+ <emfPageIdentifier href="profile2.profile.notation#_oA_5EPtrEeKiosy8GwIZjA"/>
+ </children>
+ </children>
+ </windows>
+ </sashModel>
+</di:SashWindowsMngr>
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p2/profile2.profile.notation b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p2/profile2.profile.notation
new file mode 100644
index 00000000000..e7be5b449f0
--- /dev/null
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p2/profile2.profile.notation
@@ -0,0 +1,137 @@
+<?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:l2="http://www.eclipse.org/uml2/4.0.0/UML/Profile/L2" 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="_oA_5EPtrEeKiosy8GwIZjA" type="PapyrusUMLProfileDiagram" name="NewDiagram" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_ozgUEPtrEeKiosy8GwIZjA" type="1026">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ozg7IPtrEeKiosy8GwIZjA" type="1034"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ozg7IftrEeKiosy8GwIZjA" type="1071">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ozlzoPtrEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ozmasPtrEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ozg7IvtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ozg7I_trEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ozg7JPtrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ozg7JftrEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ozg7JvtrEeKiosy8GwIZjA" visible="false" type="1019">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_oznBwPtrEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_oznBwftrEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ozg7J_trEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ozg7KPtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ozg7KftrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ozg7KvtrEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_oz1EMPtrEeKiosy8GwIZjA" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_oz1EM_trEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_oz1ENPtrEeKiosy8GwIZjA" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_oz1EMftrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_oz1EMvtrEeKiosy8GwIZjA"/>
+ </children>
+ <element xmi:type="uml:Stereotype" href="profile2.profile.uml#_ozdQwPtrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ozgUEftrEeKiosy8GwIZjA" x="415" y="510"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_o4IVYPtrEeKiosy8GwIZjA" type="1026">
+ <children xmi:type="notation:DecorationNode" xmi:id="_o4IVYvtrEeKiosy8GwIZjA" type="1034"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_o4IVY_trEeKiosy8GwIZjA" type="1071">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_o4I8cPtrEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_o4I8cftrEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_o4IVZPtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_o4IVZftrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_o4IVZvtrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_o4IVZ_trEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_o4IVaPtrEeKiosy8GwIZjA" visible="false" type="1019">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_o4I8cvtrEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_o4I8c_trEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_o4IVaftrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_o4IVavtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_o4IVa_trEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_o4IVbPtrEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_o4PDEPtrEeKiosy8GwIZjA" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_o4PDE_trEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_o4PDFPtrEeKiosy8GwIZjA" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_o4PDEftrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_o4PDEvtrEeKiosy8GwIZjA"/>
+ </children>
+ <element xmi:type="uml:Stereotype" href="profile2.profile.uml#_o4HuUPtrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_o4IVYftrEeKiosy8GwIZjA" x="785" y="510"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_o9XasPtrEeKiosy8GwIZjA" type="1026">
+ <children xmi:type="notation:DecorationNode" xmi:id="_o9XasvtrEeKiosy8GwIZjA" type="1034"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_o9Xas_trEeKiosy8GwIZjA" type="1071">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_o9YBwPtrEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_o9YBwftrEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_o9XatPtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_o9XatftrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_o9XatvtrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_o9Xat_trEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_o9XauPtrEeKiosy8GwIZjA" visible="false" type="1019">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_o9YBwvtrEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_o9YBw_trEeKiosy8GwIZjA" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_o9XauftrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_o9XauvtrEeKiosy8GwIZjA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_o9Xau_trEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_o9XavPtrEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_o9eIYPtrEeKiosy8GwIZjA" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_o9eIY_trEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_o9eIZPtrEeKiosy8GwIZjA" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_o9eIYftrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_o9eIYvtrEeKiosy8GwIZjA"/>
+ </children>
+ <element xmi:type="uml:Stereotype" href="profile2.profile.uml#_o9WMkPtrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_o9XasftrEeKiosy8GwIZjA" x="1110" y="506"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_qrPRwPtrEeKiosy8GwIZjA" type="1031">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_qrQf4PtrEeKiosy8GwIZjA" source="Stereotype_Annotation">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qrQf4ftrEeKiosy8GwIZjA" key="StereotypeWithQualifiedNameList" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qrQf4vtrEeKiosy8GwIZjA" key="StereotypeList" value="StandardProfileL2::Metaclass"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qrQf4_trEeKiosy8GwIZjA" key="Stereotype_Presentation_Kind" value="HorizontalStereo"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qrQf5PtrEeKiosy8GwIZjA" key="PropStereoDisplay" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qrQf5ftrEeKiosy8GwIZjA" key="StereotypePropertyLocation" value="Compartment"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_qrPRwvtrEeKiosy8GwIZjA" type="1084"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_qruZ8PtrEeKiosy8GwIZjA" visible="false" type="AppliedStereotypeCompartement">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_qruZ8ftrEeKiosy8GwIZjA" showTitle="true"/>
+ <element xmi:type="l2:Metaclass" href="pathmap://UML_METAMODELS/UML.metamodel.uml#_Sh6H8KtKEeGF4uwJob34Mw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_qruZ8vtrEeKiosy8GwIZjA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_qrvBAPtrEeKiosy8GwIZjA" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_qrvBA_trEeKiosy8GwIZjA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qrvBBPtrEeKiosy8GwIZjA" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_qrvBAftrEeKiosy8GwIZjA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_qrvBAvtrEeKiosy8GwIZjA"/>
+ </children>
+ <element xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_qrPRw_trEeKiosy8GwIZjA" x="785" y="125"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_oA_5EftrEeKiosy8GwIZjA"/>
+ <element xmi:type="uml:Profile" href="profile2.profile.uml#_oA-q8PtrEeKiosy8GwIZjA"/>
+ <edges xmi:type="notation:Connector" xmi:id="_rNDlYPtrEeKiosy8GwIZjA" type="1013" source="_ozgUEPtrEeKiosy8GwIZjA" target="_qrPRwPtrEeKiosy8GwIZjA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_rNDlYftrEeKiosy8GwIZjA"/>
+ <element xmi:type="uml:Extension" href="profile2.profile.uml#_rMhZ4ftrEeKiosy8GwIZjA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_rNDlYvtrEeKiosy8GwIZjA" points="[-6, -59, 27, 266]$[-32, -332, 1, -7]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_rNK6IPtrEeKiosy8GwIZjA" id="(0.76,0.59)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_rNK6IftrEeKiosy8GwIZjA" id="(0.54,0.14)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_rWLsMPtrEeKiosy8GwIZjA" type="1013" source="_o4IVYPtrEeKiosy8GwIZjA" target="_qrPRwPtrEeKiosy8GwIZjA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_rWLsMftrEeKiosy8GwIZjA"/>
+ <element xmi:type="uml:Extension" href="profile2.profile.uml#_rWKeEftrEeKiosy8GwIZjA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_rWLsMvtrEeKiosy8GwIZjA" points="[-50, -25, 359, 171]$[-459, -203, -50, -7]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_rjcsI_trEeKiosy8GwIZjA" type="1013" source="_o9XasPtrEeKiosy8GwIZjA" target="_qrPRwPtrEeKiosy8GwIZjA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_rjcsJPtrEeKiosy8GwIZjA"/>
+ <element xmi:type="uml:Extension" href="profile2.profile.uml#_rjcsIftrEeKiosy8GwIZjA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_rjcsJftrEeKiosy8GwIZjA" points="[-90, -50, 691, 391]$[-778, -416, 3, 25]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_rjmdIPtrEeKiosy8GwIZjA" id="(0.9,0.7)"/>
+ </edges>
+</notation:Diagram>
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p2/profile2.profile.uml b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p2/profile2.profile.uml
new file mode 100644
index 00000000000..51c736c4529
--- /dev/null
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/profiles/p2/profile2.profile.uml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<uml:Profile xmi:version="20110701" xmlns:xmi="http://www.omg.org/spec/XMI/20110701" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML" xmi:id="_oA-q8PtrEeKiosy8GwIZjA" name="Profile" metaclassReference="_qrODoPtrEeKiosy8GwIZjA" metamodelReference="_oA-q8ftrEeKiosy8GwIZjA">
+ <eAnnotations xmi:id="_s0T3EPtrEeKiosy8GwIZjA" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <contents xmi:type="ecore:EPackage" xmi:id="_s0UeIPtrEeKiosy8GwIZjA" name="Profile" nsURI="http:///schemas/Profile/_szf-wPtrEeKiosy8GwIZjA/0" nsPrefix="Profile">
+ <eAnnotations xmi:id="_s0WTUvtrEeKiosy8GwIZjA" source="PapyrusVersion">
+ <details xmi:id="_s0WTU_trEeKiosy8GwIZjA" key="Version" value="0.0.1"/>
+ <details xmi:id="_s0WTVPtrEeKiosy8GwIZjA" key="Comment" value=""/>
+ <details xmi:id="_s0WTVftrEeKiosy8GwIZjA" key="Copyright" value=""/>
+ <details xmi:id="_s0WTVvtrEeKiosy8GwIZjA" key="Date" value="2013-08-02"/>
+ <details xmi:id="_s0WTV_trEeKiosy8GwIZjA" key="Author" value=""/>
+ </eAnnotations>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_s0UeIftrEeKiosy8GwIZjA" name="Stereotype1">
+ <eAnnotations xmi:id="_s0UeIvtrEeKiosy8GwIZjA" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_ozdQwPtrEeKiosy8GwIZjA"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_s0UeI_trEeKiosy8GwIZjA" 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>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_s0UeJftrEeKiosy8GwIZjA" name="Stereotype2">
+ <eAnnotations xmi:id="_s0UeJvtrEeKiosy8GwIZjA" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_o4HuUPtrEeKiosy8GwIZjA"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_s0UeJ_trEeKiosy8GwIZjA" 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>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_s0UeKftrEeKiosy8GwIZjA" name="Stereotype3">
+ <eAnnotations xmi:id="_s0UeKvtrEeKiosy8GwIZjA" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_o9WMkPtrEeKiosy8GwIZjA"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_s0UeK_trEeKiosy8GwIZjA" 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>
+ <elementImport xmi:id="_qrODoPtrEeKiosy8GwIZjA" alias="Class">
+ <importedElement xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
+ </elementImport>
+ <packageImport xmi:id="_oA-q8ftrEeKiosy8GwIZjA">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_METAMODELS/UML.metamodel.uml#_0"/>
+ </packageImport>
+ <packageImport xmi:id="_oA-q8vtrEeKiosy8GwIZjA">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_ozdQwPtrEeKiosy8GwIZjA" name="Stereotype1">
+ <ownedAttribute xmi:id="_rMhZ4PtrEeKiosy8GwIZjA" name="base_Class" association="_rMhZ4ftrEeKiosy8GwIZjA">
+ <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_o4HuUPtrEeKiosy8GwIZjA" name="Stereotype2">
+ <ownedAttribute xmi:id="_rWKeEPtrEeKiosy8GwIZjA" name="base_Class" association="_rWKeEftrEeKiosy8GwIZjA">
+ <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_o9WMkPtrEeKiosy8GwIZjA" name="Stereotype3">
+ <ownedAttribute xmi:id="_rjcsIPtrEeKiosy8GwIZjA" name="base_Class" association="_rjcsIftrEeKiosy8GwIZjA">
+ <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Extension" xmi:id="_rMhZ4ftrEeKiosy8GwIZjA" name="E_Stereotype1_Class1" memberEnd="_rMhZ4vtrEeKiosy8GwIZjA _rMhZ4PtrEeKiosy8GwIZjA">
+ <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_rMhZ4vtrEeKiosy8GwIZjA" name="extension_Stereotype1" type="_ozdQwPtrEeKiosy8GwIZjA" aggregation="composite" association="_rMhZ4ftrEeKiosy8GwIZjA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Extension" xmi:id="_rWKeEftrEeKiosy8GwIZjA" name="E_Stereotype2_Class1" memberEnd="_rWKeEvtrEeKiosy8GwIZjA _rWKeEPtrEeKiosy8GwIZjA">
+ <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_rWKeEvtrEeKiosy8GwIZjA" name="extension_Stereotype2" type="_o4HuUPtrEeKiosy8GwIZjA" aggregation="composite" association="_rWKeEftrEeKiosy8GwIZjA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Extension" xmi:id="_rjcsIftrEeKiosy8GwIZjA" name="E_Stereotype3_Class1" memberEnd="_rjcsIvtrEeKiosy8GwIZjA _rjcsIPtrEeKiosy8GwIZjA">
+ <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_rjcsIvtrEeKiosy8GwIZjA" name="extension_Stereotype3" type="_o9WMkPtrEeKiosy8GwIZjA" aggregation="composite" association="_rjcsIftrEeKiosy8GwIZjA"/>
+ </packagedElement>
+</uml:Profile>
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/src/org/eclipse/papyrus/uml/tools/tests/tests/DependencyManagementTest.java b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/src/org/eclipse/papyrus/uml/tools/tests/tests/DependencyManagementTest.java
index c25e1af6650..8badbb23d40 100644
--- a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/src/org/eclipse/papyrus/uml/tools/tests/tests/DependencyManagementTest.java
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/src/org/eclipse/papyrus/uml/tools/tests/tests/DependencyManagementTest.java
@@ -25,6 +25,11 @@ import org.eclipse.papyrus.junit.utils.PapyrusProjectUtils;
import org.eclipse.papyrus.junit.utils.ProjectUtils;
import org.eclipse.papyrus.junit.utils.tests.AbstractEditorTest;
import org.eclipse.papyrus.uml.tools.tests.Activator;
+import org.eclipse.uml2.uml.Model;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Profile;
+import org.eclipse.uml2.uml.UMLPackage;
+import org.eclipse.uml2.uml.util.UMLUtil;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
@@ -100,6 +105,88 @@ public class DependencyManagementTest extends AbstractEditorTest {
project.delete(true, null);
}
+ //Switch from two different versions of a profile
+ //Problem: !!Stereotypes are not references!! They are instances. After the switch, the new
+ //profile is correctly applied, but the applied Stereotypes are the ones from the initial Profile
+ //
+ //Current state: FAILS
+ @Test
+ public void testSwitchProfilesWithStereotypes() throws Exception {
+ IProject project = ProjectUtils.createProject("dependencyManagement.switchProfiles");
+ PapyrusProjectUtils.copyPapyrusModel(project, getBundle(), getSourcePath(), "profiles/model");
+ PapyrusProjectUtils.copyPapyrusModel(project, getBundle(), getSourcePath(), "profiles/p1/profile1.profile");
+ PapyrusProjectUtils.copyPapyrusModel(project, getBundle(), getSourcePath(), "profiles/p2/profile2.profile");
+
+ final URI clientModelDiURI = URI.createPlatformResourceURI(project.getName() + "/profiles/model.di", true);
+ final URI clientModelURI = URI.createPlatformResourceURI(project.getName() + "/profiles/model.uml", true);
+ final URI sourceProfileURI = URI.createPlatformResourceURI(project.getName() + "/profiles/p1/profile1.profile.uml", true);
+ final URI targetProfileURI = URI.createPlatformResourceURI(project.getName() + "/profiles/p2/profile2.profile.uml", true);
+
+ final ModelSet modelSet = ModelUtils.loadModelSet(clientModelDiURI, true);
+ final TransactionalEditingDomain domain = ModelUtils.getEditingDomain(modelSet);
+
+ //The modelset doesn't have any reference to the target profile
+ Assert.assertNull("The modelset should not have references to the target library", modelSet.getResource(targetProfileURI, false));
+
+ Model rootModel = UMLUtil.load(modelSet, clientModelURI, UMLPackage.eINSTANCE.getModel());
+
+ //Before the transformation, stereotypes from the source profile must be applied
+ checkAppliedProfileAndStereotypes(modelSet, rootModel, sourceProfileURI);
+
+ //Execute the transformation
+ domain.getCommandStack().execute(new RecordingCommand(domain, "Edit profile applications") {
+
+ @Override
+ protected void doExecute() {
+ DependencyManagementHelper.updateDependencies(sourceProfileURI, targetProfileURI, modelSet, domain);
+ }
+
+ });
+
+ //After the transformation, stereotypes from the target profile must be applied
+ checkAppliedProfileAndStereotypes(modelSet, rootModel, targetProfileURI);
+
+ //Save, reload, and check again
+ modelSet.save(new NullProgressMonitor());
+
+ ModelSet newModelSet = ModelUtils.loadModelSet(clientModelDiURI, true);
+
+ Assert.assertNull("The modelset should not have references to the source library", newModelSet.getResource(sourceProfileURI, false));
+
+ rootModel = UMLUtil.load(modelSet, clientModelURI, UMLPackage.eINSTANCE.getModel());
+
+ //After the transformation + reload, stereotypes from the target profile must be applied
+ checkAppliedProfileAndStereotypes(modelSet, rootModel, targetProfileURI);
+
+
+ //Cleanup
+ domain.dispose();
+ modelSet.unload();
+
+ ModelUtils.getEditingDomain(newModelSet).dispose();
+ newModelSet.unload();
+
+ project.delete(true, null);
+ }
+
+ private void checkAppliedProfileAndStereotypes(ModelSet modelSet, Model rootModel, URI expectedProfileURI) throws Exception {
+ Profile expectedProfile = UMLUtil.load(modelSet, expectedProfileURI, UMLPackage.eINSTANCE.getProfile());
+
+ Assert.assertEquals(expectedProfile, rootModel.getAppliedProfiles().get(0));
+
+ NamedElement class1 = UMLUtil.findNamedElements(rootModel.eResource(), "model::Class1").iterator().next();
+ NamedElement class2 = UMLUtil.findNamedElements(rootModel.eResource(), "model::Class2").iterator().next();
+ NamedElement class3 = UMLUtil.findNamedElements(rootModel.eResource(), "model::Class3").iterator().next();
+
+ NamedElement stereotype1 = UMLUtil.findNamedElements(expectedProfile.eResource(), "Profile::Stereotype1").iterator().next();
+ NamedElement stereotype2 = UMLUtil.findNamedElements(expectedProfile.eResource(), "Profile::Stereotype2").iterator().next();
+ NamedElement stereotype3 = UMLUtil.findNamedElements(expectedProfile.eResource(), "Profile::Stereotype3").iterator().next();
+
+ Assert.assertEquals(stereotype1, class1.getAppliedStereotype("Profile::Stereotype1"));
+ Assert.assertEquals(stereotype2, class2.getAppliedStereotype("Profile::Stereotype2"));
+ Assert.assertEquals(stereotype3, class3.getAppliedStereotype("Profile::Stereotype3"));
+ }
+
//Switch from a library to an un-existing resource
@Ignore("Todo")
@Test

Back to the top