Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-10-24 03:00:38 -0400
committerEike Stepper2010-10-24 03:00:38 -0400
commitfa94c921667dffd9d8620171734cf0c7a6c5be5a (patch)
tree889b8d117a3c1f4208b233b0f74d779c0b2af464 /plugins/org.eclipse.emf.cdo.workspace.efs
parent63e7b2e5636cc9501e3a720ed01805eff8845756 (diff)
downloadcdo-fa94c921667dffd9d8620171734cf0c7a6c5be5a.tar.gz
cdo-fa94c921667dffd9d8620171734cf0c7a6c5be5a.tar.xz
cdo-fa94c921667dffd9d8620171734cf0c7a6c5be5a.zip
[327405] Provide an offline CDOWorkspace with Checkout/Update/Commit workflows
https://bugs.eclipse.org/bugs/show_bug.cgi?id=327405
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.workspace.efs')
-rw-r--r--plugins/org.eclipse.emf.cdo.workspace.efs/src/org/eclipse/emf/cdo/workspace/internal/efs/CDOResourceNodeStore.java27
1 files changed, 26 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.workspace.efs/src/org/eclipse/emf/cdo/workspace/internal/efs/CDOResourceNodeStore.java b/plugins/org.eclipse.emf.cdo.workspace.efs/src/org/eclipse/emf/cdo/workspace/internal/efs/CDOResourceNodeStore.java
index cf72c111af..046d6bf123 100644
--- a/plugins/org.eclipse.emf.cdo.workspace.efs/src/org/eclipse/emf/cdo/workspace/internal/efs/CDOResourceNodeStore.java
+++ b/plugins/org.eclipse.emf.cdo.workspace.efs/src/org/eclipse/emf/cdo/workspace/internal/efs/CDOResourceNodeStore.java
@@ -78,7 +78,6 @@ public final class CDOResourceNodeStore extends AbstractResourceNodeStore
{
ByteArrayOutputStream baos = new ByteArrayOutputStream();
CDOResource resource = (CDOResource)node;
- // resource.cdoPrefetch(CDORevision.DEPTH_INFINITE);
try
{
@@ -95,6 +94,32 @@ public final class CDOResourceNodeStore extends AbstractResourceNodeStore
}.run();
}
+ // @Override
+ // public OutputStream openOutputStream(int options, IProgressMonitor monitor) throws CoreException
+ // {
+ // return new ResourceNodeRunnable<OutputStream>()
+ // {
+ // @Override
+ // protected OutputStream run(CDOResourceNode node)
+ // {
+ // ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ // CDOResource resource = (CDOResource)node;
+ //
+ // try
+ // {
+ // resource.save(baos, null);
+ // }
+ // catch (Exception ex)
+ // {
+ // OM.LOG.error(ex);
+ // throw WrappedException.wrap(ex);
+ // }
+ //
+ // return new ByteArrayInputStream(baos.toByteArray());
+ // }
+ // }.run();
+ // }
+
@Override
public IFileStore mkdir(int options, IProgressMonitor monitor) throws CoreException
{

Back to the top