Search in sources :

Example 1 with ScoutTexts

use of org.eclipse.scout.rt.shared.ScoutTexts in project scout.rt by eclipse.

the class TextKeyTextProviderService method register.

public static void register() {
    LOG.info("Register TextKeyTextProviderService with high priority. ScoutTexts will return text keys instead of localized texts");
    BeanMetaData beanData = new BeanMetaData(TextKeyTextProviderService.class).withOrder(Double.MIN_VALUE + 1);
    Platform.get().getBeanManager().registerBean(beanData);
    BEANS.get(ScoutTexts.class).reloadTextProviders();
}
Also used : BeanMetaData(org.eclipse.scout.rt.platform.BeanMetaData) ScoutTexts(org.eclipse.scout.rt.shared.ScoutTexts)

Aggregations

BeanMetaData (org.eclipse.scout.rt.platform.BeanMetaData)1 ScoutTexts (org.eclipse.scout.rt.shared.ScoutTexts)1