Search in sources :

Example 1 with LabelFeatureProviderRegistry

use of org.eclipse.sirius.components.emf.services.LabelFeatureProviderRegistry in project sirius-components by eclipse-sirius.

the class EMFConfiguration method labelFeatureProviderRegistry.

@Bean
public LabelFeatureProviderRegistry labelFeatureProviderRegistry(List<ILabelFeatureProvider> providers) {
    LabelFeatureProviderRegistry providerRegistry = new LabelFeatureProviderRegistry();
    providers.forEach(provider -> providerRegistry.put(provider.getEPackageNsUri(), provider));
    return providerRegistry;
}
Also used : LabelFeatureProviderRegistry(org.eclipse.sirius.components.emf.services.LabelFeatureProviderRegistry) Bean(org.springframework.context.annotation.Bean)

Aggregations

LabelFeatureProviderRegistry (org.eclipse.sirius.components.emf.services.LabelFeatureProviderRegistry)1 Bean (org.springframework.context.annotation.Bean)1