public class EMFFormsLocalizationServiceImpl extends Object implements EMFFormsLocalizationService
Constructor and Description |
---|
EMFFormsLocalizationServiceImpl() |
Modifier and Type | Method and Description |
---|---|
String |
getString(org.osgi.framework.Bundle bundle,
String key)
Return the String for the provided key.
|
String |
getString(Class<?> clazz,
String key)
Return the String for the provided key.
|
boolean |
hasKey(org.osgi.framework.Bundle bundle,
String key)
Return whether the key in question is available.
|
boolean |
hasKey(Class<?> clazz,
String key)
Return whether the key in question is available.
|
protected void |
setBundleLocalization(org.eclipse.osgi.service.localization.BundleLocalization bundleLocalization)
Called by the framework to set the BundleLocalization.
|
protected void |
setEMFFormsLocaleProvider(EMFFormsLocaleProvider localeProvider)
Called by the framework to set the EMFFormsLocaleProvider.
|
protected void |
setReportService(ReportService reportService)
Called by the framework to set the ReportService.
|
protected void |
unsetEMFFormsLocaleProvider(EMFFormsLocaleProvider localeProvider)
Called by the framework to unset the EMFFormsLocaleProvider.
|
protected void setEMFFormsLocaleProvider(EMFFormsLocaleProvider localeProvider)
localeProvider
- The EMFFormsLocaleProvider
protected void unsetEMFFormsLocaleProvider(EMFFormsLocaleProvider localeProvider)
localeProvider
- The EMFFormsLocaleProvider
protected void setBundleLocalization(org.eclipse.osgi.service.localization.BundleLocalization bundleLocalization)
bundleLocalization
- The BundleLocalization
protected void setReportService(ReportService reportService)
reportService
- The ReportService
public String getString(Class<?> clazz, String key)
getString
in interface EMFFormsLocalizationService
clazz
- The class which needs a translated stringkey
- The key of the stringEMFFormsLocalizationService.getString(java.lang.Class,
java.lang.String)
public String getString(org.osgi.framework.Bundle bundle, String key)
getString
in interface EMFFormsLocalizationService
bundle
- The bundle which provides the translated stringskey
- The key of the stringEMFFormsLocalizationService.getString(org.osgi.framework.Bundle,
java.lang.String)
public boolean hasKey(org.osgi.framework.Bundle bundle, String key)
hasKey
in interface EMFFormsLocalizationService
bundle
- The bundle in which to search for the keykey
- The key to searchEMFFormsLocalizationService.hasKey(org.osgi.framework.Bundle,
java.lang.String)
public boolean hasKey(Class<?> clazz, String key)
hasKey
in interface EMFFormsLocalizationService
clazz
- The class in whose bundle to search for the keykey
- The key to searchEMFFormsLocalizationService.hasKey(java.lang.Class, java.lang.String)
Copyright © 2019. All rights reserved.