Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-06-16 10:12:19 +0000
committerEike Stepper2008-06-16 10:12:19 +0000
commit76b0ccac8f6bcb28c3cc99afe43e88c282d1f1d1 (patch)
treee0ef8bba26e9ee346955722758e4198f71cb0022 /plugins
parent908adacfbfe47e3bef8ffbc1d25d09533ad53e0a (diff)
downloadcdo-76b0ccac8f6bcb28c3cc99afe43e88c282d1f1d1.tar.gz
cdo-76b0ccac8f6bcb28c3cc99afe43e88c282d1f1d1.tar.xz
cdo-76b0ccac8f6bcb28c3cc99afe43e88c282d1f1d1.zip
[237093] [UI] Persisting dynamic models fails
https://bugs.eclipse.org/bugs/show_bug.cgi?id=237093
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterPackagesAction.java20
1 files changed, 2 insertions, 18 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterPackagesAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterPackagesAction.java
index 541122fd94..af085733b3 100644
--- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterPackagesAction.java
+++ b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/RegisterPackagesAction.java
@@ -15,10 +15,9 @@ import org.eclipse.emf.cdo.internal.ui.bundle.OM;
import org.eclipse.emf.cdo.util.CDOPackageRegistry;
import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EClassifier;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.resource.ImageDescriptor;
@@ -59,7 +58,7 @@ public abstract class RegisterPackagesAction extends SessionAction
CDOPackageRegistry packageRegistry = getSession().getPackageRegistry();
for (EPackage ePackage : ePackages)
{
- fixEPackage(ePackage);
+ EcoreUtil.freeze(ePackage);
Resource resource = ePackage.eResource();
URI uri = resource == null ? null : resource.getURI();
@@ -102,19 +101,4 @@ public abstract class RegisterPackagesAction extends SessionAction
}
protected abstract List<EPackage> getEPackages(IWorkbenchPage page, CDOSession session);
-
- /**
- * @see http://bugs.eclipse.org/237093
- */
- private void fixEPackage(EPackage ePackage)
- {
- for (EClassifier classifier : ePackage.getEClassifiers())
- {
- if (classifier instanceof EClass)
- {
- EClass eClass = (EClass)classifier;
- eClass.getEAllStructuralFeatures();
- }
- }
- }
}

Back to the top