use of org.eclipse.sirius.components.validation.render.ValidationRenderer in project sirius-components by eclipse-sirius.
the class ValidationEventProcessor method refreshValidation.
private Validation refreshValidation() {
VariableManager variableManager = new VariableManager();
variableManager.put(IEditingContext.EDITING_CONTEXT, this.editingContext);
ValidationComponentProps validationComponentProps = new ValidationComponentProps(variableManager, this.validationDescription, Optional.ofNullable(this.validationContext.getValidation()));
Element element = new Element(ValidationComponent.class, validationComponentProps);
Validation validation = new ValidationRenderer().render(element);
// $NON-NLS-1$
this.logger.trace("Validation refreshed: {}", this.editingContext.getId());
return validation;
}
Aggregations