diff options
author | John Arthorne | 2010-03-31 20:14:56 +0000 |
---|---|---|
committer | John Arthorne | 2010-03-31 20:14:56 +0000 |
commit | b277ad1810b902f17109adf61f91fa703ce052ad (patch) | |
tree | 05c183dc96f7b00c885db9931db39c5a2ceafde2 /bundles/org.eclipse.equinox.p2.metadata/src | |
parent | c3554273883a9ea4eee4a3693d8e0b188e8dbb8a (diff) | |
download | rt.equinox.p2-b277ad1810b902f17109adf61f91fa703ce052ad.tar.gz rt.equinox.p2-b277ad1810b902f17109adf61f91fa703ce052ad.tar.xz rt.equinox.p2-b277ad1810b902f17109adf61f91fa703ce052ad.zip |
Only log missing translation source once per session
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.metadata/src')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/TranslationSupport.java | 6 |
1 files changed, 5 insertions, 1 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 e76abf5f8..571abd70d 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 @@ -46,6 +46,7 @@ public class TranslationSupport { private final Map<String, SoftReference<IQueryResult<IInstallableUnit>>> localeCollectorCache = new HashMap<String, SoftReference<IQueryResult<IInstallableUnit>>>(2); private LocaleProvider localeProvider; + private boolean loggedMissingSource = false;; public synchronized static TranslationSupport getInstance() { if (instance == null) @@ -227,7 +228,10 @@ public class TranslationSupport { */ private synchronized IQueryResult<IInstallableUnit> getLocalizationFragments(List<String> localeVariants, String locale) { if (fragmentSource == null) { - LogHelper.log(new Status(IStatus.INFO, MetadataActivator.PI_METADATA, "No translation source unavailable. Default language will be used.")); //$NON-NLS-1$ + if (!loggedMissingSource) { + loggedMissingSource = true; + LogHelper.log(new Status(IStatus.INFO, MetadataActivator.PI_METADATA, "No translation source unavailable. Default language will be used.")); //$NON-NLS-1$ + } return Collector.emptyCollector(); } |