Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-10-26 05:57:46 +0000
committerEike Stepper2010-10-26 05:57:46 +0000
commit34895acf7f14e39fad4137d60103f71ac30660cf (patch)
tree9c8ec5324b34c375ab8ee8ca738f7459f3d54f1a /plugins/org.eclipse.emf.cdo.workspace
parent190ec8e46cda20c29d86d45d797dd6334ee8c229 (diff)
downloadcdo-34895acf7f14e39fad4137d60103f71ac30660cf.tar.gz
cdo-34895acf7f14e39fad4137d60103f71ac30660cf.tar.xz
cdo-34895acf7f14e39fad4137d60103f71ac30660cf.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.java20
1 files changed, 10 insertions, 10 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 c36d111892..9c3ddceb27 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
@@ -410,6 +410,16 @@ public class CDOWorkspaceImpl implements InternalCDOWorkspace
return localRepository;
}
+ public synchronized InternalCDOSession getLocalSession()
+ {
+ if (localSession == null)
+ {
+ localSession = openLocalSession();
+ }
+
+ return localSession;
+ }
+
public CDOChangeSetData getLocalChanges()
{
Set<CDOID> ids = base.getIDs();
@@ -448,16 +458,6 @@ public class CDOWorkspaceImpl implements InternalCDOWorkspace
return JVMUtil.getConnector(container, localAcceptorName);
}
- public synchronized InternalCDOSession getLocalSession()
- {
- if (localSession == null)
- {
- localSession = openLocalSession();
- }
-
- return localSession;
- }
-
protected InternalRepository createLocalRepository(IStore store)
{
Map<String, String> props = new HashMap<String, String>();

Back to the top