Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-10-16 10:51:45 +0000
committerEike Stepper2010-10-16 10:51:45 +0000
commitdff4b851b6691851f6987cdf9ad172b216fd799e (patch)
treee7fc2f594a44ead38a284949660178af47f1cacb /plugins/org.eclipse.emf.cdo.workspace
parent6ac1de8ce44dc3d638346d002fb6a799f95e3070 (diff)
downloadcdo-dff4b851b6691851f6987cdf9ad172b216fd799e.tar.gz
cdo-dff4b851b6691851f6987cdf9ad172b216fd799e.tar.xz
cdo-dff4b851b6691851f6987cdf9ad172b216fd799e.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.java9
1 files changed, 8 insertions, 1 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 cf7c17e28b..e8f3ec1538 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
@@ -535,7 +535,14 @@ public class CDOWorkspaceImpl implements InternalCDOWorkspace
protected InternalCDOSession openRemoteSession()
{
CDOSessionConfiguration configuration = remoteSessionConfigurationFactory.createSessionConfiguration();
- return (InternalCDOSession)configuration.openSession();
+ InternalCDOSession session = (InternalCDOSession)configuration.openSession();
+ if (!session.getRepositoryInfo().isSupportingAudits())
+ {
+ session.close();
+ throw new IllegalStateException("Remoter repository does not support auditing");
+ }
+
+ return session;
}
protected void saveProperties()

Back to the top