Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2011-07-20 11:50:52 +0000
committerEike Stepper2011-07-20 11:50:52 +0000
commitaf719ba16912427971a462cf41f6245cde962ab6 (patch)
tree8ea61c606d79b36652b1fdbcc7299aeac7ea0b9b /plugins/org.eclipse.emf.cdo.ui
parentad46e775fa0f070dcb43eaea4e8b260e3e9bf443 (diff)
downloadcdo-af719ba16912427971a462cf41f6245cde962ab6.tar.gz
cdo-af719ba16912427971a462cf41f6245cde962ab6.tar.xz
cdo-af719ba16912427971a462cf41f6245cde962ab6.zip
[352561] Support client assigned CDOIDs (UUIDs)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=352561
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.ui')
-rw-r--r--plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/messages/messages.properties2
-rw-r--r--plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/properties/CDOSessionPropertySource.java16
2 files changed, 18 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/messages/messages.properties b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/messages/messages.properties
index 8c3ad7b830..3a466e8a32 100644
--- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/messages/messages.properties
+++ b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/messages/messages.properties
@@ -85,6 +85,8 @@ CDOSessionPropertySource_28=Supporting Ecore
CDOSessionPropertySource_29=Whether the repository of this session is supporting Ecore instances.
CDOSessionPropertySource_30=Ensure Referential Integrity
CDOSessionPropertySource_31=Whether the repository of this session is ensuring referential integrity.
+CDOSessionPropertySource_32=ID Generation Location
+CDOSessionPropertySource_33=One of STORE, CLIENT.
CDOSessionPropertySource_3=The ID of this session.
CDOSessionPropertySource_4=User
CDOSessionPropertySource_5=The ID of the authenticated user of this session.
diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/properties/CDOSessionPropertySource.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/properties/CDOSessionPropertySource.java
index 362f7a5f9c..b483f05bee 100644
--- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/properties/CDOSessionPropertySource.java
+++ b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/properties/CDOSessionPropertySource.java
@@ -52,6 +52,8 @@ public class CDOSessionPropertySource extends CDOPropertySource<CDOSession>
private static final String ENSURE_REFERENTIAL_INTEGRITY = "ensureReferentialIntegrity"; //$NON-NLS-1$
+ private static final String ID_GENERATION_LOCATION = "idGenerationLocation"; //$NON-NLS-1$
+
private static final String STORE_TYPE = "storeType"; //$NON-NLS-1$
private static final String OBJECT_ID_TYPES = "objectIDTypes"; //$NON-NLS-1$
@@ -111,6 +113,10 @@ public class CDOSessionPropertySource extends CDOPropertySource<CDOSession>
Messages.getString("CDOSessionPropertySource_30"), //$NON-NLS-1$
Messages.getString("CDOSessionPropertySource_31")); //$NON-NLS-1$
+ addPropertyDescriptor(CATEGORY_REPOSITORY, ID_GENERATION_LOCATION, //
+ Messages.getString("CDOSessionPropertySource_32"), //$NON-NLS-1$
+ Messages.getString("CDOSessionPropertySource_33")); //$NON-NLS-1$
+
addPropertyDescriptor(CATEGORY_REPOSITORY, STORE_TYPE, //
Messages.getString("CDOSessionPropertySource_24"), //$NON-NLS-1$
Messages.getString("CDOSessionPropertySource_25")); //$NON-NLS-1$
@@ -178,6 +184,16 @@ public class CDOSessionPropertySource extends CDOPropertySource<CDOSession>
return session.getRepositoryInfo().isSupportingBranches();
}
+ if (ENSURE_REFERENTIAL_INTEGRITY.equals(id))
+ {
+ return session.getRepositoryInfo().isEnsuringReferentialIntegrity();
+ }
+
+ if (ID_GENERATION_LOCATION.equals(id))
+ {
+ return session.getRepositoryInfo().getIDGenerationLocation();
+ }
+
if (STORE_TYPE.equals(id))
{
return session.getRepositoryInfo().getStoreType();

Back to the top