Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2013-07-24 09:02:23 +0000
committerCamille Letavernier2013-07-24 09:02:23 +0000
commit6e109e8db7159055446a32881742e152f65bbea6 (patch)
tree5399ce708717fb40b79e08e5e53497f66331cfa2 /tests/junit
parent9ab021e479d8f243341388dd84d4a4d886bc7bc9 (diff)
downloadorg.eclipse.papyrus-6e109e8db7159055446a32881742e152f65bbea6.tar.gz
org.eclipse.papyrus-6e109e8db7159055446a32881742e152f65bbea6.tar.xz
org.eclipse.papyrus-6e109e8db7159055446a32881742e152f65bbea6.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 case
Diffstat (limited to 'tests/junit')
-rw-r--r--tests/junit/plugins/core/org.eclipse.papyrus.editor.integration.tests/src/org/eclipse/papyrus/editor/integration/tests/tests/AbstractEditorIntegrationTest.java95
-rw-r--r--tests/junit/plugins/core/org.eclipse.papyrus.editor.integration.tests/src/org/eclipse/papyrus/editor/integration/tests/tests/ModelSetTests.java3
-rw-r--r--tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/META-INF/MANIFEST.MF6
-rw-r--r--tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/Activator.java6
-rw-r--r--tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/HandlerUtils.java3
-rw-r--r--tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/ModelExplorerUtils.java2
-rw-r--r--tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/ModelUtils.java62
-rw-r--r--tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/PackageExplorerUtils.java3
-rw-r--r--tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/tests/AbstractEditorTest.java115
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/META-INF/MANIFEST.MF4
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/copy-of-library.di17
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/copy-of-library.notation272
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/copy-of-library.uml18
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/library.di17
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/library.notation272
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/library.uml18
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/model.di17
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/model.notation350
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/model.uml59
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/src/org/eclipse/papyrus/uml/tools/tests/tests/AllTests.java4
-rw-r--r--tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/src/org/eclipse/papyrus/uml/tools/tests/tests/DependencyManagementTest.java133
21 files changed, 1372 insertions, 104 deletions
diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.editor.integration.tests/src/org/eclipse/papyrus/editor/integration/tests/tests/AbstractEditorIntegrationTest.java b/tests/junit/plugins/core/org.eclipse.papyrus.editor.integration.tests/src/org/eclipse/papyrus/editor/integration/tests/tests/AbstractEditorIntegrationTest.java
index a98efb09618..3dc26b39d77 100644
--- a/tests/junit/plugins/core/org.eclipse.papyrus.editor.integration.tests/src/org/eclipse/papyrus/editor/integration/tests/tests/AbstractEditorIntegrationTest.java
+++ b/tests/junit/plugins/core/org.eclipse.papyrus.editor.integration.tests/src/org/eclipse/papyrus/editor/integration/tests/tests/AbstractEditorIntegrationTest.java
@@ -11,105 +11,16 @@
*****************************************************************************/
package org.eclipse.papyrus.editor.integration.tests.tests;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
import org.eclipse.papyrus.editor.integration.tests.Activator;
-import org.eclipse.papyrus.infra.core.editor.IMultiDiagramEditor;
-import org.eclipse.papyrus.infra.core.resource.ModelSet;
-import org.eclipse.papyrus.infra.core.sasheditor.contentprovider.IPageManager;
-import org.eclipse.papyrus.infra.core.services.ServiceException;
-import org.eclipse.papyrus.infra.core.services.ServicesRegistry;
-import org.eclipse.papyrus.junit.utils.EditorUtils;
-import org.eclipse.papyrus.junit.utils.PapyrusProjectUtils;
-import org.eclipse.papyrus.junit.utils.ProjectUtils;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.IEditorPart;
-import org.junit.After;
-import org.junit.Assert;
+import org.eclipse.papyrus.junit.utils.tests.AbstractEditorTest;
import org.osgi.framework.Bundle;
-public abstract class AbstractEditorIntegrationTest {
+public abstract class AbstractEditorIntegrationTest extends AbstractEditorTest {
- protected IMultiDiagramEditor editor;
-
- protected IProject project;
-
- /**
- *
- * @return
- * the current bundle
- */
+ @Override
protected Bundle getBundle() {
return Activator.getDefault().getBundle();
}
- /**
- * Inits this.editor
- * Fails or throws an exception if an error occurs
- *
- * @param bundle
- * TODO
- */
- protected void initModel(String projectName, String modelName, Bundle bundle) throws Exception {
- project = ProjectUtils.createProject(projectName);
- final IFile diModelFile = PapyrusProjectUtils.copyPapyrusModel(project, getBundle(), getSourcePath(), modelName);
- Display.getDefault().syncExec(new Runnable() {
-
- public void run() {
- try {
- editor = EditorUtils.openPapyrusEditor(diModelFile);
- } catch (Exception ex) {
- Activator.log.error(ex);
- Assert.fail(ex.getMessage());
- }
- }
- });
-
- Assert.assertNotNull(editor);
- }
-
- @After
- public void dispose() throws Exception {
- if(editor != null) {
- Display.getDefault().syncExec(new Runnable() {
-
- public void run() {
- ((IEditorPart)editor).getSite().getPage().closeEditor(editor, false);
- }
- });
-
- editor = null;
- }
-
- if(project != null) {
- project.delete(true, new NullProgressMonitor());
- project = null;
- }
- }
-
- protected IPageManager getPageManager() throws ServiceException {
- return getServicesRegistry().getService(IPageManager.class);
- }
-
- protected ServicesRegistry getServicesRegistry() throws ServiceException {
- return editor.getServicesRegistry();
- }
-
- protected TransactionalEditingDomain getTransactionalEditingDomain() throws ServiceException {
- return getServicesRegistry().getService(TransactionalEditingDomain.class);
- }
-
- protected ModelSet getModelSet() throws ServiceException {
- return getServicesRegistry().getService(ModelSet.class);
- }
-
- /**
- * The path to the source model folder
- *
- * @return
- */
- protected abstract String getSourcePath();
}
diff --git a/tests/junit/plugins/core/org.eclipse.papyrus.editor.integration.tests/src/org/eclipse/papyrus/editor/integration/tests/tests/ModelSetTests.java b/tests/junit/plugins/core/org.eclipse.papyrus.editor.integration.tests/src/org/eclipse/papyrus/editor/integration/tests/tests/ModelSetTests.java
index d615cba7047..1e449d6bd1b 100644
--- a/tests/junit/plugins/core/org.eclipse.papyrus.editor.integration.tests/src/org/eclipse/papyrus/editor/integration/tests/tests/ModelSetTests.java
+++ b/tests/junit/plugins/core/org.eclipse.papyrus.editor.integration.tests/src/org/eclipse/papyrus/editor/integration/tests/tests/ModelSetTests.java
@@ -11,8 +11,6 @@
*****************************************************************************/
package org.eclipse.papyrus.editor.integration.tests.tests;
-import junit.framework.Assert;
-
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
@@ -33,6 +31,7 @@ import org.eclipse.papyrus.uml.diagram.common.commands.CreateUMLModelCommand;
import org.eclipse.papyrus.uml.tools.model.UmlModel;
import org.eclipse.swt.widgets.Display;
import org.eclipse.uml2.uml.Model;
+import org.junit.Assert;
import org.junit.Test;
/**
diff --git a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/META-INF/MANIFEST.MF b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/META-INF/MANIFEST.MF
index 14468846b8d..0ebfd2da24e 100644
--- a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/META-INF/MANIFEST.MF
+++ b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/META-INF/MANIFEST.MF
@@ -14,8 +14,10 @@ Require-Bundle: org.eclipse.ui,
org.eclipse.papyrus.infra.gmfdiag.common;bundle-version="0.10.1",
org.eclipse.papyrus.uml.tools;bundle-version="0.10.1",
org.eclipse.papyrus.editor;bundle-version="0.10.1",
- org.junit;bundle-version="4.10.0"
-Export-Package: org.eclipse.papyrus.junit.utils
+ org.junit;bundle-version="4.10.0",
+ org.eclipse.papyrus.infra.core.log;bundle-version="0.10.1"
+Export-Package: org.eclipse.papyrus.junit.utils,
+ org.eclipse.papyrus.junit.utils.tests
Bundle-Vendor: %Bundle-Vendor
Bundle-ActivationPolicy: lazy
Bundle-Version: 0.10.1.qualifier
diff --git a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/Activator.java b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/Activator.java
index 1e0b101def1..703f0b176b3 100644
--- a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/Activator.java
+++ b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/Activator.java
@@ -13,6 +13,7 @@
*****************************************************************************/
package org.eclipse.papyrus.junit.utils;
+import org.eclipse.papyrus.infra.core.log.LogHelper;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
@@ -27,6 +28,8 @@ public class Activator extends AbstractUIPlugin {
// The shared instance
private static Activator plugin;
+ public static LogHelper log;
+
/**
* The constructor
*/
@@ -38,9 +41,11 @@ public class Activator extends AbstractUIPlugin {
*
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
*/
+ @Override
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
+ log = new LogHelper(this);
}
/*
@@ -48,6 +53,7 @@ public class Activator extends AbstractUIPlugin {
*
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
+ @Override
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
diff --git a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/HandlerUtils.java b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/HandlerUtils.java
index e76df3ba15b..a2f0000a7e9 100644
--- a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/HandlerUtils.java
+++ b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/HandlerUtils.java
@@ -13,14 +13,13 @@
*****************************************************************************/
package org.eclipse.papyrus.junit.utils;
-import junit.framework.Assert;
-
import org.eclipse.core.commands.Command;
import org.eclipse.core.commands.IHandler;
import org.eclipse.core.commands.ParameterizedCommand;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.commands.ICommandService;
import org.eclipse.ui.handlers.IHandlerService;
+import org.junit.Assert;
/**
*
diff --git a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/ModelExplorerUtils.java b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/ModelExplorerUtils.java
index 8b6cf40f984..994bc52eb5d 100644
--- a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/ModelExplorerUtils.java
+++ b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/ModelExplorerUtils.java
@@ -154,7 +154,7 @@ public class ModelExplorerUtils {
((AbstractHandler)handler).setEnabled(commandToTest);
}
boolean res = handler.isEnabled();
- Assert.assertEquals(wantedResult, res);;
+ Assert.assertEquals(wantedResult, res);
}
/**
diff --git a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/ModelUtils.java b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/ModelUtils.java
new file mode 100644
index 00000000000..ac7bb43356d
--- /dev/null
+++ b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/ModelUtils.java
@@ -0,0 +1,62 @@
+/*****************************************************************************
+ * 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:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.junit.utils;
+
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.papyrus.infra.core.resource.ModelMultiException;
+import org.eclipse.papyrus.infra.core.resource.ModelSet;
+import org.eclipse.papyrus.infra.core.utils.DiResourceSet;
+
+/**
+ * Helper class for manipulating Papyrus ModelSets
+ *
+ * @author Camille Letavernier
+ *
+ */
+public class ModelUtils {
+
+ /**
+ * Loads a ModelSet and associates a TransactionalEditingDomain to it
+ *
+ * Use {@link #getEditingDomain(ModelSet)} to retrieve the EditingDomain
+ *
+ * @param uri
+ * @param resolveAll
+ * @return
+ * @throws ModelMultiException
+ */
+ public static ModelSet loadModelSet(URI uri, boolean resolveAll) throws ModelMultiException {
+ ModelSet modelSet = new DiResourceSet();
+ TransactionalEditingDomain.Factory.INSTANCE.createEditingDomain(modelSet);
+
+ modelSet.loadModels(uri);
+
+ if(resolveAll) {
+ EcoreUtil.resolveAll(modelSet);
+ }
+
+ return modelSet;
+ }
+
+ public static ModelSet loadModelSet(IPath workspacePath, boolean resolveAll) throws ModelMultiException {
+ URI workspaceURI = URI.createPlatformResourceURI(workspacePath.toString(), true);
+ return loadModelSet(workspaceURI, resolveAll);
+ }
+
+ public static TransactionalEditingDomain getEditingDomain(ModelSet modelSet) {
+ return TransactionalEditingDomain.Factory.INSTANCE.getEditingDomain(modelSet);
+ }
+
+}
diff --git a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/PackageExplorerUtils.java b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/PackageExplorerUtils.java
index 1c1266d93ba..d6ef585d17e 100644
--- a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/PackageExplorerUtils.java
+++ b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/PackageExplorerUtils.java
@@ -15,14 +15,13 @@ package org.eclipse.papyrus.junit.utils;
import java.util.List;
-import junit.framework.Assert;
-
import org.eclipse.jdt.ui.IPackagesViewPart;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IViewPart;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
+import org.junit.Assert;
/**
*
diff --git a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/tests/AbstractEditorTest.java b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/tests/AbstractEditorTest.java
new file mode 100644
index 00000000000..a5f4b1ccb65
--- /dev/null
+++ b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/tests/AbstractEditorTest.java
@@ -0,0 +1,115 @@
+/*****************************************************************************
+ * 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:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.junit.utils.tests;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.papyrus.infra.core.editor.IMultiDiagramEditor;
+import org.eclipse.papyrus.infra.core.resource.ModelSet;
+import org.eclipse.papyrus.infra.core.sasheditor.contentprovider.IPageManager;
+import org.eclipse.papyrus.infra.core.services.ServiceException;
+import org.eclipse.papyrus.infra.core.services.ServicesRegistry;
+import org.eclipse.papyrus.junit.utils.Activator;
+import org.eclipse.papyrus.junit.utils.EditorUtils;
+import org.eclipse.papyrus.junit.utils.PapyrusProjectUtils;
+import org.eclipse.papyrus.junit.utils.ProjectUtils;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IEditorPart;
+import org.junit.After;
+import org.junit.Assert;
+import org.osgi.framework.Bundle;
+
+
+public abstract class AbstractEditorTest {
+
+ protected IMultiDiagramEditor editor;
+
+ protected IProject project;
+
+ /**
+ *
+ * @return
+ * the current bundle
+ */
+ protected Bundle getBundle() {
+ return Activator.getDefault().getBundle();
+ }
+
+ /**
+ * Inits this.editor
+ * Fails or throws an exception if an error occurs
+ *
+ * @param bundle
+ * TODO
+ */
+ protected void initModel(String projectName, String modelName, Bundle bundle) throws Exception {
+ project = ProjectUtils.createProject(projectName);
+ final IFile diModelFile = PapyrusProjectUtils.copyPapyrusModel(project, bundle, getSourcePath(), modelName);
+ Display.getDefault().syncExec(new Runnable() {
+
+ public void run() {
+ try {
+ editor = EditorUtils.openPapyrusEditor(diModelFile);
+ } catch (Exception ex) {
+ Activator.log.error(ex);
+ Assert.fail(ex.getMessage());
+ }
+ }
+ });
+
+ Assert.assertNotNull(editor);
+ }
+
+ @After
+ public void dispose() throws Exception {
+ if(editor != null) {
+ Display.getDefault().syncExec(new Runnable() {
+
+ public void run() {
+ ((IEditorPart)editor).getSite().getPage().closeEditor(editor, false);
+ }
+ });
+
+ editor = null;
+ }
+
+ if(project != null) {
+ project.delete(true, new NullProgressMonitor());
+ project = null;
+ }
+ }
+
+ protected IPageManager getPageManager() throws ServiceException {
+ return getServicesRegistry().getService(IPageManager.class);
+ }
+
+ protected ServicesRegistry getServicesRegistry() throws ServiceException {
+ return editor.getServicesRegistry();
+ }
+
+ protected TransactionalEditingDomain getTransactionalEditingDomain() throws ServiceException {
+ return getServicesRegistry().getService(TransactionalEditingDomain.class);
+ }
+
+ protected ModelSet getModelSet() throws ServiceException {
+ return getServicesRegistry().getService(ModelSet.class);
+ }
+
+ /**
+ * The path to the source model folder
+ *
+ * @return
+ */
+ protected abstract String getSourcePath();
+}
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/META-INF/MANIFEST.MF b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/META-INF/MANIFEST.MF
index 826ce53febd..e51b0b4e3c7 100644
--- a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/META-INF/MANIFEST.MF
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/META-INF/MANIFEST.MF
@@ -8,7 +8,9 @@ Require-Bundle: org.eclipse.ui,
org.eclipse.papyrus.infra.emf;bundle-version="0.10.1",
org.eclipse.papyrus.infra.widgets;bundle-version="0.10.1",
org.eclipse.emf.facet.infra.browser.uicore;bundle-version="0.2.0",
- org.junit;bundle-version="4.10.0"
+ org.junit;bundle-version="4.10.0",
+ org.eclipse.papyrus.junit.utils;bundle-version="0.10.1",
+ org.eclipse.emf.transaction;bundle-version="1.4.0"
Export-Package: org.eclipse.papyrus.uml.tools.tests,
org.eclipse.papyrus.uml.tools.tests.tests
Bundle-Vendor: Eclipse Modeling Project
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/copy-of-library.di b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/copy-of-library.di
new file mode 100644
index 00000000000..98dd12539fd
--- /dev/null
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/copy-of-library.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="copy-of-library.notation#_gvvLwvQ1EeK9gKrxk10euQ"/>
+ </availablePage>
+ </pageList>
+ <sashModel currentSelection="//@sashModel/@windows.0/@children.0">
+ <windows>
+ <children xsi:type="di:TabFolder">
+ <children>
+ <emfPageIdentifier href="copy-of-library.notation#_gvvLwvQ1EeK9gKrxk10euQ"/>
+ </children>
+ </children>
+ </windows>
+ </sashModel>
+</di:SashWindowsMngr>
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/copy-of-library.notation b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/copy-of-library.notation
new file mode 100644
index 00000000000..d9b152bde1a
--- /dev/null
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/copy-of-library.notation
@@ -0,0 +1,272 @@
+<?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="_gvvLwvQ1EeK9gKrxk10euQ" type="PapyrusUMLClassDiagram" name="NewDiagram" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_iLO5YfQ1EeK9gKrxk10euQ" type="2004">
+ <children xmi:type="notation:DecorationNode" xmi:id="_iLO5Y_Q1EeK9gKrxk10euQ" type="5011"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iLO5ZPQ1EeK9gKrxk10euQ" type="7006">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iLYDUPQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iLYDUfQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iLO5ZfQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iLO5ZvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iLO5Z_Q1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iLO5aPQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iLO5afQ1EeK9gKrxk10euQ" type="7007">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iLYDUvQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iLYDU_Q1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iLO5avQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iLO5a_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iLO5bPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iLO5bfQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iLO5bvQ1EeK9gKrxk10euQ" type="7008">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iLh0UPQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iLh0UfQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iLO5b_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iLO5cPQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iLO5cfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iLO5cvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iMHqMPQ1EeK9gKrxk10euQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iMHqM_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iMHqNPQ1EeK9gKrxk10euQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iMHqMfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iMHqMvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <element xmi:type="uml:Interface" href="copy-of-library.uml#_iLO5YPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iLO5YvQ1EeK9gKrxk10euQ" x="305" y="210"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_iQ41cfQ1EeK9gKrxk10euQ" type="2004">
+ <children xmi:type="notation:DecorationNode" xmi:id="_iQ41c_Q1EeK9gKrxk10euQ" type="5011"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iQ41dPQ1EeK9gKrxk10euQ" type="7006">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iQ41g_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iQ41hPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iQ41dfQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iQ41dvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iQ41d_Q1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iQ41ePQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iQ41efQ1EeK9gKrxk10euQ" type="7007">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iQ41hfQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iQ41hvQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iQ41evQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iQ41e_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iQ41fPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iQ41ffQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iQ41fvQ1EeK9gKrxk10euQ" type="7008">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iQ41h_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iQ41iPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iQ41f_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iQ41gPQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iQ41gfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iQ41gvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iRB_YPQ1EeK9gKrxk10euQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iRB_Y_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iRB_ZPQ1EeK9gKrxk10euQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iRB_YfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iRB_YvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <element xmi:type="uml:Interface" href="copy-of-library.uml#_iQ41cPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iQ41cvQ1EeK9gKrxk10euQ" x="665" y="210"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_iVyjkfQ1EeK9gKrxk10euQ" type="2004">
+ <children xmi:type="notation:DecorationNode" xmi:id="_iVyjk_Q1EeK9gKrxk10euQ" type="5011"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iVyjlPQ1EeK9gKrxk10euQ" type="7006">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iVyjo_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iVyjpPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iVyjlfQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iVyjlvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iVyjl_Q1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iVyjmPQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iVyjmfQ1EeK9gKrxk10euQ" type="7007">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iVyjpfQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iVyjpvQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iVyjmvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iVyjm_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iVyjnPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iVyjnfQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iVyjnvQ1EeK9gKrxk10euQ" type="7008">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iVyjp_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iVyjqPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iVyjn_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iVyjoPQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iVyjofQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iVyjovQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iWGFkPQ1EeK9gKrxk10euQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iWGFk_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iWGFlPQ1EeK9gKrxk10euQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iWGFkfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iWGFkvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <element xmi:type="uml:Interface" href="copy-of-library.uml#_iVyjkPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iVyjkvQ1EeK9gKrxk10euQ" x="990" y="215"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_irEQAfQ1EeK9gKrxk10euQ" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_irEQA_Q1EeK9gKrxk10euQ" type="5029"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_irEQBPQ1EeK9gKrxk10euQ" type="7017">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_irEQE_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_irEQFPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_irEQBfQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_irEQBvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_irEQB_Q1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_irEQCPQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_irEQCfQ1EeK9gKrxk10euQ" type="7018">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_irEQFfQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_irEQFvQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_irEQCvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_irEQC_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_irEQDPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_irEQDfQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_irEQDvQ1EeK9gKrxk10euQ" type="7019">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_irEQF_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_irEQGPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_irEQD_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_irEQEPQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_irEQEfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_irEQEvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_irXK8PQ1EeK9gKrxk10euQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_irXK8_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_irXK9PQ1EeK9gKrxk10euQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_irXK8fQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_irXK8vQ1EeK9gKrxk10euQ"/>
+ </children>
+ <element xmi:type="uml:Class" href="copy-of-library.uml#_irEQAPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_irEQAvQ1EeK9gKrxk10euQ" x="305" y="493"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_iwbRIfQ1EeK9gKrxk10euQ" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_iwbRI_Q1EeK9gKrxk10euQ" type="5029"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iwbRJPQ1EeK9gKrxk10euQ" type="7017">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iwbRM_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iwbRNPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iwbRJfQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iwbRJvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iwbRJ_Q1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iwbRKPQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iwbRKfQ1EeK9gKrxk10euQ" type="7018">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iwbRNfQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iwbRNvQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iwbRKvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iwbRK_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iwbRLPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iwbRLfQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iwbRLvQ1EeK9gKrxk10euQ" type="7019">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iwbRN_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iwbROPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iwbRL_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iwbRMPQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iwbRMfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iwbRMvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iwkbEPQ1EeK9gKrxk10euQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iwkbE_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iwkbFPQ1EeK9gKrxk10euQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iwkbEfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iwkbEvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <element xmi:type="uml:Class" href="copy-of-library.uml#_iwbRIPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iwbRIvQ1EeK9gKrxk10euQ" x="675" y="485"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_i1ewQfQ1EeK9gKrxk10euQ" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_i1ewQ_Q1EeK9gKrxk10euQ" type="5029"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_i1ewRPQ1EeK9gKrxk10euQ" type="7017">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_i1ewU_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_i1ewVPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_i1ewRfQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_i1ewRvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_i1ewR_Q1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_i1ewSPQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_i1ewSfQ1EeK9gKrxk10euQ" type="7018">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_i1ewVfQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_i1ewVvQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_i1ewSvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_i1ewS_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_i1ewTPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_i1ewTfQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_i1ewTvQ1EeK9gKrxk10euQ" type="7019">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_i1ewV_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_i1ewWPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_i1ewT_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_i1ewUPQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_i1ewUfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_i1ewUvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_i1ohQPQ1EeK9gKrxk10euQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_i1ohQ_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_i1ohRPQ1EeK9gKrxk10euQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_i1ohQfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_i1ohQvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <element xmi:type="uml:Class" href="copy-of-library.uml#_i1ewQPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_i1ewQvQ1EeK9gKrxk10euQ" x="997" y="491"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_gvvLw_Q1EeK9gKrxk10euQ"/>
+ <element xmi:type="uml:Model" href="copy-of-library.uml#_gvvLwPQ1EeK9gKrxk10euQ"/>
+ <edges xmi:type="notation:Connector" xmi:id="_lWc4WvQ1EeK9gKrxk10euQ" type="4003" source="_irEQAfQ1EeK9gKrxk10euQ" target="_iLO5YfQ1EeK9gKrxk10euQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_lWc4ZPQ1EeK9gKrxk10euQ" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lWc4ZvQ1EeK9gKrxk10euQ" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lWc4afQ1EeK9gKrxk10euQ" type="6009">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lWc4a_Q1EeK9gKrxk10euQ" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_lWc4W_Q1EeK9gKrxk10euQ"/>
+ <element xmi:type="uml:InterfaceRealization" href="copy-of-library.uml#_lWJ-R_Q1EeK9gKrxk10euQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_lWc4XPQ1EeK9gKrxk10euQ" points="[-4, -50, 12, 232]$[34, -232, 50, 50]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_lgRikfQ1EeK9gKrxk10euQ" type="4003" source="_iwbRIfQ1EeK9gKrxk10euQ" target="_iQ41cfQ1EeK9gKrxk10euQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_lgRilPQ1EeK9gKrxk10euQ" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lgRilfQ1EeK9gKrxk10euQ" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lgRilvQ1EeK9gKrxk10euQ" type="6009">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lgRil_Q1EeK9gKrxk10euQ" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_lgRikvQ1EeK9gKrxk10euQ"/>
+ <element xmi:type="uml:InterfaceRealization" href="copy-of-library.uml#_lgRikPQ1EeK9gKrxk10euQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_lgRik_Q1EeK9gKrxk10euQ" points="[-8, -50, 23, 209]$[-36, -207, -5, 52]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_lqPW4fQ1EeK9gKrxk10euQ" type="4003" source="_i1ewQfQ1EeK9gKrxk10euQ" target="_iVyjkfQ1EeK9gKrxk10euQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_lqPW5PQ1EeK9gKrxk10euQ" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lqPW5fQ1EeK9gKrxk10euQ" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lqPW5vQ1EeK9gKrxk10euQ" type="6009">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lqPW5_Q1EeK9gKrxk10euQ" x="8" y="65"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_lqPW4vQ1EeK9gKrxk10euQ"/>
+ <element xmi:type="uml:InterfaceRealization" href="copy-of-library.uml#_lqPW4PQ1EeK9gKrxk10euQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_lqPW4_Q1EeK9gKrxk10euQ" points="[-16, -50, 49, 223]$[-115, -266, -50, 7]"/>
+ </edges>
+</notation:Diagram>
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/copy-of-library.uml b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/copy-of-library.uml
new file mode 100644
index 00000000000..bdfc49671cd
--- /dev/null
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/copy-of-library.uml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<uml:Model xmi:version="20110701" xmlns:xmi="http://www.omg.org/spec/XMI/20110701" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML" xmi:id="_gvvLwPQ1EeK9gKrxk10euQ" name="Library">
+ <packageImport xmi:type="uml:PackageImport" xmi:id="_gvvLwfQ1EeK9gKrxk10euQ">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Interface" xmi:id="_iLO5YPQ1EeK9gKrxk10euQ" name="Interface1"/>
+ <packagedElement xmi:type="uml:Interface" xmi:id="_iQ41cPQ1EeK9gKrxk10euQ" name="Interface2"/>
+ <packagedElement xmi:type="uml:Interface" xmi:id="_iVyjkPQ1EeK9gKrxk10euQ" name="Interface3"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_irEQAPQ1EeK9gKrxk10euQ" clientDependency="_lWJ-R_Q1EeK9gKrxk10euQ" name="Class1" isAbstract="true">
+ <interfaceRealization xmi:type="uml:InterfaceRealization" xmi:id="_lWJ-R_Q1EeK9gKrxk10euQ" name="InterfaceRealization1" client="_irEQAPQ1EeK9gKrxk10euQ" supplier="_iLO5YPQ1EeK9gKrxk10euQ" contract="_iLO5YPQ1EeK9gKrxk10euQ"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_iwbRIPQ1EeK9gKrxk10euQ" clientDependency="_lgRikPQ1EeK9gKrxk10euQ" name="Class2" isAbstract="true">
+ <interfaceRealization xmi:type="uml:InterfaceRealization" xmi:id="_lgRikPQ1EeK9gKrxk10euQ" name="InterfaceRealization1" client="_iwbRIPQ1EeK9gKrxk10euQ" supplier="_iQ41cPQ1EeK9gKrxk10euQ" contract="_iQ41cPQ1EeK9gKrxk10euQ"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_i1ewQPQ1EeK9gKrxk10euQ" clientDependency="_lqPW4PQ1EeK9gKrxk10euQ" name="Class3" isAbstract="true">
+ <interfaceRealization xmi:type="uml:InterfaceRealization" xmi:id="_lqPW4PQ1EeK9gKrxk10euQ" name="InterfaceRealization1" client="_i1ewQPQ1EeK9gKrxk10euQ" supplier="_iVyjkPQ1EeK9gKrxk10euQ" contract="_iVyjkPQ1EeK9gKrxk10euQ"/>
+ </packagedElement>
+</uml:Model>
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/library.di b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/library.di
new file mode 100644
index 00000000000..256f0d0e402
--- /dev/null
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/library.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="library.notation#_gvvLwvQ1EeK9gKrxk10euQ"/>
+ </availablePage>
+ </pageList>
+ <sashModel currentSelection="//@sashModel/@windows.0/@children.0">
+ <windows>
+ <children xsi:type="di:TabFolder">
+ <children>
+ <emfPageIdentifier href="library.notation#_gvvLwvQ1EeK9gKrxk10euQ"/>
+ </children>
+ </children>
+ </windows>
+ </sashModel>
+</di:SashWindowsMngr>
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/library.notation b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/library.notation
new file mode 100644
index 00000000000..a7cc7dadee8
--- /dev/null
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/library.notation
@@ -0,0 +1,272 @@
+<?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="_gvvLwvQ1EeK9gKrxk10euQ" type="PapyrusUMLClassDiagram" name="NewDiagram" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_iLO5YfQ1EeK9gKrxk10euQ" type="2004">
+ <children xmi:type="notation:DecorationNode" xmi:id="_iLO5Y_Q1EeK9gKrxk10euQ" type="5011"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iLO5ZPQ1EeK9gKrxk10euQ" type="7006">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iLYDUPQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iLYDUfQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iLO5ZfQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iLO5ZvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iLO5Z_Q1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iLO5aPQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iLO5afQ1EeK9gKrxk10euQ" type="7007">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iLYDUvQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iLYDU_Q1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iLO5avQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iLO5a_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iLO5bPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iLO5bfQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iLO5bvQ1EeK9gKrxk10euQ" type="7008">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iLh0UPQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iLh0UfQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iLO5b_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iLO5cPQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iLO5cfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iLO5cvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iMHqMPQ1EeK9gKrxk10euQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iMHqM_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iMHqNPQ1EeK9gKrxk10euQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iMHqMfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iMHqMvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <element xmi:type="uml:Interface" href="library.uml#_iLO5YPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iLO5YvQ1EeK9gKrxk10euQ" x="289" y="209"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_iQ41cfQ1EeK9gKrxk10euQ" type="2004">
+ <children xmi:type="notation:DecorationNode" xmi:id="_iQ41c_Q1EeK9gKrxk10euQ" type="5011"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iQ41dPQ1EeK9gKrxk10euQ" type="7006">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iQ41g_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iQ41hPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iQ41dfQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iQ41dvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iQ41d_Q1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iQ41ePQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iQ41efQ1EeK9gKrxk10euQ" type="7007">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iQ41hfQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iQ41hvQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iQ41evQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iQ41e_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iQ41fPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iQ41ffQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iQ41fvQ1EeK9gKrxk10euQ" type="7008">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iQ41h_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iQ41iPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iQ41f_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iQ41gPQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iQ41gfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iQ41gvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iRB_YPQ1EeK9gKrxk10euQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iRB_Y_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iRB_ZPQ1EeK9gKrxk10euQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iRB_YfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iRB_YvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <element xmi:type="uml:Interface" href="library.uml#_iQ41cPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iQ41cvQ1EeK9gKrxk10euQ" x="639" y="211"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_iVyjkfQ1EeK9gKrxk10euQ" type="2004">
+ <children xmi:type="notation:DecorationNode" xmi:id="_iVyjk_Q1EeK9gKrxk10euQ" type="5011"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iVyjlPQ1EeK9gKrxk10euQ" type="7006">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iVyjo_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iVyjpPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iVyjlfQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iVyjlvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iVyjl_Q1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iVyjmPQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iVyjmfQ1EeK9gKrxk10euQ" type="7007">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iVyjpfQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iVyjpvQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iVyjmvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iVyjm_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iVyjnPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iVyjnfQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iVyjnvQ1EeK9gKrxk10euQ" type="7008">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iVyjp_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iVyjqPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iVyjn_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iVyjoPQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iVyjofQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iVyjovQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iWGFkPQ1EeK9gKrxk10euQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iWGFk_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iWGFlPQ1EeK9gKrxk10euQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iWGFkfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iWGFkvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <element xmi:type="uml:Interface" href="library.uml#_iVyjkPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iVyjkvQ1EeK9gKrxk10euQ" x="932" y="216"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_irEQAfQ1EeK9gKrxk10euQ" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_irEQA_Q1EeK9gKrxk10euQ" type="5029"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_irEQBPQ1EeK9gKrxk10euQ" type="7017">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_irEQE_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_irEQFPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_irEQBfQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_irEQBvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_irEQB_Q1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_irEQCPQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_irEQCfQ1EeK9gKrxk10euQ" type="7018">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_irEQFfQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_irEQFvQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_irEQCvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_irEQC_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_irEQDPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_irEQDfQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_irEQDvQ1EeK9gKrxk10euQ" type="7019">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_irEQF_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_irEQGPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_irEQD_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_irEQEPQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_irEQEfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_irEQEvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_irXK8PQ1EeK9gKrxk10euQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_irXK8_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_irXK9PQ1EeK9gKrxk10euQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_irXK8fQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_irXK8vQ1EeK9gKrxk10euQ"/>
+ </children>
+ <element xmi:type="uml:Class" href="library.uml#_irEQAPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_irEQAvQ1EeK9gKrxk10euQ" x="305" y="493"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_iwbRIfQ1EeK9gKrxk10euQ" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_iwbRI_Q1EeK9gKrxk10euQ" type="5029"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iwbRJPQ1EeK9gKrxk10euQ" type="7017">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iwbRM_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iwbRNPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iwbRJfQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iwbRJvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iwbRJ_Q1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iwbRKPQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iwbRKfQ1EeK9gKrxk10euQ" type="7018">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iwbRNfQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iwbRNvQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iwbRKvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iwbRK_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iwbRLPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iwbRLfQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iwbRLvQ1EeK9gKrxk10euQ" type="7019">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iwbRN_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iwbROPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iwbRL_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_iwbRMPQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_iwbRMfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iwbRMvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_iwkbEPQ1EeK9gKrxk10euQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iwkbE_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iwkbFPQ1EeK9gKrxk10euQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_iwkbEfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iwkbEvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <element xmi:type="uml:Class" href="library.uml#_iwbRIPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_iwbRIvQ1EeK9gKrxk10euQ" x="670" y="472"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_i1ewQfQ1EeK9gKrxk10euQ" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_i1ewQ_Q1EeK9gKrxk10euQ" type="5029"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_i1ewRPQ1EeK9gKrxk10euQ" type="7017">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_i1ewU_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_i1ewVPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_i1ewRfQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_i1ewRvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_i1ewR_Q1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_i1ewSPQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_i1ewSfQ1EeK9gKrxk10euQ" type="7018">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_i1ewVfQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_i1ewVvQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_i1ewSvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_i1ewS_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_i1ewTPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_i1ewTfQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_i1ewTvQ1EeK9gKrxk10euQ" type="7019">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_i1ewV_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_i1ewWPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_i1ewT_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_i1ewUPQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_i1ewUfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_i1ewUvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_i1ohQPQ1EeK9gKrxk10euQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_i1ohQ_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_i1ohRPQ1EeK9gKrxk10euQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_i1ohQfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_i1ohQvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <element xmi:type="uml:Class" href="library.uml#_i1ewQPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_i1ewQvQ1EeK9gKrxk10euQ" x="997" y="491"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_gvvLw_Q1EeK9gKrxk10euQ"/>
+ <element xmi:type="uml:Model" href="library.uml#_gvvLwPQ1EeK9gKrxk10euQ"/>
+ <edges xmi:type="notation:Connector" xmi:id="_lWc4WvQ1EeK9gKrxk10euQ" type="4003" source="_irEQAfQ1EeK9gKrxk10euQ" target="_iLO5YfQ1EeK9gKrxk10euQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_lWc4ZPQ1EeK9gKrxk10euQ" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lWc4ZvQ1EeK9gKrxk10euQ" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lWc4afQ1EeK9gKrxk10euQ" type="6009">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lWc4a_Q1EeK9gKrxk10euQ" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_lWc4W_Q1EeK9gKrxk10euQ"/>
+ <element xmi:type="uml:InterfaceRealization" href="library.uml#_lWJ-R_Q1EeK9gKrxk10euQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_lWc4XPQ1EeK9gKrxk10euQ" points="[-4, -50, 12, 232]$[34, -232, 50, 50]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_lgRikfQ1EeK9gKrxk10euQ" type="4003" source="_iwbRIfQ1EeK9gKrxk10euQ" target="_iQ41cfQ1EeK9gKrxk10euQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_lgRilPQ1EeK9gKrxk10euQ" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lgRilfQ1EeK9gKrxk10euQ" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lgRilvQ1EeK9gKrxk10euQ" type="6009">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lgRil_Q1EeK9gKrxk10euQ" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_lgRikvQ1EeK9gKrxk10euQ"/>
+ <element xmi:type="uml:InterfaceRealization" href="library.uml#_lgRikPQ1EeK9gKrxk10euQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_lgRik_Q1EeK9gKrxk10euQ" points="[-8, -50, 23, 209]$[-36, -207, -5, 52]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_lqPW4fQ1EeK9gKrxk10euQ" type="4003" source="_i1ewQfQ1EeK9gKrxk10euQ" target="_iVyjkfQ1EeK9gKrxk10euQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_lqPW5PQ1EeK9gKrxk10euQ" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lqPW5fQ1EeK9gKrxk10euQ" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lqPW5vQ1EeK9gKrxk10euQ" type="6009">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lqPW5_Q1EeK9gKrxk10euQ" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_lqPW4vQ1EeK9gKrxk10euQ"/>
+ <element xmi:type="uml:InterfaceRealization" href="library.uml#_lqPW4PQ1EeK9gKrxk10euQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_lqPW4_Q1EeK9gKrxk10euQ" points="[-16, -50, 49, 223]$[-115, -266, -50, 7]"/>
+ </edges>
+</notation:Diagram>
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/library.uml b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/library.uml
new file mode 100644
index 00000000000..daaf1758445
--- /dev/null
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/library.uml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<uml:Model xmi:version="20110701" xmlns:xmi="http://www.omg.org/spec/XMI/20110701" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML" xmi:id="_gvvLwPQ1EeK9gKrxk10euQ" name="Library">
+ <packageImport xmi:id="_gvvLwfQ1EeK9gKrxk10euQ">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Interface" xmi:id="_iLO5YPQ1EeK9gKrxk10euQ" name="Interface1"/>
+ <packagedElement xmi:type="uml:Interface" xmi:id="_iQ41cPQ1EeK9gKrxk10euQ" name="Interface2"/>
+ <packagedElement xmi:type="uml:Interface" xmi:id="_iVyjkPQ1EeK9gKrxk10euQ" name="Interface3"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_irEQAPQ1EeK9gKrxk10euQ" clientDependency="_lWJ-R_Q1EeK9gKrxk10euQ" name="Class1" isAbstract="true">
+ <interfaceRealization xmi:id="_lWJ-R_Q1EeK9gKrxk10euQ" name="InterfaceRealization1" client="_irEQAPQ1EeK9gKrxk10euQ" supplier="_iLO5YPQ1EeK9gKrxk10euQ" contract="_iLO5YPQ1EeK9gKrxk10euQ"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_iwbRIPQ1EeK9gKrxk10euQ" clientDependency="_lgRikPQ1EeK9gKrxk10euQ" name="Class2" isAbstract="true">
+ <interfaceRealization xmi:id="_lgRikPQ1EeK9gKrxk10euQ" name="InterfaceRealization1" client="_iwbRIPQ1EeK9gKrxk10euQ" supplier="_iQ41cPQ1EeK9gKrxk10euQ" contract="_iQ41cPQ1EeK9gKrxk10euQ"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_i1ewQPQ1EeK9gKrxk10euQ" clientDependency="_lqPW4PQ1EeK9gKrxk10euQ" name="Class3" isAbstract="true">
+ <interfaceRealization xmi:id="_lqPW4PQ1EeK9gKrxk10euQ" name="InterfaceRealization1" client="_i1ewQPQ1EeK9gKrxk10euQ" supplier="_iVyjkPQ1EeK9gKrxk10euQ" contract="_iVyjkPQ1EeK9gKrxk10euQ"/>
+ </packagedElement>
+</uml:Model>
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/model.di b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/model.di
new file mode 100644
index 00000000000..8c2a79adc65
--- /dev/null
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/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#_Zt12UPQ1EeK9gKrxk10euQ"/>
+ </availablePage>
+ </pageList>
+ <sashModel currentSelection="//@sashModel/@windows.0/@children.0">
+ <windows>
+ <children xsi:type="di:TabFolder">
+ <children>
+ <emfPageIdentifier href="model.notation#_Zt12UPQ1EeK9gKrxk10euQ"/>
+ </children>
+ </children>
+ </windows>
+ </sashModel>
+</di:SashWindowsMngr>
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/model.notation b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/model.notation
new file mode 100644
index 00000000000..c2b223e8993
--- /dev/null
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/model.notation
@@ -0,0 +1,350 @@
+<?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="_Zt12UPQ1EeK9gKrxk10euQ" type="PapyrusUMLClassDiagram" name="NewDiagram" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_adcuUPQ1EeK9gKrxk10euQ" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_admfUPQ1EeK9gKrxk10euQ" type="5029"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_admfUfQ1EeK9gKrxk10euQ" type="7017">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_adwQUPQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_adwQUfQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:Shape" xmi:id="_cPkMMPQ1EeK9gKrxk10euQ" type="3012">
+ <element xmi:type="uml:Property" href="model.uml#_cPQqMPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_cPkMMfQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_cugK8PQ1EeK9gKrxk10euQ" type="3012">
+ <element xmi:type="uml:Property" href="model.uml#_cuXBAPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_cugK8fQ1EeK9gKrxk10euQ"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_admfUvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_admfU_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_admfVPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_admfVfQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_admfVvQ1EeK9gKrxk10euQ" type="7018">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_adwQUvQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_adwQU_Q1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_admfV_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_admfWPQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_admfWfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_admfWvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_admfW_Q1EeK9gKrxk10euQ" type="7019">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_adwQVPQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_adwQVfQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_admfXPQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_admfXfQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_admfXvQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_admfX_Q1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_aeDLQPQ1EeK9gKrxk10euQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_aeMVMPQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_aeMVMfQ1EeK9gKrxk10euQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_aeDLQfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_aeDLQvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <element xmi:type="uml:Class" href="model.uml#_aa6-wPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_adcuUfQ1EeK9gKrxk10euQ" x="265" y="360"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_anHnsfQ1EeK9gKrxk10euQ" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_anHns_Q1EeK9gKrxk10euQ" type="5029"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_anHntPQ1EeK9gKrxk10euQ" type="7017">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_anHnw_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_anHnxPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_anHntfQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_anHntvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_anHnt_Q1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_anHnuPQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_anHnufQ1EeK9gKrxk10euQ" type="7018">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_anHnxfQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_anHnxvQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_anHnuvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_anHnu_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_anHnvPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_anHnvfQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_anHnvvQ1EeK9gKrxk10euQ" type="7019">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_anHnx_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_anHnyPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_anHnv_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_anHnwPQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_anHnwfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_anHnwvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_anRYsPQ1EeK9gKrxk10euQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_anRYs_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_anRYtPQ1EeK9gKrxk10euQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_anRYsfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_anRYsvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <element xmi:type="uml:Class" href="model.uml#_anHnsPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_anHnsvQ1EeK9gKrxk10euQ" x="810" y="390"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ar4y8fQ1EeK9gKrxk10euQ" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ar4y8_Q1EeK9gKrxk10euQ" type="5029"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ar4y9PQ1EeK9gKrxk10euQ" type="7017">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ar4zA_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ar4zBPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ar4y9fQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ar4y9vQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ar4y9_Q1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ar4y-PQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ar4y-fQ1EeK9gKrxk10euQ" type="7018">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ar4zBfQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ar4zBvQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ar4y-vQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ar4y-_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ar4y_PQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ar4y_fQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ar4y_vQ1EeK9gKrxk10euQ" type="7019">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ar4zB_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ar4zCPQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ar4y__Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ar4zAPQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ar4zAfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ar4zAvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_asLt4PQ1EeK9gKrxk10euQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_asLt4_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_asLt5PQ1EeK9gKrxk10euQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_asLt4fQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_asLt4vQ1EeK9gKrxk10euQ"/>
+ </children>
+ <element xmi:type="uml:Class" href="model.uml#_ar4y8PQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ar4y8vQ1EeK9gKrxk10euQ" x="540" y="590"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_s63E0PQ1EeK9gKrxk10euQ" type="2004">
+ <children xmi:type="notation:DecorationNode" xmi:id="_s63E0vQ1EeK9gKrxk10euQ" type="5011"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_s63E0_Q1EeK9gKrxk10euQ" type="7006">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_s63E4vQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_s63E4_Q1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_s63E1PQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_s63E1fQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_s63E1vQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_s63E1_Q1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_s63E2PQ1EeK9gKrxk10euQ" type="7007">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_s63E5PQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_s63E5fQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_s63E2fQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_s63E2vQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_s63E2_Q1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_s63E3PQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_s63E3fQ1EeK9gKrxk10euQ" type="7008">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_s63E5vQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_s63E5_Q1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_s63E3vQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_s63E3_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_s63E4PQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_s63E4fQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_s7J_wPQ1EeK9gKrxk10euQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_s7J_w_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_s7J_xPQ1EeK9gKrxk10euQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_s7J_wfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_s7J_wvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <element xmi:type="uml:Interface" href="library.uml#_iLO5YPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_s63E0fQ1EeK9gKrxk10euQ" x="290" y="135"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_s7J_xfQ1EeK9gKrxk10euQ" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_s7J_x_Q1EeK9gKrxk10euQ" type="5029"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_s7J_yPQ1EeK9gKrxk10euQ" type="7017">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_s7J_1_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_s7J_2PQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_s7J_yfQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_s7J_yvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_s7J_y_Q1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_s7J_zPQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_s7J_zfQ1EeK9gKrxk10euQ" type="7018">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_s7J_2fQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_s7J_2vQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_s7J_zvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_s7J_z_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_s7J_0PQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_s7J_0fQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_s7J_0vQ1EeK9gKrxk10euQ" type="7019">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_s7J_2_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_s7J_3PQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_s7J_0_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_s7J_1PQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_s7J_1fQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_s7J_1vQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_s7TwwPQ1EeK9gKrxk10euQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_s7Tww_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_s7TwxPQ1EeK9gKrxk10euQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_s7TwwfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_s7TwwvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <element xmi:type="uml:Class" href="library.uml#_iwbRIPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_s7J_xvQ1EeK9gKrxk10euQ" x="810" y="205"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_tuVwMPQ1EeK9gKrxk10euQ" type="2004">
+ <children xmi:type="notation:DecorationNode" xmi:id="_tuVwMvQ1EeK9gKrxk10euQ" type="5011"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_tuVwM_Q1EeK9gKrxk10euQ" type="7006">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_tuVwQvQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_tuVwQ_Q1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_tuVwNPQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_tuVwNfQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_tuVwNvQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_tuVwN_Q1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_tuVwOPQ1EeK9gKrxk10euQ" type="7007">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_tuVwRPQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_tuVwRfQ1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_tuVwOfQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_tuVwOvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_tuVwO_Q1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_tuVwPPQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_tuVwPfQ1EeK9gKrxk10euQ" type="7008">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_tuVwRvQ1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_tuVwR_Q1EeK9gKrxk10euQ" key="showTitle" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_tuVwPvQ1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_tuVwP_Q1EeK9gKrxk10euQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_tuVwQPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_tuVwQfQ1EeK9gKrxk10euQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_tue6IPQ1EeK9gKrxk10euQ" visible="false" type="compartment_shape_display">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_tue6I_Q1EeK9gKrxk10euQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_tue6JPQ1EeK9gKrxk10euQ" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_tue6IfQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_tue6IvQ1EeK9gKrxk10euQ"/>
+ </children>
+ <element xmi:type="uml:Interface" href="library.uml#_iQ41cPQ1EeK9gKrxk10euQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_tuVwMfQ1EeK9gKrxk10euQ" x="805" y="15"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_Zt12UfQ1EeK9gKrxk10euQ"/>
+ <element xmi:type="uml:Model" href="model.uml#_ZtZxs_Q1EeK9gKrxk10euQ"/>
+ <edges xmi:type="notation:Connector" xmi:id="_bKYs0PQ1EeK9gKrxk10euQ" type="4001" source="_ar4y8fQ1EeK9gKrxk10euQ" target="_anHnsfQ1EeK9gKrxk10euQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_bKYs0_Q1EeK9gKrxk10euQ" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bKYs1PQ1EeK9gKrxk10euQ" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_bKYs1fQ1EeK9gKrxk10euQ" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bKYs1vQ1EeK9gKrxk10euQ" x="16" y="42"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_bKYs1_Q1EeK9gKrxk10euQ" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bKYs2PQ1EeK9gKrxk10euQ" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_bKYs2fQ1EeK9gKrxk10euQ" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bKYs2vQ1EeK9gKrxk10euQ" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_bKYs2_Q1EeK9gKrxk10euQ" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bKYs3PQ1EeK9gKrxk10euQ" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_bKYs3fQ1EeK9gKrxk10euQ" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bKYs3vQ1EeK9gKrxk10euQ" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_bKYs0fQ1EeK9gKrxk10euQ"/>
+ <element xmi:type="uml:Association" href="model.uml#_bKO70_Q1EeK9gKrxk10euQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_bKYs0vQ1EeK9gKrxk10euQ" points="[50, -25, -352, 174]$[423, -221, 21, -22]"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bOi0EPQ1EeK9gKrxk10euQ" id="(0.77,0.22)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_bVGIB_Q1EeK9gKrxk10euQ" type="4001" source="_ar4y8fQ1EeK9gKrxk10euQ" target="_adcuUPQ1EeK9gKrxk10euQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_bVGICvQ1EeK9gKrxk10euQ" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bVGIC_Q1EeK9gKrxk10euQ" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_bVGIDPQ1EeK9gKrxk10euQ" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bVGIDfQ1EeK9gKrxk10euQ" x="-22" y="45"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_bVGIDvQ1EeK9gKrxk10euQ" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bVGID_Q1EeK9gKrxk10euQ" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_bVGIEPQ1EeK9gKrxk10euQ" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bVGIEfQ1EeK9gKrxk10euQ" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_bVGIEvQ1EeK9gKrxk10euQ" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bVGIE_Q1EeK9gKrxk10euQ" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_bVGIFPQ1EeK9gKrxk10euQ" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bVGIFfQ1EeK9gKrxk10euQ" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_bVGICPQ1EeK9gKrxk10euQ"/>
+ <element xmi:type="uml:Association" href="model.uml#_bVGIA_Q1EeK9gKrxk10euQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_bVGICfQ1EeK9gKrxk10euQ" points="[-32, -50, 125, 188]$[-163, -288, -6, -50]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_uGlREPQ1EeK9gKrxk10euQ" type="4003" source="_s7J_xfQ1EeK9gKrxk10euQ" target="_tuVwMPQ1EeK9gKrxk10euQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_uGlRE_Q1EeK9gKrxk10euQ" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_uGlRFPQ1EeK9gKrxk10euQ" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_uGlRFfQ1EeK9gKrxk10euQ" type="6009">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_uGlRFvQ1EeK9gKrxk10euQ" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_uGlREfQ1EeK9gKrxk10euQ"/>
+ <element xmi:type="uml:InterfaceRealization" href="library.uml#_lgRikPQ1EeK9gKrxk10euQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_uGlREvQ1EeK9gKrxk10euQ" points="[6, -50, -13, 94]$[12, -92, -7, 52]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_wES68fQ1EeK9gKrxk10euQ" type="4002" source="_anHnsfQ1EeK9gKrxk10euQ" target="_s7J_xfQ1EeK9gKrxk10euQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_wES69PQ1EeK9gKrxk10euQ" type="6007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_wES69fQ1EeK9gKrxk10euQ" y="40"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_wES68vQ1EeK9gKrxk10euQ"/>
+ <element xmi:type="uml:Generalization" href="model.uml#_wES68PQ1EeK9gKrxk10euQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_wES68_Q1EeK9gKrxk10euQ" points="[-7, -50, -7, 135]$[-7, -135, -7, 50]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_yJmakPQ1EeK9gKrxk10euQ" type="4003" source="_adcuUPQ1EeK9gKrxk10euQ" target="_s63E0PQ1EeK9gKrxk10euQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_yJmak_Q1EeK9gKrxk10euQ" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_yJmalPQ1EeK9gKrxk10euQ" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_yJmalfQ1EeK9gKrxk10euQ" type="6009">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_yJmalvQ1EeK9gKrxk10euQ" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_yJmakfQ1EeK9gKrxk10euQ"/>
+ <element xmi:type="uml:InterfaceRealization" href="model.uml#_yJcpkPQ1EeK9gKrxk10euQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_yJmakvQ1EeK9gKrxk10euQ" points="[5, -19, 0, 163]$[5, -130, 0, 52]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_yJwLkPQ1EeK9gKrxk10euQ" id="(0.4473684210526316,0.16964285714285715)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_lsXWcPQ4EeK9gKrxk10euQ" type="4001" source="_ar4y8fQ1EeK9gKrxk10euQ" target="_tuVwMPQ1EeK9gKrxk10euQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_lsXWc_Q4EeK9gKrxk10euQ" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lsXWdPQ4EeK9gKrxk10euQ" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lsXWdfQ4EeK9gKrxk10euQ" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lsXWdvQ4EeK9gKrxk10euQ" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lsXWd_Q4EeK9gKrxk10euQ" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lsXWePQ4EeK9gKrxk10euQ" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lsXWefQ4EeK9gKrxk10euQ" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lsXWevQ4EeK9gKrxk10euQ" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lsXWe_Q4EeK9gKrxk10euQ" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lsXWfPQ4EeK9gKrxk10euQ" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lsXWffQ4EeK9gKrxk10euQ" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lsXWfvQ4EeK9gKrxk10euQ" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_lsXWcfQ4EeK9gKrxk10euQ"/>
+ <element xmi:type="uml:Association" href="model.uml#_lsOMg_Q4EeK9gKrxk10euQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_lsXWcvQ4EeK9gKrxk10euQ" points="[8, -22, -211, 526]$[214, -549, -5, -1]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_lsqRYPQ4EeK9gKrxk10euQ" id="(0.51,0.22)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_lsqRYfQ4EeK9gKrxk10euQ" id="(0.05,0.47115384615384615)"/>
+ </edges>
+</notation:Diagram>
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/model.uml b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/model.uml
new file mode 100644
index 00000000000..3380ee19a64
--- /dev/null
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/resources/dependencyManagement/model.uml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<uml:Model xmi:version="20110701" xmlns:xmi="http://www.omg.org/spec/XMI/20110701" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML" xmi:id="_ZtZxs_Q1EeK9gKrxk10euQ" name="Model">
+ <packageImport xmi:type="uml:PackageImport" xmi:id="_ZtZxtPQ1EeK9gKrxk10euQ">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packageImport xmi:type="uml:PackageImport" xmi:id="_oe_9gPQ1EeK9gKrxk10euQ">
+ <importedPackage xmi:type="uml:Model" href="library.uml#_gvvLwPQ1EeK9gKrxk10euQ"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Class" xmi:id="_aa6-wPQ1EeK9gKrxk10euQ" clientDependency="_yJcpkPQ1EeK9gKrxk10euQ" name="Class1">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_cPQqMPQ1EeK9gKrxk10euQ" name="Attribute1">
+ <type xmi:type="uml:Interface" href="library.uml#_iVyjkPQ1EeK9gKrxk10euQ"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_cuXBAPQ1EeK9gKrxk10euQ" name="Attribute2">
+ <type xmi:type="uml:Class" href="library.uml#_iwbRIPQ1EeK9gKrxk10euQ"/>
+ </ownedAttribute>
+ <interfaceRealization xmi:type="uml:InterfaceRealization" xmi:id="_yJcpkPQ1EeK9gKrxk10euQ" name="InterfaceRealization1" client="_aa6-wPQ1EeK9gKrxk10euQ">
+ <supplier xmi:type="uml:Interface" href="library.uml#_iLO5YPQ1EeK9gKrxk10euQ"/>
+ <contract xmi:type="uml:Interface" href="library.uml#_iLO5YPQ1EeK9gKrxk10euQ"/>
+ </interfaceRealization>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_anHnsPQ1EeK9gKrxk10euQ" name="Class2">
+ <generalization xmi:type="uml:Generalization" xmi:id="_wES68PQ1EeK9gKrxk10euQ">
+ <general xmi:type="uml:Class" href="library.uml#_iwbRIPQ1EeK9gKrxk10euQ"/>
+ </generalization>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_ar4y8PQ1EeK9gKrxk10euQ" name="Class3">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_bKO70PQ1EeK9gKrxk10euQ" name="class2" type="_anHnsPQ1EeK9gKrxk10euQ" association="_bKO70_Q1EeK9gKrxk10euQ">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_bKO70fQ1EeK9gKrxk10euQ" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_bKO70vQ1EeK9gKrxk10euQ" value="1"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_bVGIAPQ1EeK9gKrxk10euQ" name="class1" type="_aa6-wPQ1EeK9gKrxk10euQ" association="_bVGIA_Q1EeK9gKrxk10euQ">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_bVGIAfQ1EeK9gKrxk10euQ" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_bVGIAvQ1EeK9gKrxk10euQ" value="1"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_lsOMgPQ4EeK9gKrxk10euQ" name="interface2" association="_lsOMg_Q4EeK9gKrxk10euQ">
+ <type xmi:type="uml:Interface" href="library.uml#_iQ41cPQ1EeK9gKrxk10euQ"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_lsOMgfQ4EeK9gKrxk10euQ" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_lsOMgvQ4EeK9gKrxk10euQ" value="1"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_bKO70_Q1EeK9gKrxk10euQ" name="class3_class2_1" memberEnd="_bKO71PQ1EeK9gKrxk10euQ _bKO70PQ1EeK9gKrxk10euQ">
+ <ownedEnd xmi:type="uml:Property" xmi:id="_bKO71PQ1EeK9gKrxk10euQ" name="class3" type="_ar4y8PQ1EeK9gKrxk10euQ" association="_bKO70_Q1EeK9gKrxk10euQ">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_bKO71fQ1EeK9gKrxk10euQ" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_bKO71vQ1EeK9gKrxk10euQ" value="1"/>
+ </ownedEnd>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_bVGIA_Q1EeK9gKrxk10euQ" name="class3_class1_1" memberEnd="_bVGIBPQ1EeK9gKrxk10euQ _bVGIAPQ1EeK9gKrxk10euQ">
+ <ownedEnd xmi:type="uml:Property" xmi:id="_bVGIBPQ1EeK9gKrxk10euQ" name="class3" type="_ar4y8PQ1EeK9gKrxk10euQ" association="_bVGIA_Q1EeK9gKrxk10euQ">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_bVGIBfQ1EeK9gKrxk10euQ" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_bVGIBvQ1EeK9gKrxk10euQ" value="1"/>
+ </ownedEnd>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_lsOMg_Q4EeK9gKrxk10euQ" name="class3_interface2_1" memberEnd="_lsOMhPQ4EeK9gKrxk10euQ _lsOMgPQ4EeK9gKrxk10euQ">
+ <ownedEnd xmi:type="uml:Property" xmi:id="_lsOMhPQ4EeK9gKrxk10euQ" name="class3" type="_ar4y8PQ1EeK9gKrxk10euQ" association="_lsOMg_Q4EeK9gKrxk10euQ">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_lsOMhfQ4EeK9gKrxk10euQ" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_lsOMhvQ4EeK9gKrxk10euQ" value="1"/>
+ </ownedEnd>
+ </packagedElement>
+</uml:Model>
diff --git a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/src/org/eclipse/papyrus/uml/tools/tests/tests/AllTests.java b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/src/org/eclipse/papyrus/uml/tools/tests/tests/AllTests.java
index fc695382b42..07105c0d3ce 100644
--- a/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/src/org/eclipse/papyrus/uml/tools/tests/tests/AllTests.java
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/src/org/eclipse/papyrus/uml/tools/tests/tests/AllTests.java
@@ -17,9 +17,9 @@ import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
@RunWith(Suite.class)
-@SuiteClasses({ ContentProviderTest.class, UMLStereotypePropertyContentProviderTest.class
+@SuiteClasses({ ContentProviderTest.class, UMLStereotypePropertyContentProviderTest.class, DependencyManagementTest.class
})
public class AllTests {
-
+ //Test suite
}
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
new file mode 100644
index 00000000000..c25e1af6650
--- /dev/null
+++ b/tests/junit/plugins/uml/tools/org.eclipse.papyrus.uml.tools.tests/src/org/eclipse/papyrus/uml/tools/tests/tests/DependencyManagementTest.java
@@ -0,0 +1,133 @@
+/*****************************************************************************
+ * 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:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.tools.tests.tests;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.papyrus.infra.core.resource.ModelSet;
+import org.eclipse.papyrus.infra.emf.resource.DependencyManagementHelper;
+import org.eclipse.papyrus.junit.utils.ModelUtils;
+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.junit.Assert;
+import org.junit.Ignore;
+import org.junit.Test;
+import org.osgi.framework.Bundle;
+
+/**
+ * Test case for DependencyManagementHelper
+ *
+ * @author Camille Letavernier
+ *
+ */
+public class DependencyManagementTest extends AbstractEditorTest {
+
+ public final static String SOURCE_PATH = "resources/dependencyManagement/";
+
+ //Switch from a library to a copy
+ @Test
+ public void testSimpleSwitch() throws Exception {
+ //Create the project will 2 libraries and a client
+ IProject project = ProjectUtils.createProject("dependencyManagement.simpleSwitch");
+ PapyrusProjectUtils.copyPapyrusModel(project, getBundle(), getSourcePath(), "model");
+ PapyrusProjectUtils.copyPapyrusModel(project, getBundle(), getSourcePath(), "library");
+ PapyrusProjectUtils.copyPapyrusModel(project, getBundle(), getSourcePath(), "copy-of-library");
+
+ //Retrieve the URIs of each model
+ final URI clientModelDiURI = URI.createPlatformResourceURI(project.getName() + "/model.di", true);
+ final URI clientModelURI = URI.createPlatformResourceURI(project.getName() + "/model.uml", true);
+ final URI sourceLibraryURI = URI.createPlatformResourceURI(project.getName() + "/library.uml", true);
+ final URI targetLibraryURI = URI.createPlatformResourceURI(project.getName() + "/copy-of-library.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 library
+ Assert.assertNull("The modelset should not have references to the target library", modelSet.getResource(targetLibraryURI, false));
+
+ domain.getCommandStack().execute(new RecordingCommand(domain, "Edit model dependencies") {
+
+ @Override
+ protected void doExecute() {
+ DependencyManagementHelper.updateDependencies(sourceLibraryURI, targetLibraryURI, modelSet, domain);
+ }
+ });
+
+
+ EcoreUtil.resolveAll(modelSet);
+ //The modelset now has some references to the target library
+ Assert.assertNotNull("The modelset should have references to the target library", modelSet.getResource(targetLibraryURI, false));
+
+
+ modelSet.save(new NullProgressMonitor());
+
+
+ //
+ // Reload
+ //
+
+ ModelSet reloadedModelSet = ModelUtils.loadModelSet(clientModelDiURI, true);
+
+ //The reloaded modelset must have some references to the target library
+ Resource clientModelResource = reloadedModelSet.getResource(clientModelURI, false);
+ Assert.assertNotNull("The modelset should have references to the target library", clientModelResource);
+
+ //The reloaded modelset doesn't have any reference to the source library
+ Assert.assertNull("The modelset should not have references to the source library", reloadedModelSet.getResource(sourceLibraryURI, false));
+
+ domain.dispose();
+ modelSet.unload();
+
+ ModelUtils.getEditingDomain(reloadedModelSet).dispose();
+ reloadedModelSet.unload();
+
+ project.delete(true, null);
+ }
+
+ //Switch from a library to an un-existing resource
+ @Ignore("Todo")
+ @Test
+ public void testSwitchToProxy() throws Exception {
+ //TODO
+ }
+
+ //Switch from a proxy to a library
+ @Ignore("Todo")
+ @Test
+ public void testSwitchFromProxy() throws Exception {
+ //TODO
+ }
+
+ //Switch from a library to a modified copy of this library
+ @Ignore("Todo")
+ @Test
+ public void testSwitchToDifferentVersion() throws Exception {
+ //TODO
+ }
+
+ @Override
+ protected String getSourcePath() {
+ return SOURCE_PATH;
+ }
+
+ @Override
+ protected Bundle getBundle() {
+ return Activator.getDefault().getBundle();
+ }
+}

Back to the top