Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-09-04 08:56:44 +0000
committerCamille Letavernier2014-09-04 08:56:44 +0000
commit1748df91bbfca87ab2fbc90c66e4726e18619cab (patch)
tree055781ab050a31805706b7f477ec44ef8b063f07 /plugins/infra
parente9442e852f92949e163b74a673346a8bf45bd0fc (diff)
downloadorg.eclipse.papyrus-1748df91bbfca87ab2fbc90c66e4726e18619cab.tar.gz
org.eclipse.papyrus-1748df91bbfca87ab2fbc90c66e4726e18619cab.tar.xz
org.eclipse.papyrus-1748df91bbfca87ab2fbc90c66e4726e18619cab.zip
443241: ConcurrentModificationException on attempt to open already open
diagram https://bugs.eclipse.org/bugs/show_bug.cgi?id=443241
Diffstat (limited to 'plugins/infra')
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/SynchronizableGmfDiagramEditor.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/SynchronizableGmfDiagramEditor.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/SynchronizableGmfDiagramEditor.java
index a8f52d6220d..dd03f4261d3 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/SynchronizableGmfDiagramEditor.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/SynchronizableGmfDiagramEditor.java
@@ -149,12 +149,12 @@ public class SynchronizableGmfDiagramEditor extends DiagramDocumentEditor implem
// We may also search for a GMF View (Instead of a semantic model Element)
if (!clonedList.isEmpty()) {
- for (Object element : clonedList) {
+ for (Iterator<?> iterator = clonedList.iterator(); iterator.hasNext();) {
+ Object element = iterator.next();
if (graphicalViewer.getEditPartRegistry().containsKey(element) && !clonedList.isEmpty()) {
- clonedList.remove(element);
+ iterator.remove();
researchedEditPart = (IGraphicalEditPart) graphicalViewer.getEditPartRegistry().get(element);
partSelection.add(researchedEditPart);
-
}
}
}

Back to the top