Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathalie Lepine2015-08-19 09:41:52 +0000
committerNathalie Lepine2015-08-19 12:18:55 +0000
commitb90adde5923c02cc5bff935081d3d1ecaaafc45a (patch)
treebac4448bcf7320bf8ce74a8f95f10698b1d819c5
parentb25a4edbeb9a07877fb39c2af2459c67af6c4e97 (diff)
downloadorg.eclipse.eef-v2_0_0.tar.gz
org.eclipse.eef-v2_0_0.tar.xz
org.eclipse.eef-v2_0_0.zip
fix concurrent exceptionv2_0_0
-rw-r--r--plugins/org.eclipse.emf.eef.editor/src/org/eclipse/emf/eef/editor/internal/binding/settings/EditorBindingSettings.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.eef.editor/src/org/eclipse/emf/eef/editor/internal/binding/settings/EditorBindingSettings.java b/plugins/org.eclipse.emf.eef.editor/src/org/eclipse/emf/eef/editor/internal/binding/settings/EditorBindingSettings.java
index 8991f6b19..822a96e88 100644
--- a/plugins/org.eclipse.emf.eef.editor/src/org/eclipse/emf/eef/editor/internal/binding/settings/EditorBindingSettings.java
+++ b/plugins/org.eclipse.emf.eef.editor/src/org/eclipse/emf/eef/editor/internal/binding/settings/EditorBindingSettings.java
@@ -10,6 +10,8 @@
*******************************************************************************/
package org.eclipse.emf.eef.editor.internal.binding.settings;
+import java.util.List;
+
import org.eclipse.core.runtime.Status;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
@@ -32,6 +34,7 @@ import org.eclipse.emf.eef.runtime.view.handle.ViewHandlerProvider;
import org.eclipse.emf.eef.runtime.view.lock.policies.EEFLockPolicy;
import com.google.common.collect.Iterables;
+import com.google.common.collect.Lists;
/**
* Generic binding settings for EObject.
@@ -109,7 +112,8 @@ public class EditorBindingSettings implements EEFBindingSettings<PropertiesEditi
* @see org.eclipse.emf.eef.runtime.binding.settings.EEFBindingSettings#getEEFDescription(org.eclipse.emf.ecore.EClass)
*/
public PropertiesEditingModel getEEFDescription(EClass eClass) {
- for (Resource resource : editingDomain.getResourceSet().getResources()) {
+ List<Resource> resources = Lists.newArrayList(editingDomain.getResourceSet().getResources());
+ for (Resource resource : resources) {
if (!resource.getContents().isEmpty() && resource.getContents().get(0) instanceof PropertiesEditingModel) {
PropertiesEditingModel editingModel = (PropertiesEditingModel) resource.getContents().get(0);
if (editingModel != null) {

Back to the top