Search in sources :

Example 1 with Registry

use of org.eclipse.emf.ecore.EValidator.Registry in project sirius-components by eclipse-sirius.

the class EMFConfiguration method getEValidatorRegistry.

@Bean
public EValidator.Registry getEValidatorRegistry() {
    Registry eValidatorRegistry = new EValidatorRegistryImpl(EValidator.Registry.INSTANCE);
    eValidatorRegistry.put(DomainPackage.eINSTANCE, new DomainValidator());
    eValidatorRegistry.put(ViewPackage.eINSTANCE, new DiagramDescriptionValidator());
    return eValidatorRegistry;
}
Also used : DomainValidator(org.eclipse.sirius.components.emf.domain.DomainValidator) Registry(org.eclipse.emf.ecore.EValidator.Registry) LabelFeatureProviderRegistry(org.eclipse.sirius.components.emf.services.LabelFeatureProviderRegistry) EValidatorRegistryImpl(org.eclipse.emf.ecore.impl.EValidatorRegistryImpl) DiagramDescriptionValidator(org.eclipse.sirius.components.emf.view.diagram.DiagramDescriptionValidator) Bean(org.springframework.context.annotation.Bean)

Aggregations

Registry (org.eclipse.emf.ecore.EValidator.Registry)1 EValidatorRegistryImpl (org.eclipse.emf.ecore.impl.EValidatorRegistryImpl)1 DomainValidator (org.eclipse.sirius.components.emf.domain.DomainValidator)1 LabelFeatureProviderRegistry (org.eclipse.sirius.components.emf.services.LabelFeatureProviderRegistry)1 DiagramDescriptionValidator (org.eclipse.sirius.components.emf.view.diagram.DiagramDescriptionValidator)1 Bean (org.springframework.context.annotation.Bean)1