Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeremie.tatibouet2015-05-04 16:21:02 +0000
committerArnaud Cuccuru2015-05-05 16:48:05 +0000
commit657bf2225084a8d68186b37d730599da6fd1fec3 (patch)
tree16f5ceaf5fdf797366638cee4702794f6a7ce6c2 /extraplugins/alf/core
parent98ff494a9cb8fd0492d824740e327e4622a1bb5f (diff)
downloadorg.eclipse.papyrus-657bf2225084a8d68186b37d730599da6fd1fec3.tar.gz
org.eclipse.papyrus-657bf2225084a8d68186b37d730599da6fd1fec3.tar.xz
org.eclipse.papyrus-657bf2225084a8d68186b37d730599da6fd1fec3.zip
Do not compute the synchronization points when a package import is
created at root of a model. Change-Id: I5e0083dffe639bfe27c208046781225c8797a0ba Signed-off-by: jeremie.tatibouet <jeremie.tatibouet@cea.fr> Reviewed-on: https://git.eclipse.org/r/47157 Tested-by: Hudson CI Reviewed-by: Arnaud Cuccuru <arnaud.cuccuru@cea.fr> Tested-by: Arnaud Cuccuru <arnaud.cuccuru@cea.fr>
Diffstat (limited to 'extraplugins/alf/core')
-rw-r--r--extraplugins/alf/core/org.eclipse.papyrus.uml.alf.transaction/src/org/eclipse/papyrus/uml/alf/transaction/commit/SyncScenario.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/extraplugins/alf/core/org.eclipse.papyrus.uml.alf.transaction/src/org/eclipse/papyrus/uml/alf/transaction/commit/SyncScenario.java b/extraplugins/alf/core/org.eclipse.papyrus.uml.alf.transaction/src/org/eclipse/papyrus/uml/alf/transaction/commit/SyncScenario.java
index bcdaa3dede3..19f278b4461 100644
--- a/extraplugins/alf/core/org.eclipse.papyrus.uml.alf.transaction/src/org/eclipse/papyrus/uml/alf/transaction/commit/SyncScenario.java
+++ b/extraplugins/alf/core/org.eclipse.papyrus.uml.alf.transaction/src/org/eclipse/papyrus/uml/alf/transaction/commit/SyncScenario.java
@@ -205,7 +205,13 @@ public class SyncScenario extends Scenario implements ISyncScenario {
targets.addAll(this.getParentPath((Element)notification.getNewValue()));
}
}else{
- targets.addAll(this.getParentPath(element.getOwner()));
+ if(feature == UMLPackage.eINSTANCE.getPackageImport_ImportedPackage()){
+ if(element.getModel() != ((PackageImport)element).getImportingNamespace()){
+ targets.addAll(this.getParentPath(element.getOwner()));
+ }
+ }else{
+ targets.addAll(this.getParentPath(element.getOwner()));
+ }
}
}break;
}

Back to the top