Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Fluegge2010-03-31 14:00:03 +0000
committerMartin Fluegge2010-03-31 14:00:03 +0000
commit32163182c7696a4069e51f657d7c1c52f59b188e (patch)
treedead9ffe6721b8fb60ae7d4b8f9a83155d13b640 /plugins/org.eclipse.emf.cdo.ui.ide
parent1949168879ad79af4873c5b88ec128760bc6ab13 (diff)
downloadcdo-32163182c7696a4069e51f657d7c1c52f59b188e.tar.gz
cdo-32163182c7696a4069e51f657d7c1c52f59b188e.tar.xz
cdo-32163182c7696a4069e51f657d7c1c52f59b188e.zip
[247226] Transparently support legacy models (CDOLegacyAdapter)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=247226
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.ui.ide')
-rw-r--r--plugins/org.eclipse.emf.cdo.ui.ide/src/org/eclipse/emf/cdo/ui/ide/RepositoryContentProvider.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ui.ide/src/org/eclipse/emf/cdo/ui/ide/RepositoryContentProvider.java b/plugins/org.eclipse.emf.cdo.ui.ide/src/org/eclipse/emf/cdo/ui/ide/RepositoryContentProvider.java
index 6326ed2148..f65bf86283 100644
--- a/plugins/org.eclipse.emf.cdo.ui.ide/src/org/eclipse/emf/cdo/ui/ide/RepositoryContentProvider.java
+++ b/plugins/org.eclipse.emf.cdo.ui.ide/src/org/eclipse/emf/cdo/ui/ide/RepositoryContentProvider.java
@@ -28,11 +28,11 @@ import org.eclipse.emf.cdo.ui.ide.Node.ResourcesNode;
import org.eclipse.emf.cdo.ui.ide.Node.SessionsNode;
import org.eclipse.emf.cdo.ui.internal.ide.actions.RemoveResourceActionDelegate;
import org.eclipse.emf.cdo.ui.internal.ide.bundle.OM;
+import org.eclipse.emf.cdo.util.CDOUtil;
import org.eclipse.emf.cdo.view.CDOView;
import org.eclipse.emf.cdo.view.CDOViewInvalidationEvent;
import org.eclipse.emf.cdo.view.CDOViewTargetChangedEvent;
-import org.eclipse.emf.internal.cdo.CDOLegacyWrapper;
import org.eclipse.emf.internal.cdo.CDOStateMachine;
import org.eclipse.net4j.util.container.ContainerEventAdapter;
@@ -45,9 +45,9 @@ import org.eclipse.net4j.util.ui.UIUtil;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.edit.EMFEditPlugin;
import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
+import org.eclipse.emf.edit.provider.ComposedAdapterFactory.Descriptor.Registry;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ReflectiveItemProviderAdapterFactory;
-import org.eclipse.emf.edit.provider.ComposedAdapterFactory.Descriptor.Registry;
import org.eclipse.emf.spi.cdo.InternalCDOObject;
import org.eclipse.core.resources.IProject;
@@ -359,7 +359,7 @@ public class RepositoryContentProvider extends StructuredContentProvider<IWorksp
@Override
protected void objectInvalidated(InternalCDOObject cdoObject)
{
- if (cdoObject instanceof CDOLegacyWrapper)
+ if (CDOUtil.isLegacyObject(cdoObject))
{
CDOStateMachine.INSTANCE.read(cdoObject);
}

Back to the top