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;
}
Aggregations