Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-11-17 17:55:47 +0000
committerEike Stepper2010-11-17 17:55:47 +0000
commitce3444c3255a293da1842fca9e9f91da65254f4b (patch)
treef2a1418eff46863d541889953703a6f0b218bae5 /plugins/org.eclipse.emf.cdo.workspace
parentbbfb51b5248ebec10f42b152d9c21fe59d4dda05 (diff)
downloadcdo-ce3444c3255a293da1842fca9e9f91da65254f4b.tar.gz
cdo-ce3444c3255a293da1842fca9e9f91da65254f4b.tar.xz
cdo-ce3444c3255a293da1842fca9e9f91da65254f4b.zip
[330235] Backup/Restore Functionality
https://bugs.eclipse.org/bugs/show_bug.cgi?id=330235
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.java8
1 files changed, 3 insertions, 5 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 e56a82ff12..6bdcd97ea7 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
@@ -150,8 +150,6 @@ public class CDOWorkspaceImpl implements InternalCDOWorkspace
protected void checkout()
{
final OMMonitor monitor = new Monitor();
- final Object[] context = { null };
-
final IStoreAccessor.Raw accessor = (IStoreAccessor.Raw)localRepository.getStore().getWriter(null);
StoreThreadLocal.setAccessor(accessor);
@@ -165,7 +163,7 @@ public class CDOWorkspaceImpl implements InternalCDOWorkspace
InternalCDOPackageUnit[] packageUnits = session.getPackageRegistry().getPackageUnits(false);
localRepository.getPackageRegistry(false).putPackageUnits(packageUnits, CDOPackageUnit.State.LOADED);
- context[0] = accessor.rawStore(packageUnits, context[0], monitor);
+ accessor.rawStore(packageUnits, monitor);
CDORevisionHandler handler = new CDORevisionHandler()
{
@@ -173,7 +171,7 @@ public class CDOWorkspaceImpl implements InternalCDOWorkspace
{
InternalCDORevision rev = (InternalCDORevision)revision;
System.err.println(rev);
- context[0] = accessor.rawStore(rev, context[0], monitor);
+ accessor.rawStore(rev, monitor);
long commitTime = revision.getTimeStamp();
if (commitTime > timeStamp)
@@ -193,7 +191,7 @@ public class CDOWorkspaceImpl implements InternalCDOWorkspace
LifecycleUtil.deactivate(session);
}
- accessor.rawCommit(context[0], monitor);
+ accessor.rawCommit(monitor);
}
finally
{

Back to the top