Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Porhel2019-07-09 06:00:34 -0400
committerMaxime Porhel2019-07-19 09:24:31 -0400
commite67a04a56de436ec633c547b9fb22b26cc13dde4 (patch)
tree8cfbc7039bba128a400b29399239570b86f415a4
parent5cae1c65d708f3263d041975a8ce540e7d17ebd3 (diff)
downloadorg.eclipse.sirius-e67a04a56de436ec633c547b9fb22b26cc13dde4.tar.gz
org.eclipse.sirius-e67a04a56de436ec633c547b9fb22b26cc13dde4.tar.xz
org.eclipse.sirius-e67a04a56de436ec633c547b9fb22b26cc13dde4.zip
[549054] Enable LayerHelper activeParentLayers cache during refresh
Bug: 549054 Change-Id: I5a3ccf43cfd1107b3818f117b63a240438324c61 Signed-off-by: Maxime Porhel <maxime.porhel@obeo.fr>
-rw-r--r--plugins/org.eclipse.sirius.diagram/src-core/org/eclipse/sirius/diagram/business/internal/sync/DDiagramSynchronizer.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.sirius.diagram/src-core/org/eclipse/sirius/diagram/business/internal/sync/DDiagramSynchronizer.java b/plugins/org.eclipse.sirius.diagram/src-core/org/eclipse/sirius/diagram/business/internal/sync/DDiagramSynchronizer.java
index c23abed326..e83b2a9a10 100644
--- a/plugins/org.eclipse.sirius.diagram/src-core/org/eclipse/sirius/diagram/business/internal/sync/DDiagramSynchronizer.java
+++ b/plugins/org.eclipse.sirius.diagram/src-core/org/eclipse/sirius/diagram/business/internal/sync/DDiagramSynchronizer.java
@@ -322,6 +322,8 @@ public class DDiagramSynchronizer {
try {
KeyCache.DEFAULT.clear();
EqualityHelper.setUriFragmentCacheEnabled(true);
+ LayerHelper.setActiveParentLayersCacheEnabled(diagramMappingsManager, true);
+
// Semantic changes should be possible when a representation
// representation
// is locked (CDO)
@@ -408,6 +410,7 @@ public class DDiagramSynchronizer {
KeyCache.DEFAULT.clear();
} finally {
EqualityHelper.setUriFragmentCacheEnabled(false);
+ LayerHelper.setActiveParentLayersCacheEnabled(diagramMappingsManager, false);
monitor.done();
}
}

Back to the top