Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hallgren2009-12-29 14:03:20 +0000
committerThomas Hallgren2009-12-29 14:03:20 +0000
commit6441df9b3be2acd5e74c866c852bca18a9cd122c (patch)
tree0ad6d5d971e1c71e5198b6d8d69df3f88b368116
parentadc86299eb41a35ece8a67b9329480d359abe1a6 (diff)
downloadrt.equinox.p2-6441df9b3be2acd5e74c866c852bca18a9cd122c.tar.gz
rt.equinox.p2-6441df9b3be2acd5e74c866c852bca18a9cd122c.tar.xz
rt.equinox.p2-6441df9b3be2acd5e74c866c852bca18a9cd122c.zip
Reinstated the getIUProperty method that used the default locale.
-rw-r--r--bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/TranslationSupport.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/TranslationSupport.java b/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/TranslationSupport.java
index bdfade4d1..640931296 100644
--- a/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/TranslationSupport.java
+++ b/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/TranslationSupport.java
@@ -137,6 +137,19 @@ public class TranslationSupport {
return getLocalizedIUProperty(iu, actualKey, locale);
}
+ /**
+ * Return the localized value for the specified IInstallableUnit
+ * property using the default locale.
+ *
+ * @param iu the IInstallableUnit in question
+ * @param propertyKey the name of the property to be retrieved
+ * @return the localized property value, or <code>null</code> if no
+ * such property is defined.
+ */
+ public String getIUProperty(IInstallableUnit iu, String propertyKey) {
+ return getIUProperty(iu, propertyKey, null);
+ }
+
private ILicense getLicense(IInstallableUnit iu, ILicense license, String locale) {
String body = (license != null ? license.getBody() : null);
if (body == null || body.length() <= 1 || body.charAt(0) != '%')

Back to the top