Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-10-16 08:20:45 +0000
committerEike Stepper2010-10-16 08:20:45 +0000
commit007832e3dea4ee803dd715f38fcc972ea8e28fb0 (patch)
tree7003b15057c96e9233766665ab4b032e0fb531a8 /plugins/org.eclipse.emf.cdo.workspace
parentae88d29e1020182fe53ebfba30b1b8ed0fd51c8d (diff)
downloadcdo-007832e3dea4ee803dd715f38fcc972ea8e28fb0.tar.gz
cdo-007832e3dea4ee803dd715f38fcc972ea8e28fb0.tar.xz
cdo-007832e3dea4ee803dd715f38fcc972ea8e28fb0.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')
-rw-r--r--plugins/org.eclipse.emf.cdo.workspace/src/org/eclipse/emf/cdo/internal/workspace/CDOWorkspaceImpl.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.workspace/src/org/eclipse/emf/cdo/internal/workspace/CDOWorkspaceImpl.java b/plugins/org.eclipse.emf.cdo.workspace/src/org/eclipse/emf/cdo/internal/workspace/CDOWorkspaceImpl.java
index 92cab37acc..cf7c17e28b 100644
--- a/plugins/org.eclipse.emf.cdo.workspace/src/org/eclipse/emf/cdo/internal/workspace/CDOWorkspaceImpl.java
+++ b/plugins/org.eclipse.emf.cdo.workspace/src/org/eclipse/emf/cdo/internal/workspace/CDOWorkspaceImpl.java
@@ -277,6 +277,15 @@ public class CDOWorkspaceImpl implements InternalCDOWorkspace
}
InternalCDOTransaction transaction = (InternalCDOTransaction)openTransaction();
+ transaction.addTransactionHandler(new CDODefaultTransactionHandler2()
+ {
+ @Override
+ public void committedTransaction(CDOTransaction transaction, CDOCommitContext commitContext)
+ {
+ memory.clear();
+ }
+ });
+
transaction.applyChangeSetData(remoteData, new CDORevisionProvider()
{
public CDORevision getRevision(CDOID id)
@@ -290,6 +299,7 @@ public class CDOWorkspaceImpl implements InternalCDOWorkspace
return revision;
}
}, this, null);
+
return transaction;
}
finally

Back to the top