Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2011-12-15 13:18:13 -0500
committerEike Stepper2011-12-15 13:18:13 -0500
commit7193f5a630497293ee54fecbb36eb48a563783c4 (patch)
tree32ad19863efcc9321e970aaef3134e6b023a2489
parent960ec758916906097797b2d1fbfbb9f6715bac94 (diff)
downloadcdo-7193f5a630497293ee54fecbb36eb48a563783c4.tar.gz
cdo-7193f5a630497293ee54fecbb36eb48a563783c4.tar.xz
cdo-7193f5a630497293ee54fecbb36eb48a563783c4.zip
[366844] Packages are not automatically registered
https://bugs.eclipse.org/bugs/show_bug.cgi?id=366844
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/CDOSessionImpl.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/CDOSessionImpl.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/CDOSessionImpl.java
index d7806e0222..ca54e9db7f 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/CDOSessionImpl.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/CDOSessionImpl.java
@@ -48,6 +48,8 @@ import org.eclipse.emf.cdo.common.revision.delta.CDOSetFeatureDelta;
import org.eclipse.emf.cdo.common.util.CDOException;
import org.eclipse.emf.cdo.common.util.RepositoryStateChangedEvent;
import org.eclipse.emf.cdo.common.util.RepositoryTypeChangedEvent;
+import org.eclipse.emf.cdo.eresource.EresourcePackage;
+import org.eclipse.emf.cdo.etypes.EtypesPackage;
import org.eclipse.emf.cdo.internal.common.revision.delta.CDOMoveFeatureDeltaImpl;
import org.eclipse.emf.cdo.internal.common.revision.delta.CDOSetFeatureDeltaImpl;
import org.eclipse.emf.cdo.internal.common.revision.delta.CDOSingleValueFeatureDeltaImpl;
@@ -108,6 +110,7 @@ import org.eclipse.emf.common.util.ECollections;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.EcorePackage;
import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
import org.eclipse.emf.spi.cdo.CDOSessionProtocol;
@@ -208,6 +211,14 @@ public abstract class CDOSessionImpl extends Container<CDOView> implements Inter
@ExcludeFromDump
private int lastViewID;
+ static
+ {
+ // Ensure that these 3 packages are registered with the global package registry in stand-alone
+ EcorePackage.eINSTANCE.getClass();
+ EresourcePackage.eINSTANCE.getClass();
+ EtypesPackage.eINSTANCE.getClass();
+ }
+
public CDOSessionImpl()
{
}

Back to the top