Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpguilet2017-06-16 15:11:13 +0000
committerpguilet2017-06-23 13:02:40 +0000
commit8cf04acad92e8646077e69a5c869923168c30f54 (patch)
tree8cc91285ee6df0f5b1a15890b9e151b7127e44bb
parent2926569faffd8d836c4442c4dacd07c356655fa3 (diff)
downloadorg.eclipse.sirius-8cf04acad92e8646077e69a5c869923168c30f54.tar.gz
org.eclipse.sirius-8cf04acad92e8646077e69a5c869923168c30f54.tar.xz
org.eclipse.sirius-8cf04acad92e8646077e69a5c869923168c30f54.zip
[518259] Fix Model Explorer refresh not working for new representations
Creating a new representation now always refresh correctly the model explorer. It means the corresponding item under its associated model element is now made visible after creation in all cases. Bug: 518259 Change-Id: I7923e85fa1e76d3179515ae42a4607bdbd3df997 Signed-off-by: pguilet <pierre.guilet@obeo.fr>
-rw-r--r--plugins/org.eclipse.sirius/src/org/eclipse/sirius/business/internal/session/danalysis/DAnalysisSessionImpl.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/org.eclipse.sirius/src/org/eclipse/sirius/business/internal/session/danalysis/DAnalysisSessionImpl.java b/plugins/org.eclipse.sirius/src/org/eclipse/sirius/business/internal/session/danalysis/DAnalysisSessionImpl.java
index 66bd7ee268..af44309df3 100644
--- a/plugins/org.eclipse.sirius/src/org/eclipse/sirius/business/internal/session/danalysis/DAnalysisSessionImpl.java
+++ b/plugins/org.eclipse.sirius/src/org/eclipse/sirius/business/internal/session/danalysis/DAnalysisSessionImpl.java
@@ -1173,6 +1173,13 @@ public class DAnalysisSessionImpl extends DAnalysisSessionEObjectImpl implements
}
}
+ // We initialize the cross referencer and put it as adapter of this session before initializing local
+ // triggers to be sure that RepresentationChangedAdapter will always be after the cross referencer in
+ // adapted objects. It avoids refreshing the Model Explorer listening to the RCA before updating the cross
+ // referencer with new created representations. And thus missing the new created representation under its
+ // associated model element when refreshing Model Explorer.
+ registerResourceInCrossReferencer(sessionResource);
+
DViewOperations.on(this).updateSelectedViewpointsData(new SubProgressMonitor(monitor, 10));
initLocalTriggers();

Back to the top