Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2013-09-05 21:41:21 +0000
committerThomas Watson2013-09-06 18:45:46 +0000
commit75092469f948217c94704f6cb298d81b75d9f9d6 (patch)
tree260bb433e66ddca77cbd23f01415d2c15488a3a5 /bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleResolutionReport.java
parentee16ee5520224d7e0604596c01d2737b25bd3449 (diff)
downloadrt.equinox.framework-75092469f948217c94704f6cb298d81b75d9f9d6.tar.gz
rt.equinox.framework-75092469f948217c94704f6cb298d81b75d9f9d6.tar.xz
rt.equinox.framework-75092469f948217c94704f6cb298d81b75d9f9d6.zip
Externalize Strings.I20130906-2000
Diffstat (limited to 'bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleResolutionReport.java')
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleResolutionReport.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleResolutionReport.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleResolutionReport.java
index a221c08d7..a3e2a9f31 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleResolutionReport.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleResolutionReport.java
@@ -11,6 +11,7 @@
package org.eclipse.osgi.container;
import java.util.*;
+import org.eclipse.osgi.internal.messages.Msg;
import org.eclipse.osgi.report.resolution.ResolutionReport;
import org.osgi.resource.*;
import org.osgi.service.resolver.ResolutionException;
@@ -94,7 +95,7 @@ public class ModuleResolutionReport implements ResolutionReport {
List<ResolutionReport.Entry> revisionEntries = reportEntries.get(revision);
if (revisionEntries == null) {
- result.append(prepend).append(" ").append("No resolution report for the bundle."); //$NON-NLS-1$
+ result.append(prepend).append(" ").append(Msg.ModuleResolutionReport_NoReport); //$NON-NLS-1$
} else {
for (ResolutionReport.Entry entry : revisionEntries) {
printResolutionEntry(result, prepend + " ", entry, reportEntries, visited); //$NON-NLS-1$
@@ -106,10 +107,10 @@ public class ModuleResolutionReport implements ResolutionReport {
private static void printResolutionEntry(StringBuilder result, String prepend, ResolutionReport.Entry entry, Map<Resource, List<ResolutionReport.Entry>> reportEntries, Set<ModuleRevision> visited) {
switch (entry.getType()) {
case MISSING_CAPABILITY :
- result.append(prepend).append("Unresolved requirement: ").append(entry.getData()).append('\n');
+ result.append(prepend).append(Msg.ModuleResolutionReport_UnresolvedReq).append(entry.getData()).append('\n');
break;
case SINGLETON_SELECTION :
- result.append(prepend).append("Another singleton bundle selected: ").append(entry.getData()).append('\n');
+ result.append(prepend).append(Msg.ModuleResolutionReport_AnotherSingleton).append(entry.getData()).append('\n');
break;
case UNRESOLVED_PROVIDER :
@SuppressWarnings("unchecked")
@@ -121,7 +122,7 @@ public class ModuleResolutionReport implements ResolutionReport {
Capability unresolvedCapability = unresolvedCapabilities.iterator().next();
// make sure this is not a case of importing and exporting the same package
if (!unresolvedRequirement.getKey().getResource().equals(unresolvedCapability.getResource())) {
- result.append(prepend).append("Unresolved requirement: ").append(unresolvedRequirement.getKey()).append('\n');
+ result.append(prepend).append(Msg.ModuleResolutionReport_UnresolvedReq).append(unresolvedRequirement.getKey()).append('\n');
result.append(prepend).append(" -> ").append(unresolvedCapability).append('\n'); //$NON-NLS-1$
result.append(getResolutionReport(prepend + " ", (ModuleRevision) unresolvedCapability.getResource(), reportEntries, visited)); //$NON-NLS-1$
}
@@ -129,10 +130,10 @@ public class ModuleResolutionReport implements ResolutionReport {
}
break;
case FILTERED_BY_RESOLVER_HOOK :
- result.append("Bundle was filtered by a resolver hook.").append('\n');
+ result.append(Msg.ModuleResolutionReport_FilteredByHook).append('\n');
break;
default :
- result.append("Unknown error: ").append("type=").append(entry.getType()).append(" data=").append(entry.getData()).append('\n'); //$NON-NLS-2$ //$NON-NLS-3$
+ result.append(Msg.ModuleResolutionReport_Unknown).append("type=").append(entry.getType()).append(" data=").append(entry.getData()).append('\n'); //$NON-NLS-1$ //$NON-NLS-2$
break;
}
}

Back to the top