Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-12-22 16:17:55 +0000
committerEike Stepper2010-12-22 16:17:55 +0000
commit7bc465b474f3a1c74672b3432e0fc93175331fb5 (patch)
tree5f8b57560e4f41c32c3bed10aa26fd331735dc67 /plugins/org.eclipse.emf.cdo.workspace
parenta828d91030c77caa63f7ba878f529eaafb274fb6 (diff)
downloadcdo-7bc465b474f3a1c74672b3432e0fc93175331fb5.tar.gz
cdo-7bc465b474f3a1c74672b3432e0fc93175331fb5.tar.xz
cdo-7bc465b474f3a1c74672b3432e0fc93175331fb5.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.java28
1 files changed, 14 insertions, 14 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 0140a57e32..961450af24 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
@@ -163,13 +163,13 @@ public class CDOWorkspaceImpl implements InternalCDOWorkspace
try
{
- InternalCDOSession session = openRemoteSession();
+ InternalCDOSession remoteSession = openRemoteSession();
try
{
- localRepository.setRootResourceID(session.getRepositoryInfo().getRootResourceID());
+ localRepository.setRootResourceID(remoteSession.getRepositoryInfo().getRootResourceID());
- InternalCDOPackageUnit[] packageUnits = session.getPackageRegistry().getPackageUnits(false);
+ InternalCDOPackageUnit[] packageUnits = remoteSession.getPackageRegistry().getPackageUnits(false);
localRepository.getPackageRegistry(false).putPackageUnits(packageUnits, CDOPackageUnit.State.LOADED);
accessor.rawStore(packageUnits, monitor);
@@ -190,12 +190,12 @@ public class CDOWorkspaceImpl implements InternalCDOWorkspace
}
};
- CDOBranch branch = session.getBranchManager().getBranch(branchPath);
- session.getSessionProtocol().handleRevisions(null, branch, false, timeStamp, false, handler);
+ CDOBranch branch = remoteSession.getBranchManager().getBranch(branchPath);
+ remoteSession.getSessionProtocol().handleRevisions(null, branch, false, timeStamp, false, handler);
}
finally
{
- LifecycleUtil.deactivate(session);
+ LifecycleUtil.deactivate(remoteSession);
}
accessor.rawCommit(monitor);
@@ -267,16 +267,16 @@ public class CDOWorkspaceImpl implements InternalCDOWorkspace
public InternalCDOTransaction merge(CDOMerger merger, String branchPath, long timeStamp)
{
- InternalCDOSession session = openRemoteSession();
+ InternalCDOSession remoteSession = openRemoteSession();
try
{
- InternalCDOBranchManager branchManager = session.getBranchManager();
+ InternalCDOBranchManager branchManager = remoteSession.getBranchManager();
CDOBranchPoint basePoint = branchManager.getBranch(branchPath).getPoint(this.timeStamp);
CDOBranchPoint remotePoint = branchManager.getBranch(branchPath).getPoint(timeStamp);
CDOBranchPointRange range = CDOBranchUtil.createRange(basePoint, remotePoint);
- CDOChangeSetData remoteData = session.getSessionProtocol().loadChangeSets(range)[0];
+ CDOChangeSetData remoteData = remoteSession.getSessionProtocol().loadChangeSets(range)[0];
CDOChangeSetData localData = getLocalChanges();
if (!localData.isEmpty())
@@ -314,7 +314,7 @@ public class CDOWorkspaceImpl implements InternalCDOWorkspace
}
finally
{
- LifecycleUtil.deactivate(session);
+ LifecycleUtil.deactivate(remoteSession);
}
}
@@ -337,12 +337,12 @@ public class CDOWorkspaceImpl implements InternalCDOWorkspace
public CDOCommitInfo checkin(String comment) throws CommitException
{
- InternalCDOSession session = openRemoteSession();
+ InternalCDOSession remoteSession = openRemoteSession();
try
{
- InternalCDOBranch branch = session.getBranchManager().getBranch(branchPath);
- InternalCDOTransaction transaction = (InternalCDOTransaction)session.openTransaction(branch);
+ InternalCDOBranch branch = remoteSession.getBranchManager().getBranch(branchPath);
+ InternalCDOTransaction transaction = (InternalCDOTransaction)remoteSession.openTransaction(branch);
CDOChangeSetData changes = getLocalChanges();
@@ -367,7 +367,7 @@ public class CDOWorkspaceImpl implements InternalCDOWorkspace
}
finally
{
- LifecycleUtil.deactivate(session);
+ LifecycleUtil.deactivate(remoteSession);
}
}

Back to the top