Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-10-24 03:07:28 -0400
committerEike Stepper2010-10-24 03:07:28 -0400
commit4958389e5becbfe6d0efc531865a5817ef1aa252 (patch)
tree2afc40752d4e63a9d8d7069dd2985d5439bdd806 /plugins/org.eclipse.emf.cdo.workspace.efs
parentfa94c921667dffd9d8620171734cf0c7a6c5be5a (diff)
downloadcdo-4958389e5becbfe6d0efc531865a5817ef1aa252.tar.gz
cdo-4958389e5becbfe6d0efc531865a5817ef1aa252.tar.xz
cdo-4958389e5becbfe6d0efc531865a5817ef1aa252.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.java23
1 files changed, 23 insertions, 0 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 046d6bf123..7e59212c1d 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
@@ -25,6 +25,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
+import java.io.IOException;
import java.io.InputStream;
import java.util.List;
@@ -121,8 +122,30 @@ public final class CDOResourceNodeStore extends AbstractResourceNodeStore
// }
@Override
+ public void delete(int options, IProgressMonitor monitor) throws CoreException
+ {
+ new ResourceNodeRunnable<Boolean>()
+ {
+ @Override
+ protected Boolean run(CDOResourceNode node)
+ {
+ try
+ {
+ node.delete(null);
+ return true;
+ }
+ catch (IOException ex)
+ {
+ throw WrappedException.wrap(ex);
+ }
+ }
+ }.run(true);
+ }
+
+ @Override
public IFileStore mkdir(int options, IProgressMonitor monitor) throws CoreException
{
+ // TODO Respect the SHALLOW option
new ResourceNodeRunnable<CDOResourceFolder>()
{
@Override

Back to the top