Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Roldan Betancort2009-05-07 08:10:53 -0400
committerVictor Roldan Betancort2009-05-07 08:10:53 -0400
commitb65d6bd3ecf777b527a28195ebdf01d2123e08d0 (patch)
tree7f7ee2f4f49fe34d8d91c8ea8026465d47e50e2c /plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/messages
parentd7d8be53830f843ca704870bd5a719090ddaa36e (diff)
downloadcdo-b65d6bd3ecf777b527a28195ebdf01d2123e08d0.tar.gz
cdo-b65d6bd3ecf777b527a28195ebdf01d2123e08d0.tar.xz
cdo-b65d6bd3ecf777b527a28195ebdf01d2123e08d0.zip
[272190] [UI] Externalize Strings (CDO)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=272190
Diffstat (limited to 'plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/messages')
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/messages/Messages.java41
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/messages/messages.properties86
2 files changed, 127 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/messages/Messages.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/messages/Messages.java
new file mode 100644
index 0000000000..006273587d
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/messages/Messages.java
@@ -0,0 +1,41 @@
+/**
+ * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Victor Roldan Betancort - initial API and implementation
+ * Eike Stepper - maintenance
+ */
+package org.eclipse.emf.internal.cdo.messages;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+/**
+ * @author Victor Roldan Betancort
+ */
+public class Messages
+{
+ private static final String BUNDLE_NAME = "org.eclipse.emf.internal.cdo.messages.messages"; //$NON-NLS-1$
+
+ private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
+
+ private Messages()
+ {
+ }
+
+ public static String getString(String key)
+ {
+ try
+ {
+ return RESOURCE_BUNDLE.getString(key);
+ }
+ catch (MissingResourceException e)
+ {
+ return '!' + key + '!';
+ }
+ }
+}
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/messages/messages.properties b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/messages/messages.properties
new file mode 100644
index 0000000000..76def45370
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/messages/messages.properties
@@ -0,0 +1,86 @@
+# Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Victor Roldan Betancort - initial API and implementation
+# Eike Stepper - maintenance
+
+AbstractObjectConflictResolver.0=Object has feature-level conflicts
+CDOAdapterPolicy.0=CDO
+CDOAdapterPolicy.1=NONE
+CDOAdapterPolicy.2=ALL
+CDOClientProtocol.0=No session
+CDOObjectImpl.8=Resource needs to be an instanceof CDOResourceImpl
+CDOQueryImpl.0=Object not persisted
+CDOResourceNodeImpl.3=Null path is not allowed
+CDOResourceNodeImpl.4=Root path is not allowed
+CDOResourceNodeImpl.5=Duplicate path: {0}
+CDOSessionConfigurationImpl.0=Session is already open
+CDOSessionFactory.1=Query is empty: {0}
+CDOSessionImpl.0=Generated packages locally not available: {0}
+CDOTransactionImpl.0=Not a ResourceFolder: {0}
+CDOTransactionImpl.1=Root resource node {0} does not exist
+CDOTransactionImpl.10=Duplicate ID: {0}
+CDOTransactionImpl.11=No package unit for {0}
+CDOTransactionImpl.17=New conflict resolver is already associated with a transaction
+CDOTransactionImpl.2=This transaction has conflicts
+CDOTransactionImpl.3=Save point is null
+CDOTransactionImpl.4=Save point to roll-back does not belong to this transaction: {0}
+CDOTransactionImpl.6=Save point is not valid: {0}
+CDOUtil.0=Auditing not supported by repository
+CDOViewImpl.0=CDO view is read-only: {0}
+CDOViewImpl.1=path is empty
+CDOViewImpl.11=Object is contained in a different session: {0}
+CDOViewImpl.14=Not a ResourceFolder: {0}
+CDOViewImpl.16=Unable to provideCDOID: {0}
+CDOViewImpl.17=ID not registered: {0}
+CDOViewImpl.18=CDO view is read-only: {0}
+CDOViewImpl.2=Can not find {0}
+CDOViewImpl.20=Duplicate ID: {0}
+CDOViewImpl.26=Invalid view type: {0}
+CDOViewImpl.27=Object {0} does not belong to this view
+CDOViewImpl.29=Unknown referenceType
+CDOViewImpl.3=name == null
+CDOViewImpl.4=Expected folder for id = {0}
+CDOViewImpl.5=Node {0} not found
+CDOViewImpl.6=No root ResourceNode
+CDOViewImpl.7=No top level ResourceNode with the name {0}
+CDOViewImpl.8=Duplicate top-level ResourceNodes
+CDOViewImpl.9=Cannot find revision with ID {0}
+CDOViewProviderRegistryImpl.4=class not defined for extension {0}
+CDOViewProviderRegistryImpl.6=regex not defined for extension {0}
+CDOViewSetImpl.0=Cannot find associated CDOView for repository {0}
+CDOViewSetImpl.1=Do not know which CDOView to take since no authority has been specified
+CDOViewSetImpl.2=Only one view per repository can be open for the same resource set
+CDOViewSetImpl.3=Unsupported target: {0}
+CDOViewSetImpl.4=Cannot associate more than 1 resource set with this view set
+CDOXACommitContextImpl.0=Object should be an EObject: {0}
+CDOXATransactionImpl.0=XATransaction is already attached to this viewSet
+CDOXATransactionImpl.1=ViewSet is not attached to this XATransaction
+CDOXATransactionImpl.4=Committing XA transaction
+CDOXATransactionImpl.5=Save point is null
+CDOXATransactionImpl.6=Save point to rollback does not belong to this transaction:
+CDOXATransactionImpl.7=Save point is not valid: {0}
+CDOXATransactionImpl.8=Commit from CDOTransaction is not allowed
+CommitTransactionPhase2Request.1=Missing informations. {0} is not involved in the commit
+CommitTransactionPhase2Request.2=Missing informations. {0} is not mapped in the commit
+CompletePackageClosure.0=Package == null for {0}
+DanglingReferenceException.0=The object "{0}({1})" is not contained in a resource
+EresourceFactoryImpl.1=The datatype "{0}" is not a valid classifier
+EresourceFactoryImpl.3=The class "{0}" is not a valid classifier
+FailOverStrategyInjector.0=Malformed URI, could not find scheme separator ://
+FailOverStrategyInjector.1=factoryType not defined
+FailOverStrategyInjector.2=connectorDescription not defined
+FSMUtil.0=View closed
+FSMUtil.1=object == null
+FSMUtil.2=view == null
+FSMUtil.3=Legacy models not supported
+InvalidObjectException.0=Object {0} is not valid anymore
+InvalidURIException.0=Invalid URI "{0}": {1}
+ObjectNotFoundException.0=Object {0} not found (temporary = {1})
+OpenSessionRequest.0=Repository {0} not found
+OpenSessionRequest.3=Failed to open session for repository {0}
+SyncRevisionsRequest.2=Did not expect to receive object with id "{0}"

Back to the top