summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-09-01 01:10:59 (EDT)
committerEike Stepper2007-09-01 01:10:59 (EDT)
commit612533ee51bb0fc3c7bc9d8d62096215886b7d15 (patch)
tree9d3fabae706abdf00b311376eb31e5cd0df4c9cb
parentd82dfa6f227074aade05227a257ac913bdde7931 (diff)
downloadcdo-612533ee51bb0fc3c7bc9d8d62096215886b7d15.zip
cdo-612533ee51bb0fc3c7bc9d8d62096215886b7d15.tar.gz
cdo-612533ee51bb0fc3c7bc9d8d62096215886b7d15.tar.bz2
Added boolean isObjectRegistered(CDOID id)
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOViewImpl.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOViewImpl.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOViewImpl.java
index 3cf0a0f..619a036 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOViewImpl.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOViewImpl.java
@@ -68,7 +68,7 @@ public class CDOViewImpl extends org.eclipse.net4j.internal.util.event.Notifier
private ResourceSet resourceSet;
- private Map<CDOID, InternalCDOObject> objects = new HashMap();
+ private Map<CDOID, InternalCDOObject> objects = new HashMap<CDOID, InternalCDOObject>();
private CDOStore store = new CDOStore(this);
@@ -208,7 +208,6 @@ public class CDOViewImpl extends org.eclipse.net4j.internal.util.event.Notifier
public InternalCDOObject getObject(CDOID id)
{
- // TODO Really load on demand here?
return getObject(id, false);
}
@@ -245,6 +244,11 @@ public class CDOViewImpl extends org.eclipse.net4j.internal.util.event.Notifier
return lastLookupObject;
}
+ public boolean isObjectRegistered(CDOID id)
+ {
+ return objects.containsKey(id);
+ }
+
/**
* @return Never <code>null</code>
*/