Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2009-05-07 04:40:43 -0400
committerEike Stepper2009-05-07 04:40:43 -0400
commitd012ead3b732be8aae58f9bf34ce2f3f9037311e (patch)
treeaf3a15bbffd2329fd4c8f469d5190c158ba24409 /plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util
parentcaee5708555502d1e162eb336a4684a4a05786ac (diff)
downloadcdo-d012ead3b732be8aae58f9bf34ce2f3f9037311e.tar.gz
cdo-d012ead3b732be8aae58f9bf34ce2f3f9037311e.tar.xz
cdo-d012ead3b732be8aae58f9bf34ce2f3f9037311e.zip
[247226] Transparently support legacy models
https://bugs.eclipse.org/bugs/show_bug.cgi?id=247226
Diffstat (limited to 'plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util')
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CompletePackageClosure.java8
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/FSMUtil.java7
2 files changed, 10 insertions, 5 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CompletePackageClosure.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CompletePackageClosure.java
index 5cd1a14434..785eeadd1f 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CompletePackageClosure.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CompletePackageClosure.java
@@ -126,10 +126,10 @@ public class CompletePackageClosure extends PackageClosure
{
if (visited.add(eClass))
{
- if (TRACER.isEnabled())
- {
- TRACER.trace("Found class " + eClass.getName()); //$NON-NLS-1$
- }
+ // if (TRACER.isEnabled())
+ // {
+ // TRACER.trace("Found class " + eClass.getName()); //$NON-NLS-1$
+ // }
handleEStructuralFeatures(eClass.getEStructuralFeatures(), visited);
handleEOperations(eClass.getEOperations(), visited);
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/FSMUtil.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/FSMUtil.java
index 7083bbf96b..fe627f995b 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/FSMUtil.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/FSMUtil.java
@@ -181,7 +181,7 @@ public final class FSMUtil
}
EList<Adapter> adapters = object.eAdapters();
- CDOLegacyAdapter adapter = (CDOLegacyAdapter)EcoreUtil.getAdapter(adapters, CDOLegacyAdapter.class);
+ CDOLegacyAdapter adapter = getLegacyAdapter(adapters);
if (adapter == null)
{
adapter = new CDOLegacyAdapter();
@@ -203,6 +203,11 @@ public final class FSMUtil
// return wrapper;
}
+ public static CDOLegacyAdapter getLegacyAdapter(EList<Adapter> adapters)
+ {
+ return (CDOLegacyAdapter)EcoreUtil.getAdapter(adapters, CDOLegacyAdapter.class);
+ }
+
@Deprecated
public static CDOLegacyWrapper getLegacyWrapper(EList<?> listeners)
{

Back to the top