Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2014-01-06 11:52:00 +0000
committerEike Stepper2014-01-09 18:54:24 +0000
commit878f8d13485f7955c63577da62cb5f9485ac01c3 (patch)
tree844501810086afe093e696258cca22d475942625 /plugins/org.eclipse.emf.cdo.server
parenta4c0022c8c2ce3c4c35cbb80a10ecbfcf8887ff2 (diff)
downloadcdo-878f8d13485f7955c63577da62cb5f9485ac01c3.tar.gz
cdo-878f8d13485f7955c63577da62cb5f9485ac01c3.tar.xz
cdo-878f8d13485f7955c63577da62cb5f9485ac01c3.zip
[400311] Add support for undo
https://bugs.eclipse.org/bugs/show_bug.cgi?id=400311 Change-Id: I8bfc7457c86c858741d53cd5f333a3e9641b6718 Signed-off-by: Eike Stepper <stepper@esc-net.de>
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.server')
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/TransactionCommitContext.java2
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/mem/MEMStoreAccessor.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/TransactionCommitContext.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/TransactionCommitContext.java
index d8d68d94f0..48d4667e4c 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/TransactionCommitContext.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/TransactionCommitContext.java
@@ -1164,7 +1164,7 @@ public class TransactionCommitContext implements InternalCommitContext
InternalCDORevision newRevision = oldRevision.copy();
newRevision.adjustForCommit(branch, timeStamp);
- delta.apply(newRevision);
+ delta.applyTo(newRevision);
return newRevision;
}
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/mem/MEMStoreAccessor.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/mem/MEMStoreAccessor.java
index 2b7750e9e1..32cb217075 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/mem/MEMStoreAccessor.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/mem/MEMStoreAccessor.java
@@ -355,7 +355,7 @@ public class MEMStoreAccessor extends LongIDStoreAccessor implements Raw, Durabl
InternalCDORevision newRevision = revision.copy();
newRevision.adjustForCommit(branch, created);
- revisionDelta.apply(newRevision);
+ revisionDelta.applyTo(newRevision);
writeRevision(newRevision);
}

Back to the top