Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Kaegi2008-04-09 16:33:33 -0400
committerSimon Kaegi2008-04-09 16:33:33 -0400
commit26937065e846960bcb63483582793c8437c75a47 (patch)
treee75a699668b70d223b6ef0949bcc0707d8f3790b
parentdd1f8243126b0133f0efbb6f820089f707dd3eac (diff)
downloadrt.equinox.p2-26937065e846960bcb63483582793c8437c75a47.tar.gz
rt.equinox.p2-26937065e846960bcb63483582793c8437c75a47.tar.xz
rt.equinox.p2-26937065e846960bcb63483582793c8437c75a47.zip
Bug 222565 Strings need to be externalized
-rw-r--r--bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/DropinsRepositoryListener.java4
-rw-r--r--bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/Messages.java2
-rw-r--r--bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java2
-rw-r--r--bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/messages.properties2
-rw-r--r--bundles/org.eclipse.equinox.p2.reconciler/src/org/eclipse/equinox/internal/p2/reconciler/dropins/DropinsRepositoryListener.java4
-rw-r--r--bundles/org.eclipse.equinox.p2.reconciler/src/org/eclipse/equinox/internal/p2/reconciler/dropins/Messages.java2
-rw-r--r--bundles/org.eclipse.equinox.p2.reconciler/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java2
-rw-r--r--bundles/org.eclipse.equinox.p2.reconciler/src/org/eclipse/equinox/internal/p2/reconciler/dropins/messages.properties2
8 files changed, 14 insertions, 6 deletions
diff --git a/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/DropinsRepositoryListener.java b/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/DropinsRepositoryListener.java
index 577803120..fdc3157e4 100644
--- a/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/DropinsRepositoryListener.java
+++ b/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/DropinsRepositoryListener.java
@@ -179,7 +179,7 @@ public class DropinsRepositoryListener extends RepositoryListener {
if (reference != null)
manager = (IMetadataRepositoryManager) context.getService(reference);
if (manager == null)
- throw new IllegalStateException("MetadataRepositoryManager not registered.");
+ throw new IllegalStateException(Messages.metadata_repo_manager_not_registered);
try {
manager.removeRepository(new URL(urlString));
@@ -213,7 +213,7 @@ public class DropinsRepositoryListener extends RepositoryListener {
if (reference != null)
manager = (IArtifactRepositoryManager) context.getService(reference);
if (manager == null)
- throw new IllegalStateException("ArtifactRepositoryManager not registered.");
+ throw new IllegalStateException(Messages.artifact_repo_manager_not_registered);
try {
manager.removeRepository(new URL(urlString));
diff --git a/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/Messages.java b/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/Messages.java
index ab0a16be9..aa0e61b27 100644
--- a/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/Messages.java
+++ b/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/Messages.java
@@ -17,7 +17,9 @@ import org.eclipse.osgi.util.NLS;
*/
public class Messages extends NLS {
private static final String BUNDLE_NAME = "org.eclipse.equinox.internal.p2.reconciler.dropins.messages"; //$NON-NLS-1$
+ public static String artifact_repo_manager_not_registered;
public static String errorProcessingConfg;
+ public static String metadata_repo_manager_not_registered;
static {
// initialize resource bundle
NLS.initializeMessages(BUNDLE_NAME, Messages.class);
diff --git a/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java b/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java
index 228b517f6..af450a3c2 100644
--- a/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java
+++ b/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java
@@ -248,7 +248,7 @@ public class ProfileSynchronizer {
private IInstallableUnit createRootIU(List children) {
InstallableUnitDescription iu = new MetadataFactory.InstallableUnitDescription();
iu.setId(SUPER_IU);
- iu.setVersion(new Version("1.0.0.v" + System.currentTimeMillis()));
+ iu.setVersion(new Version("1.0.0.v" + System.currentTimeMillis())); //$NON-NLS-1$
List required = new ArrayList();
for (Iterator iter = children.iterator(); iter.hasNext();) {
IInstallableUnit next = (IInstallableUnit) iter.next();
diff --git a/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/messages.properties b/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/messages.properties
index 6719e56d7..063c54356 100644
--- a/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/messages.properties
+++ b/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/messages.properties
@@ -8,4 +8,6 @@
# Contributors:
# IBM Corporation - initial API and implementation
###############################################################################
+artifact_repo_manager_not_registered=ArtifactRepositoryManager not registered.
errorProcessingConfg=Exception while processing configuration.
+metadata_repo_manager_not_registered=MetadataRepositoryManager not registered.
diff --git a/bundles/org.eclipse.equinox.p2.reconciler/src/org/eclipse/equinox/internal/p2/reconciler/dropins/DropinsRepositoryListener.java b/bundles/org.eclipse.equinox.p2.reconciler/src/org/eclipse/equinox/internal/p2/reconciler/dropins/DropinsRepositoryListener.java
index 577803120..fdc3157e4 100644
--- a/bundles/org.eclipse.equinox.p2.reconciler/src/org/eclipse/equinox/internal/p2/reconciler/dropins/DropinsRepositoryListener.java
+++ b/bundles/org.eclipse.equinox.p2.reconciler/src/org/eclipse/equinox/internal/p2/reconciler/dropins/DropinsRepositoryListener.java
@@ -179,7 +179,7 @@ public class DropinsRepositoryListener extends RepositoryListener {
if (reference != null)
manager = (IMetadataRepositoryManager) context.getService(reference);
if (manager == null)
- throw new IllegalStateException("MetadataRepositoryManager not registered.");
+ throw new IllegalStateException(Messages.metadata_repo_manager_not_registered);
try {
manager.removeRepository(new URL(urlString));
@@ -213,7 +213,7 @@ public class DropinsRepositoryListener extends RepositoryListener {
if (reference != null)
manager = (IArtifactRepositoryManager) context.getService(reference);
if (manager == null)
- throw new IllegalStateException("ArtifactRepositoryManager not registered.");
+ throw new IllegalStateException(Messages.artifact_repo_manager_not_registered);
try {
manager.removeRepository(new URL(urlString));
diff --git a/bundles/org.eclipse.equinox.p2.reconciler/src/org/eclipse/equinox/internal/p2/reconciler/dropins/Messages.java b/bundles/org.eclipse.equinox.p2.reconciler/src/org/eclipse/equinox/internal/p2/reconciler/dropins/Messages.java
index ab0a16be9..aa0e61b27 100644
--- a/bundles/org.eclipse.equinox.p2.reconciler/src/org/eclipse/equinox/internal/p2/reconciler/dropins/Messages.java
+++ b/bundles/org.eclipse.equinox.p2.reconciler/src/org/eclipse/equinox/internal/p2/reconciler/dropins/Messages.java
@@ -17,7 +17,9 @@ import org.eclipse.osgi.util.NLS;
*/
public class Messages extends NLS {
private static final String BUNDLE_NAME = "org.eclipse.equinox.internal.p2.reconciler.dropins.messages"; //$NON-NLS-1$
+ public static String artifact_repo_manager_not_registered;
public static String errorProcessingConfg;
+ public static String metadata_repo_manager_not_registered;
static {
// initialize resource bundle
NLS.initializeMessages(BUNDLE_NAME, Messages.class);
diff --git a/bundles/org.eclipse.equinox.p2.reconciler/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java b/bundles/org.eclipse.equinox.p2.reconciler/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java
index 228b517f6..af450a3c2 100644
--- a/bundles/org.eclipse.equinox.p2.reconciler/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java
+++ b/bundles/org.eclipse.equinox.p2.reconciler/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java
@@ -248,7 +248,7 @@ public class ProfileSynchronizer {
private IInstallableUnit createRootIU(List children) {
InstallableUnitDescription iu = new MetadataFactory.InstallableUnitDescription();
iu.setId(SUPER_IU);
- iu.setVersion(new Version("1.0.0.v" + System.currentTimeMillis()));
+ iu.setVersion(new Version("1.0.0.v" + System.currentTimeMillis())); //$NON-NLS-1$
List required = new ArrayList();
for (Iterator iter = children.iterator(); iter.hasNext();) {
IInstallableUnit next = (IInstallableUnit) iter.next();
diff --git a/bundles/org.eclipse.equinox.p2.reconciler/src/org/eclipse/equinox/internal/p2/reconciler/dropins/messages.properties b/bundles/org.eclipse.equinox.p2.reconciler/src/org/eclipse/equinox/internal/p2/reconciler/dropins/messages.properties
index 6719e56d7..063c54356 100644
--- a/bundles/org.eclipse.equinox.p2.reconciler/src/org/eclipse/equinox/internal/p2/reconciler/dropins/messages.properties
+++ b/bundles/org.eclipse.equinox.p2.reconciler/src/org/eclipse/equinox/internal/p2/reconciler/dropins/messages.properties
@@ -8,4 +8,6 @@
# Contributors:
# IBM Corporation - initial API and implementation
###############################################################################
+artifact_repo_manager_not_registered=ArtifactRepositoryManager not registered.
errorProcessingConfg=Exception while processing configuration.
+metadata_repo_manager_not_registered=MetadataRepositoryManager not registered.

Back to the top