Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreperico2009-12-08 11:46:26 -0500
committereperico2009-12-08 11:46:26 -0500
commitd37af96e17e8add2ec84c5c6f845313ccaca7fef (patch)
tree460c0f9b60283844b4d9a2a21755c19ec591ae0f /plugins/profile-tool/org.eclipse.papyrus.resource
parentac1b97786665d974b7fe6bf1583f38aa146e60a0 (diff)
downloadorg.eclipse.papyrus-d37af96e17e8add2ec84c5c6f845313ccaca7fef.tar.gz
org.eclipse.papyrus-d37af96e17e8add2ec84c5c6f845313ccaca7fef.tar.xz
org.eclipse.papyrus-d37af96e17e8add2ec84c5c6f845313ccaca7fef.zip
NEW - bug 29690: update getEObjects
Diffstat (limited to 'plugins/profile-tool/org.eclipse.papyrus.resource')
-rw-r--r--plugins/profile-tool/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourceImpl.java15
1 files changed, 7 insertions, 8 deletions
diff --git a/plugins/profile-tool/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourceImpl.java b/plugins/profile-tool/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourceImpl.java
index d480819c9b0..6c76aa3c83e 100644
--- a/plugins/profile-tool/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourceImpl.java
+++ b/plugins/profile-tool/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourceImpl.java
@@ -16,6 +16,7 @@ package org.eclipse.papyrus.resource.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.common.util.BasicEList;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
@@ -61,16 +62,14 @@ public class ResourceImpl extends EObjectImpl implements Resource {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
- * @generated
+ * @generated NOT
*/
public EList<EObject> getEobjects() {
- // TODO: implement this method to return the 'Eobjects' containment reference list
- // Ensure that you remove @generated or mark it @generated NOT
- // The list is expected to implement org.eclipse.emf.ecore.util.InternalEList and
- // org.eclipse.emf.ecore.EStructuralFeature.Setting
- // so it's likely that an appropriate subclass of org.eclipse.emf.ecore.util.EcoreEList
- // should be used.
- throw new UnsupportedOperationException();
+ if (eResource() != null)
+ {
+ return eResource().getContents();
+ }
+ return new BasicEList<EObject>();
}
/**

Back to the top