diff options
author | Eike Stepper | 2009-05-06 06:59:07 +0000 |
---|---|---|
committer | Eike Stepper | 2009-05-06 06:59:07 +0000 |
commit | 79812b63ca5ce440311646bff1365c8b6501a609 (patch) | |
tree | b183ff6b9e0da990049bcd1c34e3234abc7524a5 /plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal | |
parent | 8f9e0225c40f9905be5b81ee7f2d7354cbf6a7c7 (diff) | |
download | cdo-79812b63ca5ce440311646bff1365c8b6501a609.tar.gz cdo-79812b63ca5ce440311646bff1365c8b6501a609.tar.xz cdo-79812b63ca5ce440311646bff1365c8b6501a609.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')
-rw-r--r-- | plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOLegacyAdapter.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOLegacyAdapter.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOLegacyAdapter.java index 7eafb415e4..33a22f7620 100644 --- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOLegacyAdapter.java +++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOLegacyAdapter.java @@ -95,8 +95,17 @@ public final class CDOLegacyAdapter extends CDOLegacyWrapper implements Adapter. break; case Notification.REMOVE_MANY: - // TODO: implement CDOLegacyAdapter.notifyChanged(notification) - throw new UnsupportedOperationException(); + { + int pos = notification.getPosition(); + @SuppressWarnings("unchecked") + List<Object> list = (List<Object>)notification.getOldValue(); + for (int i = 0; i < list.size(); i++) + { + view.getStore().remove(instance, (EStructuralFeature)notification.getFeature(), pos); + } + } + + break; } } |