Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Tessier2016-09-27 08:12:45 -0400
committerPatrick Tessier2016-09-27 08:15:12 -0400
commit174ffe0f41474b08151793a28eb862c986dc9858 (patch)
tree7731510f110be154118e7947c8483da58efadb48 /plugins/facet
parente3044daf72eed65aa9a97859c499c354c6370953 (diff)
downloadorg.eclipse.papyrus-174ffe0f41474b08151793a28eb862c986dc9858.tar.gz
org.eclipse.papyrus-174ffe0f41474b08151793a28eb862c986dc9858.tar.xz
org.eclipse.papyrus-174ffe0f41474b08151793a28eb862c986dc9858.zip
Bug 501346: Custom Model Editor (Facet) does not save
https://bugs.eclipse.org/bugs/show_bug.cgi?id=501346 Change-Id: Iebc46701377962e2f2b3536c8788219a7dec9297 Signed-off-by: Patrick Tessier <Patrick.Tessier@cea.fr>
Diffstat (limited to 'plugins/facet')
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetImpl.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetImpl.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetImpl.java
index fdb80d42dbc..4c1a7e87d8a 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetImpl.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel/src/org/eclipse/papyrus/emf/facet/efacet/metamodel/v0_2_0/efacet/impl/FacetImpl.java
@@ -33,6 +33,7 @@ import org.eclipse.emf.ecore.impl.EClassifierImpl;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.EObjectResolvingEList;
+import org.eclipse.emf.ecore.util.EcoreEList;
import org.eclipse.emf.ecore.util.InternalEList;
import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.DocumentedElement;
import org.eclipse.papyrus.emf.facet.efacet.metamodel.v0_2_0.efacet.EFacetPackage;
@@ -390,7 +391,7 @@ public class FacetImpl extends EClassifierImpl implements Facet {
allTypedElements = new BasicEList<ETypedElement>();
allTypedElements.addAll(getAllFacetElements());
allTypedElements.addAll(getAllFacetOperations());
- allTypedElements = ECollections.unmodifiableEList(allTypedElements);
+ allTypedElements = new EcoreEList.UnmodifiableEList(this,EFacetPackage.eINSTANCE.getFacet_AllTypedElements(),allTypedElements.size(), allTypedElements.toArray());
}
return allTypedElements;
}
@@ -409,7 +410,7 @@ public class FacetImpl extends EClassifierImpl implements Facet {
allFacetOperations.addAll(facet.getAllFacetOperations());
}
allFacetOperations.addAll(getFacetOperations());
- allFacetOperations = ECollections.unmodifiableEList(allFacetOperations);
+ allFacetOperations = new EcoreEList.UnmodifiableEList(this,EFacetPackage.eINSTANCE.getFacet_AllFacetOperations(),allFacetOperations.size(), allFacetOperations.toArray());
}
return allFacetOperations;
}
@@ -428,7 +429,7 @@ public class FacetImpl extends EClassifierImpl implements Facet {
allFacetElements.addAll(facet.getAllFacetElements());
}
allFacetElements.addAll(getFacetElements());
- allFacetElements = ECollections.unmodifiableEList(allFacetElements);
+ allFacetElements = new EcoreEList.UnmodifiableEList(this,EFacetPackage.eINSTANCE.getFacet_AllFacetElements(),allFacetElements.size(), allFacetElements.toArray());
}
return allFacetElements;
}

Back to the top